|
@@ -1515,48 +1515,6 @@ fi
|
|
|
|
|
|
|
|
} # ac_fn_cxx_try_cpp
|
|
} # ac_fn_cxx_try_cpp
|
|
|
|
|
|
|
|
-# ac_fn_cxx_try_run LINENO
|
|
|
|
|
-# ------------------------
|
|
|
|
|
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
|
|
|
-# that executables *can* be run.
|
|
|
|
|
-ac_fn_cxx_try_run ()
|
|
|
|
|
-{
|
|
|
|
|
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
|
- if { { ac_try="$ac_link"
|
|
|
|
|
-case "(($ac_try" in
|
|
|
|
|
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
- *) ac_try_echo=$ac_try;;
|
|
|
|
|
-esac
|
|
|
|
|
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
-$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
- (eval "$ac_link") 2>&5
|
|
|
|
|
- ac_status=$?
|
|
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
|
|
|
- { { case "(($ac_try" in
|
|
|
|
|
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
- *) ac_try_echo=$ac_try;;
|
|
|
|
|
-esac
|
|
|
|
|
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
-$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
- (eval "$ac_try") 2>&5
|
|
|
|
|
- ac_status=$?
|
|
|
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
- test $ac_status = 0; }; }; then :
|
|
|
|
|
- ac_retval=0
|
|
|
|
|
-else
|
|
|
|
|
- $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
|
|
|
- $as_echo "$as_me: failed program was:" >&5
|
|
|
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
-
|
|
|
|
|
- ac_retval=$ac_status
|
|
|
|
|
-fi
|
|
|
|
|
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
|
|
|
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
- as_fn_set_status $ac_retval
|
|
|
|
|
-
|
|
|
|
|
-} # ac_fn_cxx_try_run
|
|
|
|
|
-
|
|
|
|
|
# ac_fn_cxx_try_link LINENO
|
|
# ac_fn_cxx_try_link LINENO
|
|
|
# -------------------------
|
|
# -------------------------
|
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
@@ -1603,6 +1561,48 @@ fi
|
|
|
|
|
|
|
|
} # ac_fn_cxx_try_link
|
|
} # ac_fn_cxx_try_link
|
|
|
|
|
|
|
|
|
|
+# ac_fn_cxx_try_run LINENO
|
|
|
|
|
+# ------------------------
|
|
|
|
|
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
|
|
|
|
+# that executables *can* be run.
|
|
|
|
|
+ac_fn_cxx_try_run ()
|
|
|
|
|
+{
|
|
|
|
|
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
|
+ if { { ac_try="$ac_link"
|
|
|
|
|
+case "(($ac_try" in
|
|
|
|
|
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
+ *) ac_try_echo=$ac_try;;
|
|
|
|
|
+esac
|
|
|
|
|
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
+$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
+ (eval "$ac_link") 2>&5
|
|
|
|
|
+ ac_status=$?
|
|
|
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
|
|
|
|
+ { { case "(($ac_try" in
|
|
|
|
|
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
+ *) ac_try_echo=$ac_try;;
|
|
|
|
|
+esac
|
|
|
|
|
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
+$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
+ (eval "$ac_try") 2>&5
|
|
|
|
|
+ ac_status=$?
|
|
|
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
+ test $ac_status = 0; }; }; then :
|
|
|
|
|
+ ac_retval=0
|
|
|
|
|
+else
|
|
|
|
|
+ $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
|
|
|
+ $as_echo "$as_me: failed program was:" >&5
|
|
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
+
|
|
|
|
|
+ ac_retval=$ac_status
|
|
|
|
|
+fi
|
|
|
|
|
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
|
|
|
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
+ as_fn_set_status $ac_retval
|
|
|
|
|
+
|
|
|
|
|
+} # ac_fn_cxx_try_run
|
|
|
|
|
+
|
|
|
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
|
|
|
# ---------------------------------------------------------
|
|
# ---------------------------------------------------------
|
|
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
|
@@ -3815,6 +3815,67 @@ if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
|
|
|
DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
|
|
DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -fsanitize=address" >&5
|
|
|
|
|
+$as_echo_n "checking whether the linker supports -fsanitize=address... " >&6; }
|
|
|
|
|
+if ${ax_cv_prog_cc_fsanitize_address+:} false; then :
|
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
|
+else
|
|
|
|
|
+
|
|
|
|
|
+ ac_ext=cpp
|
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
+
|
|
|
|
|
+ ac_saved_flags="$CXXFLAGS"
|
|
|
|
|
+ CXXFLAGS="-Werror -fsanitize=address"
|
|
|
|
|
+ cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
+/* end build/confdefs.h. */
|
|
|
|
|
+
|
|
|
|
|
+int
|
|
|
|
|
+main ()
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+ ;
|
|
|
|
|
+ return 0;
|
|
|
|
|
+}
|
|
|
|
|
+_ACEOF
|
|
|
|
|
+if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
|
+ ax_cv_prog_cc_fsanitize_address="yes"
|
|
|
|
|
+else
|
|
|
|
|
+ ax_cv_prog_cc_fsanitize_address="no"
|
|
|
|
|
+fi
|
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
|
|
+ CXXFLAGS="$ac_saved_flags"
|
|
|
|
|
+ ac_ext=cpp
|
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+fi
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_fsanitize_address" >&5
|
|
|
|
|
+$as_echo "$ax_cv_prog_cc_fsanitize_address" >&6; }
|
|
|
|
|
+
|
|
|
|
|
+ if [ "$ax_cv_prog_cc_fsanitize_address" = "yes" ]; then
|
|
|
|
|
+ DEBCXXFLAGS="$DEBCXXFLAGS -fsanitize=address"
|
|
|
|
|
+ elif [ -n "" ]; then
|
|
|
|
|
+ cat << 'EOF' >&2
|
|
|
|
|
+configure: error:
|
|
|
|
|
+
|
|
|
|
|
+ Your OS or C++ compiler does not support -fsanitize=address.
|
|
|
|
|
+ This compile flag is required.
|
|
|
|
|
+
|
|
|
|
|
+EOF
|
|
|
|
|
+ exit 1
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+if [ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]; then
|
|
|
|
|
+ LDFLAGS="${LDFLAGS} -fsanitize=address"
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
|
|
|
$as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
|
|
$as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
|
|
|
if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
|
|
if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
|
|
@@ -3872,6 +3933,63 @@ EOF
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
|
|
|
|
|
+$as_echo_n "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
|
|
|
|
|
+if ${ax_cv_prog_cc_w_conditional_uninitialized+:} false; then :
|
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
|
|
|
|
+else
|
|
|
|
|
+
|
|
|
|
|
+ ac_ext=cpp
|
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
+
|
|
|
|
|
+ ac_saved_flags="$CXXFLAGS"
|
|
|
|
|
+ CXXFLAGS="-Werror -Wconditional-uninitialized"
|
|
|
|
|
+ cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
+/* end build/confdefs.h. */
|
|
|
|
|
+
|
|
|
|
|
+int
|
|
|
|
|
+main ()
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+ ;
|
|
|
|
|
+ return 0;
|
|
|
|
|
+}
|
|
|
|
|
+_ACEOF
|
|
|
|
|
+if ac_fn_cxx_try_compile "$LINENO"; then :
|
|
|
|
|
+ ax_cv_prog_cc_w_conditional_uninitialized="yes"
|
|
|
|
|
+else
|
|
|
|
|
+ ax_cv_prog_cc_w_conditional_uninitialized="no"
|
|
|
|
|
+fi
|
|
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
+ CXXFLAGS="$ac_saved_flags"
|
|
|
|
|
+ ac_ext=cpp
|
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+fi
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
|
|
|
|
|
+$as_echo "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
|
|
|
|
|
+
|
|
|
|
|
+ if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
|
|
|
|
|
+ DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
|
|
|
|
|
+ elif [ -n "" ]; then
|
|
|
|
|
+ cat << 'EOF' >&2
|
|
|
|
|
+configure: error:
|
|
|
|
|
+
|
|
|
|
|
+ Your OS or C++ compiler does not support -Wconditional-uninitialized.
|
|
|
|
|
+ This compile flag is required.
|
|
|
|
|
+
|
|
|
|
|
+EOF
|
|
|
|
|
+ exit 1
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
|
|
|
$as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
|
|
$as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
|
|
|
if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
|
|
if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
|
|
@@ -7276,18 +7394,18 @@ else
|
|
|
/* end build/confdefs.h. */
|
|
/* end build/confdefs.h. */
|
|
|
|
|
|
|
|
/* For now, do not test the preprocessor; as of 2007 there are too many
|
|
/* For now, do not test the preprocessor; as of 2007 there are too many
|
|
|
- implementations with broken preprocessors. Perhaps this can
|
|
|
|
|
- be revisited in 2012. In the meantime, code should not expect
|
|
|
|
|
- #if to work with literals wider than 32 bits. */
|
|
|
|
|
|
|
+ implementations with broken preprocessors. Perhaps this can
|
|
|
|
|
+ be revisited in 2012. In the meantime, code should not expect
|
|
|
|
|
+ #if to work with literals wider than 32 bits. */
|
|
|
/* Test literals. */
|
|
/* Test literals. */
|
|
|
long long int ll = 9223372036854775807ll;
|
|
long long int ll = 9223372036854775807ll;
|
|
|
long long int nll = -9223372036854775807LL;
|
|
long long int nll = -9223372036854775807LL;
|
|
|
unsigned long long int ull = 18446744073709551615ULL;
|
|
unsigned long long int ull = 18446744073709551615ULL;
|
|
|
/* Test constant expressions. */
|
|
/* Test constant expressions. */
|
|
|
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
|
|
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
|
|
|
- ? 1 : -1)];
|
|
|
|
|
|
|
+ ? 1 : -1)];
|
|
|
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
|
|
|
- ? 1 : -1)];
|
|
|
|
|
|
|
+ ? 1 : -1)];
|
|
|
int i = 63;
|
|
int i = 63;
|
|
|
int
|
|
int
|
|
|
main ()
|
|
main ()
|
|
@@ -7296,9 +7414,9 @@ main ()
|
|
|
long long int llmax = 9223372036854775807ll;
|
|
long long int llmax = 9223372036854775807ll;
|
|
|
unsigned long long int ullmax = 18446744073709551615ull;
|
|
unsigned long long int ullmax = 18446744073709551615ull;
|
|
|
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
|
|
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
|
|
|
- | (llmax / ll) | (llmax % ll)
|
|
|
|
|
- | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
|
|
|
|
|
- | (ullmax / ull) | (ullmax % ull));
|
|
|
|
|
|
|
+ | (llmax / ll) | (llmax % ll)
|
|
|
|
|
+ | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
|
|
|
|
|
+ | (ullmax / ull) | (ullmax % ull));
|
|
|
;
|
|
;
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
@@ -7330,33 +7448,33 @@ if ${ac_cv_type_long_long_int+:} false; then :
|
|
|
else
|
|
else
|
|
|
ac_cv_type_long_long_int=yes
|
|
ac_cv_type_long_long_int=yes
|
|
|
if test "x${ac_cv_prog_cc_c99-no}" = xno; then
|
|
if test "x${ac_cv_prog_cc_c99-no}" = xno; then
|
|
|
- ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
|
|
|
|
|
- if test $ac_cv_type_long_long_int = yes; then
|
|
|
|
|
- if test "$cross_compiling" = yes; then :
|
|
|
|
|
|
|
+ ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
|
|
|
|
|
+ if test $ac_cv_type_long_long_int = yes; then
|
|
|
|
|
+ if test "$cross_compiling" = yes; then :
|
|
|
:
|
|
:
|
|
|
else
|
|
else
|
|
|
cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
/* end build/confdefs.h. */
|
|
/* end build/confdefs.h. */
|
|
|
#include <limits.h>
|
|
#include <limits.h>
|
|
|
- #ifndef LLONG_MAX
|
|
|
|
|
- # define HALF \
|
|
|
|
|
- (1LL << (sizeof (long long int) * CHAR_BIT - 2))
|
|
|
|
|
- # define LLONG_MAX (HALF - 1 + HALF)
|
|
|
|
|
- #endif
|
|
|
|
|
|
|
+ #ifndef LLONG_MAX
|
|
|
|
|
+ # define HALF \
|
|
|
|
|
+ (1LL << (sizeof (long long int) * CHAR_BIT - 2))
|
|
|
|
|
+ # define LLONG_MAX (HALF - 1 + HALF)
|
|
|
|
|
+ #endif
|
|
|
int
|
|
int
|
|
|
main ()
|
|
main ()
|
|
|
{
|
|
{
|
|
|
long long int n = 1;
|
|
long long int n = 1;
|
|
|
- int i;
|
|
|
|
|
- for (i = 0; ; i++)
|
|
|
|
|
- {
|
|
|
|
|
- long long int m = n << i;
|
|
|
|
|
- if (m >> i != n)
|
|
|
|
|
- return 1;
|
|
|
|
|
- if (LLONG_MAX / 2 < m)
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- return 0;
|
|
|
|
|
|
|
+ int i;
|
|
|
|
|
+ for (i = 0; ; i++)
|
|
|
|
|
+ {
|
|
|
|
|
+ long long int m = n << i;
|
|
|
|
|
+ if (m >> i != n)
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ if (LLONG_MAX / 2 < m)
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0;
|
|
|
;
|
|
;
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
@@ -7370,7 +7488,7 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- fi
|
|
|
|
|
|
|
+ fi
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
|