X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2Fconfigure;h=08b7139c2f71b07596b4df7ca554e0cef31dd309;hp=a2eb4ce4c97bee8378bd07f26ca0d4a90fa33561;hb=fcbe9d5cc1bb3b3bd51ffdb1fda2135f857e44a1;hpb=1fe286edc9add5c2476a0f62a3c3a02d5797abc4 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index a2eb4ce4c97..08b7139c2f7 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -458,8 +458,9 @@ ac_includes_default="\ # include #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM lt_ECHO LDFLAGS CXXCPP enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_C_GLOBAL_TRUE GLIBCXX_C_HEADERS_C_GLOBAL_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE GLIBCXX_C_HEADERS_EXTRA_TRUE GLIBCXX_C_HEADERS_EXTRA_FALSE DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE ENABLE_PARALLEL_TRUE ENABLE_PARALLEL_FALSE EXTRA_CXX_FLAGS glibcxx_thread_h WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV LTLIBICONV SYMVER_FILE port_specific_symbol_files ENABLE_SYMVERS_TRUE ENABLE_SYMVERS_FALSE ENABLE_SYMVERS_GNU_TRUE ENABLE_SYMVERS_GNU_FALSE ENABLE_SYMVERS_GNU_NAMESPACE_TRUE ENABLE_SYMVERS_GNU_NAMESPACE_FALSE ENABLE_SYMVERS_DARWIN_TRUE ENABLE_SYMVERS_DARWIN_FALSE ENABLE_VISIBILITY_TRUE ENABLE_VISIBILITY_FALSE GLIBCXX_LDBL_COMPAT_TRUE GLIBCXX_LDBL_COMPAT_FALSE baseline_dir ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR ATOMIC_FLAGS CPU_DEFINES_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR ERROR_CONSTANTS_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM lt_ECHO LDFLAGS CXXCPP enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS glibcxx_thread_h WERROR SECTION_FLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_C_GLOBAL_TRUE GLIBCXX_C_HEADERS_C_GLOBAL_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE GLIBCXX_C_HEADERS_EXTRA_TRUE GLIBCXX_C_HEADERS_EXTRA_FALSE DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE ENABLE_PARALLEL_TRUE ENABLE_PARALLEL_FALSE EXTRA_CXX_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS GLIBCXX_LIBS LIBICONV LTLIBICONV SYMVER_FILE port_specific_symbol_files ENABLE_SYMVERS_TRUE ENABLE_SYMVERS_FALSE ENABLE_SYMVERS_GNU_TRUE ENABLE_SYMVERS_GNU_FALSE ENABLE_SYMVERS_GNU_NAMESPACE_TRUE ENABLE_SYMVERS_GNU_NAMESPACE_FALSE ENABLE_SYMVERS_DARWIN_TRUE ENABLE_SYMVERS_DARWIN_FALSE ENABLE_VISIBILITY_TRUE ENABLE_VISIBILITY_FALSE GLIBCXX_LDBL_COMPAT_TRUE GLIBCXX_LDBL_COMPAT_FALSE baseline_dir ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR ATOMIC_FLAGS CPU_DEFINES_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR ERROR_CONSTANTS_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS' ac_subst_files='' +ac_pwd=`pwd` # Initialize some variables set by options. ac_init_help= @@ -1476,13 +1477,22 @@ echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: + ac_cache_corrupted=: + else + { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 +echo "$as_me: former value: \`$ac_old_val'" >&2;} + { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 +echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -1499,6 +1509,8 @@ echo "$as_me: current value: $ac_new_val" >&2;} fi done if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 @@ -1539,6 +1551,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + ac_config_headers="$ac_config_headers config.h" @@ -1769,6 +1784,7 @@ am__api_version="1.9" # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then @@ -1802,8 +1818,18 @@ case $as_dir/ in # program-specific install script used by HP pwplus--don't use. : else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi fi fi done @@ -1812,15 +1838,16 @@ case $as_dir/ in esac done +rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is - # removed, or if the path is relative. + # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi @@ -2387,11 +2414,13 @@ rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + { (exit 1); exit 1; }; }; } fi ac_ext=c @@ -2790,11 +2819,13 @@ fi fi -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH +test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + { (exit 1); exit 1; }; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ @@ -2913,11 +2944,13 @@ else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } + { (exit 77); exit 77; }; }; } fi ac_exeext=$ac_cv_exeext @@ -2942,13 +2975,15 @@ if test "$cross_compiling" != yes; then if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + { (exit 1); exit 1; }; }; } fi fi fi @@ -2986,11 +3021,13 @@ for ac_file in conftest.exe conftest conftest.*; do esac done else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + { (exit 1); exit 1; }; }; } fi rm -f conftest$ac_cv_exeext @@ -3038,11 +3075,13 @@ else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + { (exit 1); exit 1; }; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext @@ -4125,10 +4164,12 @@ echo "$as_me: OS config directory is $os_include_dir" >&6;} -enable_dlopen=yes +if test "x${with_newlib}" != "xyes"; then + enable_dlopen=yes +fi macro_version='2.1a' @@ -4645,13 +4686,13 @@ if test "${lt_cv_nm_interface+set}" = set; then else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:4648: $ac_compile\"" >&5) + (eval echo "\"\$as_me:4689: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:4651: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:4692: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:4654: output\"" >&5) + (eval echo "\"\$as_me:4695: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -5695,7 +5736,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 5698 "configure"' > conftest.$ac_ext + echo '#line 5739 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -6762,7 +6803,9 @@ rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else - _lt_caught_CXX_error=yes + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +_lt_caught_CXX_error=yes; } fi ac_ext=c @@ -7157,11 +7200,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7160: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7203: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7164: \$? = $ac_status" >&5 + echo "$as_me:7207: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7479,11 +7522,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7482: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7525: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7486: \$? = $ac_status" >&5 + echo "$as_me:7529: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7584,11 +7627,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7587: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7630: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:7591: \$? = $ac_status" >&5 + echo "$as_me:7634: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -7639,11 +7682,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7642: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7685: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:7646: \$? = $ac_status" >&5 + echo "$as_me:7689: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -10491,7 +10534,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10494 "configure" +#line 10537 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10591,7 +10634,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10594 "configure" +#line 10637 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12629,11 +12672,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12632: $lt_compile\"" >&5) + (eval echo "\"\$as_me:12675: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:12636: \$? = $ac_status" >&5 + echo "$as_me:12679: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -12728,11 +12771,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12731: $lt_compile\"" >&5) + (eval echo "\"\$as_me:12774: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:12735: \$? = $ac_status" >&5 + echo "$as_me:12778: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -12780,11 +12823,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12783: $lt_compile\"" >&5) + (eval echo "\"\$as_me:12826: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:12787: \$? = $ac_status" >&5 + echo "$as_me:12830: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -13829,7 +13872,7 @@ fi; # # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. cat > conftest.$ac_ext << EOF -#line 13832 "configure" +#line 13875 "configure" struct S { ~S(); }; void bar(); void foo() @@ -13958,6 +14001,354 @@ echo "${ECHO_T}$enable_libstdcxx_pch" >&6 + + + ac_ext=cc +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 + + old_CXXFLAGS="$CXXFLAGS" + + # Compile unoptimized. + CXXFLAGS='-O0 -S' + + # Fake what AC_TRY_COMPILE does, without linking as this is + # unnecessary for a builtins test. + + cat > conftest.$ac_ext << EOF +#line 14021 "configure" +int main() +{ + // NB: _Atomic_word not necessarily int. + typedef int atomic_type; + atomic_type c1; + atomic_type c2; + const atomic_type c3(0); + __sync_fetch_and_add(&c1, c2); + __sync_val_compare_and_swap(&c1, c3, c2); + __sync_lock_test_and_set(&c1, c3); + __sync_lock_release(&c1); + __sync_synchronize(); + return 0; +} +EOF + + echo "$as_me:$LINENO: checking for atomic builtins for int" >&5 +echo $ECHO_N "checking for atomic builtins for int... $ECHO_C" >&6 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if grep __sync_ conftest.s >/dev/null 2>&1 ; then + enable_atomic_builtinsi=no + else + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_ATOMIC_BUILTINS_4 1 +_ACEOF + + enable_atomic_builtinsi=yes + fi + fi + echo "$as_me:$LINENO: result: $enable_atomic_builtinsi" >&5 +echo "${ECHO_T}$enable_atomic_builtinsi" >&6 + rm -f conftest* + + cat > conftest.$ac_ext << EOF +#line 14061 "configure" +int main() +{ + typedef bool atomic_type; + atomic_type c1; + atomic_type c2; + const atomic_type c3(0); + __sync_fetch_and_add(&c1, c2); + __sync_val_compare_and_swap(&c1, c3, c2); + __sync_lock_test_and_set(&c1, c3); + __sync_lock_release(&c1); + __sync_synchronize(); + return 0; +} +EOF + + echo "$as_me:$LINENO: checking for atomic builtins for bool" >&5 +echo $ECHO_N "checking for atomic builtins for bool... $ECHO_C" >&6 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if grep __sync_ conftest.s >/dev/null 2>&1 ; then + enable_atomic_builtinsb=no + else + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_ATOMIC_BUILTINS_1 1 +_ACEOF + + enable_atomic_builtinsb=yes + fi + fi + echo "$as_me:$LINENO: result: $enable_atomic_builtinsb" >&5 +echo "${ECHO_T}$enable_atomic_builtinsb" >&6 + rm -f conftest* + + CXXFLAGS="$old_CXXFLAGS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + # Set atomicity_dir to builtins if either of above tests pass. + if test $enable_atomic_builtinsi = yes || test $enable_atomic_builtinsb = yes ; then + atomicity_dir=cpu/generic/atomicity_builtins + fi + + # If still generic, set to mutex. + if test $atomicity_dir = "cpu/generic" ; then + atomicity_dir=cpu/generic/atomicity_mutex + { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5 +echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;} + if test $target_thread_file = single; then + { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5 +echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;} + { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5 +echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;} + else + { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5 +echo "$as_me: WARNING: They will be faked using a mutex." >&2;} + { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5 +echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;} + fi + fi + + + + echo "$as_me:$LINENO: checking for thread model used by GCC" >&5 +echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6 + target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'` + echo "$as_me:$LINENO: result: $target_thread_file" >&5 +echo "${ECHO_T}$target_thread_file" >&6 + + if test $target_thread_file != single; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GTHR_DEFAULT 1 +_ACEOF + + fi + + glibcxx_thread_h=gthr-$target_thread_file.h + + gthread_file=${toplevel_srcdir}/gcc/${glibcxx_thread_h} + if grep __GTHREADS $gthread_file >/dev/null 2>&1 ; then + enable_thread=yes + else + enable_thread=no + fi + + + + +# Checks for compiler support that don't require linking. + + # All these tests are for C++; save the language and the compiler flags. + # The CXXFLAGS thing is suspicious, but based on similar bits previously + # found in GLIBCXX_CONFIGURE. + + + ac_ext=cc +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_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + + # Check for maintainer-mode bits. + if test x"$USE_MAINTAINER_MODE" = xno; then + WERROR='' + else + WERROR='-Werror' + fi + + # Check for -ffunction-sections -fdata-sections + echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 +echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6 + CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections' + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int foo; void bar() { }; +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_fdsections=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_fdsections=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" + else + # this is the suspicious part + CXXFLAGS='' + fi + if test x"$ac_fdsections" = x"yes"; then + SECTION_FLAGS='-ffunction-sections -fdata-sections' + fi + echo "$as_me:$LINENO: result: $ac_fdsections" >&5 +echo "${ECHO_T}$ac_fdsections" >&6 + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + + + echo "$as_me:$LINENO: checking for ISO C++200x standard layout type support" >&5 +echo $ECHO_N "checking for ISO C++200x standard layout type support... $ECHO_C" >&6 + if test "${ac_standard_layout+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-std=gnu++0x' + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +struct b + { + bool t; + + // Need standard layout relaxation from POD + private: + b& operator=(const b&); + b(const b&); + }; + + int main() + { + b tst1 = { false }; + return 0; + } +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_standard_layout=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_standard_layout=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + + CXXFLAGS="$ac_save_CXXFLAGS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + echo "$as_me:$LINENO: result: $ac_standard_layout" >&5 +echo "${ECHO_T}$ac_standard_layout" >&6 + if test x"$ac_standard_layout" = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_STANDARD_LAYOUT 1 +_ACEOF + + fi + + # Enable all the variable C++ runtime options that doesn't require linking. echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 @@ -15537,7 +15928,7 @@ fi # Check for the existence of functions used if C99 is enabled. echo "$as_me:$LINENO: checking for ISO C99 support in " >&5 echo $ECHO_N "checking for ISO C99 support in ... $ECHO_C" >&6 - if test "${ac_c99_math+set}" = set; then + if test "${glibcxx_cv_c99_math+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -15594,12 +15985,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_math=yes + glibcxx_cv_c99_math=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_math=no +glibcxx_cv_c99_math=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext else @@ -15660,12 +16051,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_math=yes + glibcxx_cv_c99_math=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_math=no +glibcxx_cv_c99_math=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -15673,9 +16064,9 @@ fi fi - echo "$as_me:$LINENO: result: $ac_c99_math" >&5 -echo "${ECHO_T}$ac_c99_math" >&6 - if test x"$ac_c99_math" = x"yes"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_math" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_math" >&6 + if test x"$glibcxx_cv_c99_math" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define _GLIBCXX_USE_C99_MATH 1 @@ -15991,7 +16382,7 @@ fi done - ac_c99_complex=no; + glibcxx_cv_c99_complex=no; if test x"$ac_has_complex_h" = x"yes"; then echo "$as_me:$LINENO: checking for ISO C99 support in " >&5 echo $ECHO_N "checking for ISO C99 support in ... $ECHO_C" >&6 @@ -16027,6 +16418,7 @@ f = cabsf(tmpf); tmpf = ctanf(tmpf); tmpf = ctanhf(tmpf); tmpf = cpowf(tmpf, tmpf); + tmpf = cprojf(tmpf); d = cabs(tmpd); d = carg(tmpd); tmpd = ccos(tmpd); @@ -16039,6 +16431,7 @@ f = cabsf(tmpf); tmpd = ctan(tmpd); tmpd = ctanh(tmpd); tmpd = cpow(tmpd, tmpd); + tmpd = cproj(tmpd); ld = cabsl(tmpld); ld = cargl(tmpld); tmpld = ccosl(tmpld); @@ -16051,6 +16444,7 @@ f = cabsf(tmpf); tmpld = ctanl(tmpld); tmpld = ctanhl(tmpld); tmpld = cpowl(tmpld, tmpld); + tmpld = cprojl(tmpld); ; return 0; @@ -16078,12 +16472,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_complex=yes + glibcxx_cv_c99_complex=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_complex=no +glibcxx_cv_c99_complex=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext else @@ -16123,6 +16517,7 @@ f = cabsf(tmpf); tmpf = ctanf(tmpf); tmpf = ctanhf(tmpf); tmpf = cpowf(tmpf, tmpf); + tmpf = cprojf(tmpf); d = cabs(tmpd); d = carg(tmpd); tmpd = ccos(tmpd); @@ -16135,6 +16530,7 @@ f = cabsf(tmpf); tmpd = ctan(tmpd); tmpd = ctanh(tmpd); tmpd = cpow(tmpd, tmpd); + tmpd = cproj(tmpd); ld = cabsl(tmpld); ld = cargl(tmpld); tmpld = ccosl(tmpld); @@ -16147,6 +16543,7 @@ f = cabsf(tmpf); tmpld = ctanl(tmpld); tmpld = ctanhl(tmpld); tmpld = cpowl(tmpld, tmpld); + tmpld = cprojl(tmpld); ; return 0; @@ -16174,20 +16571,20 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_complex=yes + glibcxx_cv_c99_complex=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_complex=no +glibcxx_cv_c99_complex=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi - echo "$as_me:$LINENO: result: $ac_c99_complex" >&5 -echo "${ECHO_T}$ac_c99_complex" >&6 - if test x"$ac_c99_complex" = x"yes"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_complex" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_complex" >&6 + if test x"$glibcxx_cv_c99_complex" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define _GLIBCXX_USE_C99_COMPLEX 1 @@ -16198,7 +16595,7 @@ _ACEOF # Check for the existence in of vscanf, et. al. echo "$as_me:$LINENO: checking for ISO C99 support in " >&5 echo $ECHO_N "checking for ISO C99 support in ... $ECHO_C" >&6 - if test "${ac_c99_stdio+set}" = set; then + if test "${glibcxx_cv_c99_stdio+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -16249,12 +16646,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_stdio=yes + glibcxx_cv_c99_stdio=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_stdio=no +glibcxx_cv_c99_stdio=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext else @@ -16309,12 +16706,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_stdio=yes + glibcxx_cv_c99_stdio=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_stdio=no +glibcxx_cv_c99_stdio=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -16322,13 +16719,13 @@ fi fi - echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5 -echo "${ECHO_T}$ac_c99_stdio" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_stdio" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_stdio" >&6 # Check for the existence in of lldiv_t, et. al. echo "$as_me:$LINENO: checking for ISO C99 support in " >&5 echo $ECHO_N "checking for ISO C99 support in ... $ECHO_C" >&6 - if test "${ac_c99_stdlib+set}" = set; then + if test "${glibcxx_cv_c99_stdlib+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -16385,12 +16782,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_stdlib=yes + glibcxx_cv_c99_stdlib=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_stdlib=no +glibcxx_cv_c99_stdlib=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext else @@ -16451,12 +16848,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_stdlib=yes + glibcxx_cv_c99_stdlib=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_stdlib=no +glibcxx_cv_c99_stdlib=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -16464,11 +16861,11 @@ fi fi - echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5 -echo "${ECHO_T}$ac_c99_stdlib" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_stdlib" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_stdlib" >&6 # Check for the existence in of wcstold, etc. - ac_c99_wchar=no; + glibcxx_cv_c99_wchar=no; if test x"$ac_has_wchar_h" = xyes && test x"$ac_has_wctype_h" = xyes; then echo "$as_me:$LINENO: checking for ISO C99 support in " >&5 @@ -16517,12 +16914,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_wchar=yes + glibcxx_cv_c99_wchar=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_wchar=no +glibcxx_cv_c99_wchar=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext @@ -16779,16 +17176,16 @@ sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5 -echo "${ECHO_T}$ac_c99_wchar" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_wchar" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_wchar" >&6 fi # Option parsed, now set things appropriately. - if test x"$ac_c99_math" = x"no" || - test x"$ac_c99_complex" = x"no" || - test x"$ac_c99_stdio" = x"no" || - test x"$ac_c99_stdlib" = x"no" || - test x"$ac_c99_wchar" = x"no"; then + if test x"$glibcxx_cv_c99_math" = x"no" || + test x"$glibcxx_cv_c99_complex" = x"no" || + test x"$glibcxx_cv_c99_stdio" = x"no" || + test x"$glibcxx_cv_c99_stdlib" = x"no" || + test x"$glibcxx_cv_c99_wchar" = x"no"; then enable_c99=no; else @@ -16885,9 +17282,10 @@ echo "${ECHO_T}$enable_libstdcxx_debug" >&6 - # NB: libstdc++ may be configured before libgomp: can't check for the actual - # dependencies (omp.h and libgomp). enable_parallel=no; + + # See if configured libgomp/omp.h exists. (libgomp may be in + # noconfigdirs but not explicitly disabled.) if test -f $glibcxx_builddir/../libgomp/omp.h; then enable_parallel=yes; else @@ -16895,14 +17293,6 @@ echo "${ECHO_T}$enable_libstdcxx_debug" >&6 echo "$as_me: $glibcxx_builddir/../libgomp/omp.h not found" >&6;} fi - # Check to see if it's explicitly disabled. -# GLIBCXX_ENABLE(libgomp,,,[enable code depending on libgomp], -# [permit yes|no]) - -# if test x$enable_libgomp = xno; then -# enable_parallel=no -# fi - echo "$as_me:$LINENO: checking for parallel mode support" >&5 echo $ECHO_N "checking for parallel mode support... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $enable_parallel" >&5 @@ -16974,13 +17364,13 @@ _ACEOF # Checks for operating systems support that don't require linking. - echo "$as_me:$LINENO: checking for EOWNERDEAD" >&5 +echo "$as_me:$LINENO: checking for EOWNERDEAD" >&5 echo $ECHO_N "checking for EOWNERDEAD... $ECHO_C" >&6 - if test "${ac_system_error1+set}" = set; then +if test "${glibcxx_cv_system_error1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -16990,7 +17380,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = EOWNERDEAD; +int i = EOWNERDEAD; ; return 0; } @@ -17017,34 +17407,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error1=yes + glibcxx_cv_system_error1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error1=no +glibcxx_cv_system_error1=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error1" >&5 -echo "${ECHO_T}$ac_system_error1" >&6 - if test x"$ac_system_error1" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error1" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error1" >&6 +if test x"$glibcxx_cv_system_error1" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_EOWNERDEAD 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ENOTRECOVERABLE" >&5 +fi +echo "$as_me:$LINENO: checking for ENOTRECOVERABLE" >&5 echo $ECHO_N "checking for ENOTRECOVERABLE... $ECHO_C" >&6 - if test "${ac_system_error2+set}" = set; then +if test "${glibcxx_cv_system_error2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17054,7 +17443,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ENOTRECOVERABLE; +int i = ENOTRECOVERABLE; ; return 0; } @@ -17081,34 +17470,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error2=yes + glibcxx_cv_system_error2=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error2=no +glibcxx_cv_system_error2=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error2" >&5 -echo "${ECHO_T}$ac_system_error2" >&6 - if test x"$ac_system_error2" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error2" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error2" >&6 +if test x"$glibcxx_cv_system_error2" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ENOTRECOVERABLE 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ENOLINK" >&5 +fi +echo "$as_me:$LINENO: checking for ENOLINK" >&5 echo $ECHO_N "checking for ENOLINK... $ECHO_C" >&6 - if test "${ac_system_error3+set}" = set; then +if test "${glibcxx_cv_system_error3+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17118,7 +17506,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ENOLINK; +int i = ENOLINK; ; return 0; } @@ -17145,34 +17533,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error3=yes + glibcxx_cv_system_error3=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error3=no +glibcxx_cv_system_error3=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error3" >&5 -echo "${ECHO_T}$ac_system_error3" >&6 - if test x"$ac_system_error3" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error3" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error3" >&6 +if test x"$glibcxx_cv_system_error3" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ENOLINK 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for EPROTO" >&5 +fi +echo "$as_me:$LINENO: checking for EPROTO" >&5 echo $ECHO_N "checking for EPROTO... $ECHO_C" >&6 - if test "${ac_system_error_4+set}" = set; then +if test "${glibcxx_cv_system_error4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17182,7 +17569,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = EPROTO; +int i = EPROTO; ; return 0; } @@ -17209,34 +17596,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_4=yes + glibcxx_cv_system_error4=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_4=no +glibcxx_cv_system_error4=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_4" >&5 -echo "${ECHO_T}$ac_system_error_4" >&6 - if test x"$ac_system_error_4" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error4" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error4" >&6 +if test x"$glibcxx_cv_system_error4" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_EPROTO 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ENODATA" >&5 +fi +echo "$as_me:$LINENO: checking for ENODATA" >&5 echo $ECHO_N "checking for ENODATA... $ECHO_C" >&6 - if test "${ac_system_error_5+set}" = set; then +if test "${glibcxx_cv_system_error5+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17246,7 +17632,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ENODATA; +int i = ENODATA; ; return 0; } @@ -17273,34 +17659,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_5=yes + glibcxx_cv_system_error5=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_5=no +glibcxx_cv_system_error5=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_5" >&5 -echo "${ECHO_T}$ac_system_error_5" >&6 - if test x"$ac_system_error_5" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error5" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error5" >&6 +if test x"$glibcxx_cv_system_error5" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ENODATA 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ENOSR" >&5 +fi +echo "$as_me:$LINENO: checking for ENOSR" >&5 echo $ECHO_N "checking for ENOSR... $ECHO_C" >&6 - if test "${ac_system_error_6+set}" = set; then +if test "${glibcxx_cv_system_error6+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17310,7 +17695,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ENOSR; +int i = ENOSR; ; return 0; } @@ -17337,34 +17722,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_6=yes + glibcxx_cv_system_error6=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_6=no +glibcxx_cv_system_error6=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_6" >&5 -echo "${ECHO_T}$ac_system_error_6" >&6 - if test x"$ac_system_error_6" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error6" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error6" >&6 +if test x"$glibcxx_cv_system_error6" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ENOSR 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ENOSTR" >&5 +fi +echo "$as_me:$LINENO: checking for ENOSTR" >&5 echo $ECHO_N "checking for ENOSTR... $ECHO_C" >&6 - if test "${ac_system_error_7+set}" = set; then +if test "${glibcxx_cv_system_error7+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17374,7 +17758,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ENOSTR; +int i = ENOSTR; ; return 0; } @@ -17401,34 +17785,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_7=yes + glibcxx_cv_system_error7=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_7=no +glibcxx_cv_system_error7=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_7" >&5 -echo "${ECHO_T}$ac_system_error_7" >&6 - if test x"$ac_system_error_7" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error7" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error7" >&6 +if test x"$glibcxx_cv_system_error7" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ENOSTR 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ETIME" >&5 +fi +echo "$as_me:$LINENO: checking for ETIME" >&5 echo $ECHO_N "checking for ETIME... $ECHO_C" >&6 - if test "${ac_system_error_8+set}" = set; then +if test "${glibcxx_cv_system_error8+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17438,7 +17821,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ETIME; +int i = ETIME; ; return 0; } @@ -17465,34 +17848,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_8=yes + glibcxx_cv_system_error8=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_8=no +glibcxx_cv_system_error8=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_8" >&5 -echo "${ECHO_T}$ac_system_error_8" >&6 - if test x"$ac_system_error_8" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error8" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error8" >&6 +if test x"$glibcxx_cv_system_error8" = x"yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ETIME 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for sys_nerr" >&5 -echo $ECHO_N "checking for sys_nerr... $ECHO_C" >&6 - if test "${ac_system_error9+set}" = set; then +fi +echo "$as_me:$LINENO: checking for EBADMSG" >&5 +echo $ECHO_N "checking for EBADMSG... $ECHO_C" >&6 +if test "${glibcxx_cv_system_error9+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17502,7 +17884,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = sys_nerr; +int i = EBADMSG; ; return 0; } @@ -17529,34 +17911,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error9=yes + glibcxx_cv_system_error9=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error9=no +glibcxx_cv_system_error9=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error9" >&5 -echo "${ECHO_T}$ac_system_error9" >&6 - if test x"$ac_system_error9" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error9" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error9" >&6 +if test x"$glibcxx_cv_system_error9" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_NERR 1 +#define HAVE_EBADMSG 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for EBADMSG" >&5 -echo $ECHO_N "checking for EBADMSG... $ECHO_C" >&6 - if test "${ac_system_error_10+set}" = set; then +fi +echo "$as_me:$LINENO: checking for ECANCELED" >&5 +echo $ECHO_N "checking for ECANCELED... $ECHO_C" >&6 +if test "${glibcxx_cv_system_error10+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17566,7 +17947,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = EBADMSG; +int i = ECANCELED; ; return 0; } @@ -17593,34 +17974,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_10=yes + glibcxx_cv_system_error10=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_10=no +glibcxx_cv_system_error10=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_10" >&5 -echo "${ECHO_T}$ac_system_error_10" >&6 - if test x"$ac_system_error_10" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error10" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error10" >&6 +if test x"$glibcxx_cv_system_error10" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE_EBADMSG 1 +#define HAVE_ECANCELED 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ECANCELED" >&5 -echo $ECHO_N "checking for ECANCELED... $ECHO_C" >&6 - if test "${ac_system_error_11+set}" = set; then +fi +echo "$as_me:$LINENO: checking for EOVERFLOW" >&5 +echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6 +if test "${glibcxx_cv_system_error11+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17630,7 +18010,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ECANCELED; +int i = EOVERFLOW; ; return 0; } @@ -17657,34 +18037,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_11=yes + glibcxx_cv_system_error11=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_11=no +glibcxx_cv_system_error11=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_11" >&5 -echo "${ECHO_T}$ac_system_error_11" >&6 - if test x"$ac_system_error_11" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error11" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error11" >&6 +if test x"$glibcxx_cv_system_error11" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE_ECANCELED 1 +#define HAVE_EOVERFLOW 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for EOVERFLOW" >&5 -echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6 - if test "${ac_system_error_12+set}" = set; then +fi +echo "$as_me:$LINENO: checking for ENOTSUP" >&5 +echo $ECHO_N "checking for ENOTSUP... $ECHO_C" >&6 +if test "${glibcxx_cv_system_error12+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17694,7 +18073,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = EOVERFLOW; +int i = ENOTSUP; ; return 0; } @@ -17721,34 +18100,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_12=yes + glibcxx_cv_system_error12=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_12=no +glibcxx_cv_system_error12=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_12" >&5 -echo "${ECHO_T}$ac_system_error_12" >&6 - if test x"$ac_system_error_12" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error12" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error12" >&6 +if test x"$glibcxx_cv_system_error12" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE_EOVERFLOW 1 +#define HAVE_ENOTSUP 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for ENOTSUP" >&5 -echo $ECHO_N "checking for ENOTSUP... $ECHO_C" >&6 - if test "${ac_system_error_13+set}" = set; then +fi +echo "$as_me:$LINENO: checking for EIDRM" >&5 +echo $ECHO_N "checking for EIDRM... $ECHO_C" >&6 +if test "${glibcxx_cv_system_error13+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17758,7 +18136,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = ENOTSUP; +int i = EIDRM; ; return 0; } @@ -17785,34 +18163,33 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_13=yes + glibcxx_cv_system_error13=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_13=no +glibcxx_cv_system_error13=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_13" >&5 -echo "${ECHO_T}$ac_system_error_13" >&6 - if test x"$ac_system_error_13" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error13" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error13" >&6 +if test x"$glibcxx_cv_system_error13" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE_ENOTSUP 1 +#define HAVE_EIDRM 1 _ACEOF - fi - - echo "$as_me:$LINENO: checking for EIDRM" >&5 -echo $ECHO_N "checking for EIDRM... $ECHO_C" >&6 - if test "${ac_system_error_14+set}" = set; then +fi +echo "$as_me:$LINENO: checking for ETXTBSY" >&5 +echo $ECHO_N "checking for ETXTBSY... $ECHO_C" >&6 +if test "${glibcxx_cv_system_error14+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -17822,7 +18199,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - int i = EIDRM; +int i = ETXTBSY; ; return 0; } @@ -17849,44 +18226,58 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_14=yes + glibcxx_cv_system_error14=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_14=no +glibcxx_cv_system_error14=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_14" >&5 -echo "${ECHO_T}$ac_system_error_14" >&6 - if test x"$ac_system_error_14" = x"yes"; then +echo "$as_me:$LINENO: result: $glibcxx_cv_system_error14" >&5 +echo "${ECHO_T}$glibcxx_cv_system_error14" >&6 +if test x"$glibcxx_cv_system_error14" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE_EIDRM 1 +#define HAVE_ETXTBSY 1 _ACEOF - fi +fi - echo "$as_me:$LINENO: checking for ETXTBSY" >&5 -echo $ECHO_N "checking for ETXTBSY... $ECHO_C" >&6 - if test "${ac_system_error_15+set}" = set; then + + +# For the streamoff typedef. + + + + + ac_ext=cc +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 + + + echo "$as_me:$LINENO: checking for int64_t" >&5 +echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 + if test "${glibcxx_cv_INT64_T+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include int main () { - int i = ETXTBSY; +int64_t var; ; return 0; } @@ -17900,7 +18291,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -17913,168 +18304,111 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_system_error_15=yes + glibcxx_cv_INT64_T=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_system_error_15=no +glibcxx_cv_INT64_T=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - echo "$as_me:$LINENO: result: $ac_system_error_15" >&5 -echo "${ECHO_T}$ac_system_error_15" >&6 - if test x"$ac_system_error_15" = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ETXTBSY 1 -_ACEOF - - fi - -# No surprises, no surprises... - - echo "$as_me:$LINENO: checking for thread model used by GCC" >&5 -echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6 - target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'` - echo "$as_me:$LINENO: result: $target_thread_file" >&5 -echo "${ECHO_T}$target_thread_file" >&6 - - if test $target_thread_file != single; then + if test $glibcxx_cv_INT64_T = yes; then cat >>confdefs.h <<\_ACEOF -#define HAVE_GTHR_DEFAULT 1 +#define HAVE_INT64_T 1 _ACEOF - fi - - glibcxx_thread_h=gthr-$target_thread_file.h - - gthread_file=${toplevel_srcdir}/gcc/${glibcxx_thread_h} - if grep __GTHREADS $gthread_file >/dev/null 2>&1 ; then - enable_thread=yes - else - enable_thread=no - fi - - - - - echo "$as_me:$LINENO: checking for atomic builtins" >&5 -echo $ECHO_N "checking for atomic builtins... $ECHO_C" >&6 - - - ac_ext=cc -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 + echo "$as_me:$LINENO: result: $glibcxx_cv_INT64_T" >&5 +echo "${ECHO_T}$glibcxx_cv_INT64_T" >&6 + echo "$as_me:$LINENO: checking for int64_t as long" >&5 +echo $ECHO_N "checking for int64_t as long... $ECHO_C" >&6 + if test "${glibcxx_cv_int64_t_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else - # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. - cat > conftest.$ac_ext << EOF -#line 17979 "configure" -int main() + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + template struct same { enum { value = -1 }; }; + template struct same { enum { value = 1 }; }; + int array[same::value]; +int +main () { - // NB: _Atomic_word not necessarily int. - typedef int atomic_type; - atomic_type c1; - atomic_type c2; - const atomic_type c3(0); - if (__sync_fetch_and_add(&c1, c2) == c3) - { - // Do something. - } - return 0; + + ; + return 0; } -EOF - old_CXXFLAGS="$CXXFLAGS" - CXXFLAGS=-S - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if grep __sync_fetch_and_add conftest.s >/dev/null 2>&1 ; then - enable_atomic_builtins=no - else - -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_ATOMIC_BUILTINS 1 -_ACEOF - - enable_atomic_builtins=yes - atomicity_dir=cpu/generic/atomicity_builtins - fi - fi - CXXFLAGS="$old_CXXFLAGS" - rm -f conftest* - - # Now, if still generic, set to mutex. - if test $atomicity_dir = "cpu/generic" ; then - atomicity_dir=cpu/generic/atomicity_mutex - fi - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - echo "$as_me:$LINENO: result: $enable_atomic_builtins" >&5 -echo "${ECHO_T}$enable_atomic_builtins" >&6 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_int64_t_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -if test $atomicity_dir = cpu/generic/atomicity_mutex ; then - { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5 -echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;} - if test $target_thread_file = single; then - { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5 -echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;} - { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5 -echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;} - else - { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5 -echo "$as_me: WARNING: They will be faked using a mutex." >&2;} - { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5 -echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;} - fi +glibcxx_cv_int64_t_long=no fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi - # All these tests are for C++; save the language and the compiler flags. - # The CXXFLAGS thing is suspicious, but based on similar bits previously - # found in GLIBCXX_CONFIGURE. + if test $glibcxx_cv_int64_t_long = yes; then - ac_ext=cc -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 +cat >>confdefs.h <<\_ACEOF +#define HAVE_INT64_T_LONG 1 +_ACEOF - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" + echo "$as_me:$LINENO: result: $glibcxx_cv_int64_t_long" >&5 +echo "${ECHO_T}$glibcxx_cv_int64_t_long" >&6 + fi - # Check for maintainer-mode bits. - if test x"$USE_MAINTAINER_MODE" = xno; then - WERROR='' - else - WERROR='-Werror' - fi + echo "$as_me:$LINENO: checking for int64_t as long long" >&5 +echo $ECHO_N "checking for int64_t as long long... $ECHO_C" >&6 + if test "${glibcxx_cv_int64_t_long_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else - # Check for -ffunction-sections -fdata-sections - echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 -echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6 - CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections' - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -int foo; void bar() { }; +#include + template struct same { enum { value = -1 }; }; + template struct same { enum { value = 1 }; }; + int array[same::value]; int main () { @@ -18105,25 +18439,28 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_fdsections=yes + glibcxx_cv_int64_t_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_fdsections=no +glibcxx_cv_int64_t_long_long=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" - else - # this is the suspicious part - CXXFLAGS='' - fi - if test x"$ac_fdsections" = x"yes"; then - SECTION_FLAGS='-ffunction-sections -fdata-sections' + +fi + + + if test $glibcxx_cv_int64_t_long_long = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_INT64_T_LONG_LONG 1 +_ACEOF + + echo "$as_me:$LINENO: result: $glibcxx_cv_int64_t_long_long" >&5 +echo "${ECHO_T}$glibcxx_cv_int64_t_long_long" >&6 + fi fi - echo "$as_me:$LINENO: result: $ac_fdsections" >&5 -echo "${ECHO_T}$ac_fdsections" >&6 ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -18133,32 +18470,27 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -if $GLIBCXX_IS_NATIVE; then - - # We can do more elaborate tests that assume a working linker. - CANADIAN=no - - # Check for available headers. - - - - - - - +# For C99 support to TR1. + ac_ext=cc +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 + # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__ + # undefined and fake C99 facilities may be spuriously enabled. + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -std=c++98" + # Check for the existence of complex math functions used + # by tr1/complex. -for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \ - machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \ - sys/types.h sys/ipc.h sys/sem.h +for ac_header in complex.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -18191,7 +18523,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -18235,8 +18567,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag else ac_cpp_err= fi @@ -18256,7 +18588,7 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} @@ -18302,396 +18634,187 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - -fi - -done - - - - -# Check whether --with-gnu-ld or --without-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval="$with_gnu_ld" - test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi; -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 -else - echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + ac_has_complex_h=yes else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - - - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld version" >&5 -echo $ECHO_N "checking for ld version... $ECHO_C" >&6 - - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - - glibcxx_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` - echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 -echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 - fi - - # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && - test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - # Sufficiently young GNU ld it is! Joy and bunny rabbits! - # NB: This flag only works reliably after 2.16.1. Configure tests - # for this are difficult, so hard wire a value that should work. - - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-Wl,--gc-sections' +done - # Check for -Wl,--gc-sections - echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 -echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + ac_c99_complex_tr1=no; + if test x"$ac_has_complex_h" = x"yes"; then + echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 +echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - int one(void) { return 1; } - int two(void) { return 2; } - +#include int main () { - two(); +typedef __complex__ float float_type; float_type tmpf; + cacosf(tmpf); + casinf(tmpf); + catanf(tmpf); + cacoshf(tmpf); + casinhf(tmpf); + catanhf(tmpf); + typedef __complex__ double double_type; double_type tmpd; + cacos(tmpd); + casin(tmpd); + catan(tmpd); + cacosh(tmpd); + casinh(tmpd); + catanh(tmpd); + typedef __complex__ long double ld_type; ld_type tmpld; + cacosl(tmpld); + casinl(tmpld); + catanl(tmpld); + cacoshl(tmpld); + casinhl(tmpld); + catanhl(tmpld); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_gcsections=yes + ac_c99_complex_tr1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_gcsections=no +ac_c99_complex_tr1=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$ac_gcsections" = "yes"; then - rm -f conftest.c - touch conftest.c - if $CC -c conftest.c; then - if $LD --gc-sections -o conftest conftest.o 2>&1 | \ - grep "Warning: gc-sections option ignored" > /dev/null; then - ac_gcsections=no - fi - fi - rm -f conftest.c conftest.o conftest - fi - if test "$ac_gcsections" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - echo "$as_me:$LINENO: result: $ac_gcsections" >&5 -echo "${ECHO_T}$ac_gcsections" >&6 - - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi + echo "$as_me:$LINENO: result: $ac_c99_complex_tr1" >&5 +echo "${ECHO_T}$ac_c99_complex_tr1" >&6 + if test x"$ac_c99_complex_tr1" = x"yes"; then - # Set -z,relro. - # Note this is only for shared objects. - ac_ld_relro=no - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 -echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 - cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` - if test -n "$cxx_z_relo"; then - OPT_LDFLAGS="-Wl,-z,relro" - ac_ld_relro=yes - fi - echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 -echo "${ECHO_T}$ac_ld_relro" >&6 - fi +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_C99_COMPLEX_TR1 1 +_ACEOF - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" fi - - - - - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS='-fno-builtin -D_GNU_SOURCE' - - echo "$as_me:$LINENO: checking for sin in -lm" >&5 -echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_sin+set}" = set; then + # Check for the existence of functions. + echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 +echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 + if test "${glibcxx_cv_c99_ctype_tr1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char sin (); +#include int main () { -sin (); +int ch; + int ret; + ret = isblank(ch); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_sin=yes + glibcxx_cv_c99_ctype_tr1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_sin=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +glibcxx_cv_c99_ctype_tr1=no fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 -echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 -if test $ac_cv_lib_m_sin = yes; then - libm="-lm" +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + fi - ac_save_LIBS="$LIBS" - LIBS="$LIBS $libm" + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_ctype_tr1" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_ctype_tr1" >&6 + if test x"$glibcxx_cv_c99_ctype_tr1" = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_C99_CTYPE_TR1 1 +_ACEOF + fi + # Check for the existence of functions. - echo "$as_me:$LINENO: checking for isinf declaration" >&5 -echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinf_use+set} != xset; then - if test "${glibcxx_cv_func_isinf_use+set}" = set; then +for ac_header in fenv.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #ifdef HAVE_IEEEFP_H - #include - #endif - -int -main () -{ - isinf(0); - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -18715,167 +18838,232 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinf_use=yes + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinf_use=no +ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6 - - if test x$glibcxx_cv_func_isinf_use = x"yes"; then +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 -for ac_func in isinf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 -#ifdef __STDC__ -# include -#else -# include -#endif +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -#undef $ac_func +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + ac_has_fenv_h=yes +else + ac_has_fenv_h=no +fi -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif +done + ac_c99_fenv_tr1=no; + if test x"$ac_has_fenv_h" = x"yes"; then + echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 +echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include int main () { -return f != $ac_func; +int except, mode; + fexcept_t* pflag; + fenv_t* penv; + int ret; + ret = feclearexcept(except); + ret = fegetexceptflag(pflag, except); + ret = feraiseexcept(except); + ret = fesetexceptflag(pflag, except); + ret = fetestexcept(except); + ret = fegetround(); + ret = fesetround(mode); + ret = fegetenv(penv); + ret = feholdexcept(penv); + ret = fesetenv(penv); + ret = feupdateenv(penv); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_c99_fenv_tr1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +ac_c99_fenv_tr1=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + fi + echo "$as_me:$LINENO: result: $ac_c99_fenv_tr1" >&5 +echo "${ECHO_T}$ac_c99_fenv_tr1" >&6 + if test x"$ac_c99_fenv_tr1" = x"yes"; then -fi -done +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_C99_FENV_TR1 1 +_ACEOF - else + fi - echo "$as_me:$LINENO: checking for _isinf declaration" >&5 -echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinf_use+set} != xset; then - if test "${glibcxx_cv_func__isinf_use+set}" = set; then + # Check for the existence of types. + echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 +echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 + if test "${glibcxx_cv_c99_stdint_tr1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #ifdef HAVE_IEEEFP_H - #include - #endif - +#include int main () { - _isinf(0); +typedef int8_t my_int8_t; + typedef int16_t my_int16_t; + typedef int32_t my_int32_t; + typedef int64_t my_int64_t; + typedef int_fast8_t my_int_fast8_t; + typedef int_fast16_t my_int_fast16_t; + typedef int_fast32_t my_int_fast32_t; + typedef int_fast64_t my_int_fast64_t; + typedef int_least8_t my_int_least8_t; + typedef int_least16_t my_int_least16_t; + typedef int_least32_t my_int_least32_t; + typedef int_least64_t my_int_least64_t; + typedef intmax_t my_intmax_t; + typedef intptr_t my_intptr_t; + typedef uint8_t my_uint8_t; + typedef uint16_t my_uint16_t; + typedef uint32_t my_uint32_t; + typedef uint64_t my_uint64_t; + typedef uint_fast8_t my_uint_fast8_t; + typedef uint_fast16_t my_uint_fast16_t; + typedef uint_fast32_t my_uint_fast32_t; + typedef uint_fast64_t my_uint_fast64_t; + typedef uint_least8_t my_uint_least8_t; + typedef uint_least16_t my_uint_least16_t; + typedef uint_least32_t my_uint_least32_t; + typedef uint_least64_t my_uint_least64_t; + typedef uintmax_t my_uintmax_t; + typedef uintptr_t my_uintptr_t; + ; return 0; } @@ -18902,173 +19090,223 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinf_use=yes + glibcxx_cv_c99_stdint_tr1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinf_use=no +glibcxx_cv_c99_stdint_tr1=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_stdint_tr1" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_stdint_tr1" >&6 + if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then - if test x$glibcxx_cv_func__isinf_use = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_C99_STDINT_TR1 1 +_ACEOF -for ac_func in _isinf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + fi + + # Check for the existence of functions. + echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 +echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 + if test "${glibcxx_cv_c99_math_tr1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +typedef double_t my_double_t; + typedef float_t my_float_t; + acosh(0.0); + acoshf(0.0f); + acoshl(0.0l); + asinh(0.0); + asinhf(0.0f); + asinhl(0.0l); + atanh(0.0); + atanhf(0.0f); + atanhl(0.0l); + cbrt(0.0); + cbrtf(0.0f); + cbrtl(0.0l); + copysign(0.0, 0.0); + copysignf(0.0f, 0.0f); + copysignl(0.0l, 0.0l); + erf(0.0); + erff(0.0f); + erfl(0.0l); + erfc(0.0); + erfcf(0.0f); + erfcl(0.0l); + exp2(0.0); + exp2f(0.0f); + exp2l(0.0l); + expm1(0.0); + expm1f(0.0f); + expm1l(0.0l); + fdim(0.0, 0.0); + fdimf(0.0f, 0.0f); + fdiml(0.0l, 0.0l); + fma(0.0, 0.0, 0.0); + fmaf(0.0f, 0.0f, 0.0f); + fmal(0.0l, 0.0l, 0.0l); + fmax(0.0, 0.0); + fmaxf(0.0f, 0.0f); + fmaxl(0.0l, 0.0l); + fmin(0.0, 0.0); + fminf(0.0f, 0.0f); + fminl(0.0l, 0.0l); + hypot(0.0, 0.0); + hypotf(0.0f, 0.0f); + hypotl(0.0l, 0.0l); + ilogb(0.0); + ilogbf(0.0f); + ilogbl(0.0l); + lgamma(0.0); + lgammaf(0.0f); + lgammal(0.0l); + llrint(0.0); + llrintf(0.0f); + llrintl(0.0l); + llround(0.0); + llroundf(0.0f); + llroundl(0.0l); + log1p(0.0); + log1pf(0.0f); + log1pl(0.0l); + log2(0.0); + log2f(0.0f); + log2l(0.0l); + logb(0.0); + logbf(0.0f); + logbl(0.0l); + lrint(0.0); + lrintf(0.0f); + lrintl(0.0l); + lround(0.0); + lroundf(0.0f); + lroundl(0.0l); + nan(0); + nanf(0); + nanl(0); + nearbyint(0.0); + nearbyintf(0.0f); + nearbyintl(0.0l); + nextafter(0.0, 0.0); + nextafterf(0.0f, 0.0f); + nextafterl(0.0l, 0.0l); + nexttoward(0.0, 0.0); + nexttowardf(0.0f, 0.0f); + nexttowardl(0.0l, 0.0l); + remainder(0.0, 0.0); + remainderf(0.0f, 0.0f); + remainderl(0.0l, 0.0l); + remquo(0.0, 0.0, 0); + remquo(0.0f, 0.0f, 0); + remquo(0.0l, 0.0l, 0); + rint(0.0); + rintf(0.0f); + rintl(0.0l); + round(0.0); + roundf(0.0f); + roundl(0.0l); + scalbln(0.0, 0l); + scalblnf(0.0f, 0l); + scalblnl(0.0l, 0l); + scalbn(0.0, 0); + scalbnf(0.0f, 0); + scalbnl(0.0l, 0); + tgamma(0.0); + tgammaf(0.0f); + tgammal(0.0l); + trunc(0.0); + truncf(0.0f); + truncl(0.0l); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_c99_math_tr1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +glibcxx_cv_c99_math_tr1=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -done - - fi - fi - - - - - - - echo "$as_me:$LINENO: checking for isnan declaration" >&5 -echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnan_use+set} != xset; then - if test "${glibcxx_cv_func_isnan_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + echo "$as_me:$LINENO: result: $glibcxx_cv_c99_math_tr1" >&5 +echo "${ECHO_T}$glibcxx_cv_c99_math_tr1" >&6 + if test x"$glibcxx_cv_c99_math_tr1" = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_C99_MATH_TR1 1 +_ACEOF - ac_ext=cc -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 - cat >conftest.$ac_ext <<_ACEOF + # Check for the existence of functions (NB: doesn't make + # sense if the previous check fails, per C99, 7.8/1). + ac_c99_inttypes_tr1=no; + if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then + echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 +echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #ifdef HAVE_IEEEFP_H - #include - #endif - +#include int main () { - isnan(0); +intmax_t i, numer, denom, base; + const char* s; + char** endptr; + intmax_t ret = imaxabs(i); + imaxdiv_t dret = imaxdiv(numer, denom); + ret = strtoimax(s, endptr, base); + uintmax_t uret = strtoumax(s, endptr, base); + ; return 0; } @@ -19095,170 +19333,50 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnan_use=yes + ac_c99_inttypes_tr1=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnan_use=no +ac_c99_inttypes_tr1=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - + fi + echo "$as_me:$LINENO: result: $ac_c99_inttypes_tr1" >&5 +echo "${ECHO_T}$ac_c99_inttypes_tr1" >&6 + if test x"$ac_c99_inttypes_tr1" = x"yes"; then -fi +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_C99_INTTYPES_TR1 1 +_ACEOF fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6 - if test x$glibcxx_cv_func_isnan_use = x"yes"; then + # Check for the existence of the header. -for ac_func in isnan +for ac_header in stdbool.h do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - else - - echo "$as_me:$LINENO: checking for _isnan declaration" >&5 -echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnan_use+set} != xset; then - if test "${glibcxx_cv_func__isnan_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #ifdef HAVE_IEEEFP_H - #include - #endif - -int -main () -{ - _isnan(0); - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -19282,173 +19400,142 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnan_use=yes + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnan_use=no +ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6 - - if test x$glibcxx_cv_func__isnan_use = x"yes"; then +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 -for ac_func in _isnan -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} +#include <$ac_header> _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" + ac_header_preproc=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi + done - fi - fi + CXXFLAGS="$ac_save_CXXFLAGS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +# For common values of EOF, SEEK_CUR, SEEK_END. - echo "$as_me:$LINENO: checking for finite declaration" >&5 -echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finite_use+set} != xset; then - if test "${glibcxx_cv_func_finite_use+set}" = set; then + echo "$as_me:$LINENO: checking for EOF == -1, SEEK_CUR == 1, SEEK_END == 2" >&5 +echo $ECHO_N "checking for EOF == -1, SEEK_CUR == 1, SEEK_END == 2... $ECHO_C" >&6 + if test "${glibcxx_cv_stdio_macros+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #ifdef HAVE_IEEEFP_H - #include - #endif - +#include int main () { - finite(0); +#if ((EOF != -1) || (SEEK_CUR != 1) || (SEEK_END != 2)) + unusual values... + #endif + ; return 0; } @@ -19462,7 +19549,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -19475,170 +19562,75 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finite_use=yes + glibcxx_cv_stdio_macros=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finite_use=no +glibcxx_cv_stdio_macros=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi + echo "$as_me:$LINENO: result: $glibcxx_cv_stdio_macros" >&5 +echo "${ECHO_T}$glibcxx_cv_stdio_macros" >&6 + if test x"$glibcxx_cv_stdio_macros" = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_STDIO_MACROS 1 +_ACEOF + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6 - if test x$glibcxx_cv_func_finite_use = x"yes"; then -for ac_func in finite -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +# Only do link tests if native. Else, hardcode. +if $GLIBCXX_IS_NATIVE; then -#ifdef __STDC__ -# include -#else -# include -#endif + # We can do more elaborate tests that assume a working linker. + CANADIAN=no -#undef $ac_func + # Check for available headers. -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done - else - echo "$as_me:$LINENO: checking for _finite declaration" >&5 -echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finite_use+set} != xset; then - if test "${glibcxx_cv_func__finite_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=cc -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 - cat >conftest.$ac_ext <<_ACEOF + + + + +for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \ + machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h \ + sys/types.h sys/ipc.h sys/sem.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #ifdef HAVE_IEEEFP_H - #include - #endif - -int -main () -{ - _finite(0); - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -19649,7 +19641,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -19662,89 +19654,426 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finite_use=yes + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finite_use=no +ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6 - - if test x$glibcxx_cv_func__finite_use = x"yes"; then +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 -for ac_func in _finite -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -#undef $ac_func + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi; +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 +else + echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 +fi +if test "${lt_cv_path_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 +if test "${lt_cv_prog_gnu_ld+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # If we're not using GNU ld, then there's no point in even trying these + # tests. Check for that first. We should have already tested for gld + # by now (in libtool), but require it now just to be safe... + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' + + + + # The name set by libtool depends on the version of libtool. Shame on us + # for depending on an impl detail, but c'est la vie. Older versions used + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't + # set (hence we're using an older libtool), then set it. + if test x${with_gnu_ld+set} != xset; then + if test x${ac_cv_prog_gnu_ld+set} != xset; then + # We got through "ac_require(ac_prog_ld)" and still not set? Huh? + with_gnu_ld=no + else + with_gnu_ld=$ac_cv_prog_gnu_ld + fi + fi + + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + glibcxx_ld_is_gold=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld version" >&5 +echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 +echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 + fi + + # Set --gc-sections. + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && + test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then + # Sufficiently young GNU ld it is! Joy and bunny rabbits! + # NB: This flag only works reliably after 2.16.1. Configure tests + # for this are difficult, so hard wire a value that should work. + + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-Wl,--gc-sections' + + # Check for -Wl,--gc-sections + echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 +echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + int one(void) { return 1; } + int two(void) { return 2; } + +int +main () +{ + two(); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_gcsections=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_gcsections=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_gcsections" = "yes"; then + rm -f conftest.c + touch conftest.c + if $CC -c conftest.c; then + if $LD --gc-sections -o conftest conftest.o 2>&1 | \ + grep "Warning: gc-sections option ignored" > /dev/null; then + ac_gcsections=no + fi + fi + rm -f conftest.c conftest.o conftest + fi + if test "$ac_gcsections" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$as_me:$LINENO: result: $ac_gcsections" >&5 +echo "${ECHO_T}$ac_gcsections" >&6 + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + fi + + # Set -z,relro. + # Note this is only for shared objects. + ac_ld_relro=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 +echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 + cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` + if test -n "$cxx_z_relo"; then + OPT_LDFLAGS="-Wl,-z,relro" + ac_ld_relro=yes + fi + echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 +echo "${ECHO_T}$ac_ld_relro" >&6 + fi + + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi + + + + + + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-fno-builtin -D_GNU_SOURCE' + + echo "$as_me:$LINENO: checking for sin in -lm" >&5 +echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_sin+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" -{ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +char sin (); int main () { -return f != $ac_func; +sin (); ; return 0; } @@ -19771,38 +20100,32 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_cv_lib_m_sin=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +ac_cv_lib_m_sin=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 +echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 +if test $ac_cv_lib_m_sin = yes; then + libm="-lm" fi -done - - fi - fi - - + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libm" - echo "$as_me:$LINENO: checking for copysign declaration" >&5 -echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_copysign_use+set} != xset; then - if test "${glibcxx_cv_func_copysign_use+set}" = set; then + echo "$as_me:$LINENO: checking for isinf declaration" >&5 +echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinf_use+set} != xset; then + if test "${glibcxx_cv_func_isinf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -19821,10 +20144,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - copysign(0, 0); + isinf(0); ; return 0; } @@ -19851,12 +20178,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_copysign_use=yes + glibcxx_cv_func_isinf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_copysign_use=no +glibcxx_cv_func_isinf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -19869,12 +20196,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6 - if test x$glibcxx_cv_func_copysign_use = x"yes"; then + if test x$glibcxx_cv_func_isinf_use = x"yes"; then -for ac_func in copysign +for ac_func in isinf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -19982,10 +20309,10 @@ done else - echo "$as_me:$LINENO: checking for _copysign declaration" >&5 -echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__copysign_use+set} != xset; then - if test "${glibcxx_cv_func__copysign_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isinf declaration" >&5 +echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinf_use+set} != xset; then + if test "${glibcxx_cv_func__isinf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -20004,10 +20331,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _copysign(0, 0); + _isinf(0); ; return 0; } @@ -20034,12 +20365,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__copysign_use=yes + glibcxx_cv_func__isinf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__copysign_use=no +glibcxx_cv_func__isinf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -20052,12 +20383,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6 - if test x$glibcxx_cv_func__copysign_use = x"yes"; then + if test x$glibcxx_cv_func__isinf_use = x"yes"; then -for ac_func in _copysign +for ac_func in _isinf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -20171,10 +20502,10 @@ done - echo "$as_me:$LINENO: checking for sincos declaration" >&5 -echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincos_use+set} != xset; then - if test "${glibcxx_cv_func_sincos_use+set}" = set; then + echo "$as_me:$LINENO: checking for isnan declaration" >&5 +echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnan_use+set} != xset; then + if test "${glibcxx_cv_func_isnan_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -20193,10 +20524,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - sincos(0, 0, 0); + isnan(0); ; return 0; } @@ -20223,12 +20558,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincos_use=yes + glibcxx_cv_func_isnan_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincos_use=no +glibcxx_cv_func_isnan_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -20241,12 +20576,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6 - if test x$glibcxx_cv_func_sincos_use = x"yes"; then + if test x$glibcxx_cv_func_isnan_use = x"yes"; then -for ac_func in sincos +for ac_func in isnan do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -20354,10 +20689,10 @@ done else - echo "$as_me:$LINENO: checking for _sincos declaration" >&5 -echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincos_use+set} != xset; then - if test "${glibcxx_cv_func__sincos_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isnan declaration" >&5 +echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnan_use+set} != xset; then + if test "${glibcxx_cv_func__isnan_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -20376,10 +20711,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _sincos(0, 0, 0); + _isnan(0); ; return 0; } @@ -20406,12 +20745,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincos_use=yes + glibcxx_cv_func__isnan_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincos_use=no +glibcxx_cv_func__isnan_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -20424,12 +20763,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6 - if test x$glibcxx_cv_func__sincos_use = x"yes"; then + if test x$glibcxx_cv_func__isnan_use = x"yes"; then -for ac_func in _sincos +for ac_func in _isnan do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -20543,10 +20882,10 @@ done - echo "$as_me:$LINENO: checking for fpclass declaration" >&5 -echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fpclass_use+set} != xset; then - if test "${glibcxx_cv_func_fpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for finite declaration" >&5 +echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finite_use+set} != xset; then + if test "${glibcxx_cv_func_finite_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -20572,7 +20911,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fpclass(0); + finite(0); ; return 0; } @@ -20599,12 +20938,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fpclass_use=yes + glibcxx_cv_func_finite_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fpclass_use=no +glibcxx_cv_func_finite_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -20617,12 +20956,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6 - if test x$glibcxx_cv_func_fpclass_use = x"yes"; then + if test x$glibcxx_cv_func_finite_use = x"yes"; then -for ac_func in fpclass +for ac_func in finite do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -20730,10 +21069,10 @@ done else - echo "$as_me:$LINENO: checking for _fpclass declaration" >&5 -echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fpclass_use+set} != xset; then - if test "${glibcxx_cv_func__fpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for _finite declaration" >&5 +echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finite_use+set} != xset; then + if test "${glibcxx_cv_func__finite_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -20759,7 +21098,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fpclass(0); + _finite(0); ; return 0; } @@ -20786,12 +21125,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fpclass_use=yes + glibcxx_cv_func__finite_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fpclass_use=no +glibcxx_cv_func__finite_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -20804,12 +21143,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6 - if test x$glibcxx_cv_func__fpclass_use = x"yes"; then + if test x$glibcxx_cv_func__finite_use = x"yes"; then -for ac_func in _fpclass +for ac_func in _finite do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -20923,10 +21262,10 @@ done - echo "$as_me:$LINENO: checking for qfpclass declaration" >&5 -echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then - if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for copysign declaration" >&5 +echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_copysign_use+set} != xset; then + if test "${glibcxx_cv_func_copysign_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -20945,14 +21284,193 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif +int +main () +{ + copysign(0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_copysign_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_copysign_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6 + + if test x$glibcxx_cv_func_copysign_use = x"yes"; then + +for ac_func in copysign +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif int main () { - qfpclass(0); +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + else + + echo "$as_me:$LINENO: checking for _copysign declaration" >&5 +echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__copysign_use+set} != xset; then + if test "${glibcxx_cv_func__copysign_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + _copysign(0, 0); ; return 0; } @@ -20979,12 +21497,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_qfpclass_use=yes + glibcxx_cv_func__copysign_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_qfpclass_use=no +glibcxx_cv_func__copysign_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -20997,12 +21515,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6 - if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then + if test x$glibcxx_cv_func__copysign_use = x"yes"; then -for ac_func in qfpclass +for ac_func in _copysign do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -21108,12 +21626,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5 -echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then - if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sincos declaration" >&5 +echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincos_use+set} != xset; then + if test "${glibcxx_cv_func_sincos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -21132,14 +21656,193 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif +int +main () +{ + sincos(0, 0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_sincos_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_sincos_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6 + + if test x$glibcxx_cv_func_sincos_use = x"yes"; then + +for ac_func in sincos +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif int main () { - _qfpclass(0); +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + else + + echo "$as_me:$LINENO: checking for _sincos declaration" >&5 +echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincos_use+set} != xset; then + if test "${glibcxx_cv_func__sincos_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + _sincos(0, 0, 0); ; return 0; } @@ -21166,12 +21869,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__qfpclass_use=yes + glibcxx_cv_func__sincos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__qfpclass_use=no +glibcxx_cv_func__sincos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -21184,12 +21887,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6 - if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then + if test x$glibcxx_cv_func__sincos_use = x"yes"; then -for ac_func in _qfpclass +for ac_func in _sincos do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -21303,10 +22006,10 @@ done - echo "$as_me:$LINENO: checking for hypot declaration" >&5 -echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypot_use+set} != xset; then - if test "${glibcxx_cv_func_hypot_use+set}" = set; then + echo "$as_me:$LINENO: checking for fpclass declaration" >&5 +echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fpclass_use+set} != xset; then + if test "${glibcxx_cv_func_fpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -21325,10 +22028,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - hypot(0, 0); + fpclass(0); ; return 0; } @@ -21355,12 +22062,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypot_use=yes + glibcxx_cv_func_fpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypot_use=no +glibcxx_cv_func_fpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -21373,12 +22080,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6 - if test x$glibcxx_cv_func_hypot_use = x"yes"; then + if test x$glibcxx_cv_func_fpclass_use = x"yes"; then -for ac_func in hypot +for ac_func in fpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -21486,10 +22193,10 @@ done else - echo "$as_me:$LINENO: checking for _hypot declaration" >&5 -echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypot_use+set} != xset; then - if test "${glibcxx_cv_func__hypot_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fpclass declaration" >&5 +echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fpclass_use+set} != xset; then + if test "${glibcxx_cv_func__fpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -21508,10 +22215,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _hypot(0, 0); + _fpclass(0); ; return 0; } @@ -21538,12 +22249,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypot_use=yes + glibcxx_cv_func__fpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypot_use=no +glibcxx_cv_func__fpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -21556,12 +22267,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6 - if test x$glibcxx_cv_func__hypot_use = x"yes"; then + if test x$glibcxx_cv_func__fpclass_use = x"yes"; then -for ac_func in _hypot +for ac_func in _fpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -21675,31 +22386,36 @@ done - echo "$as_me:$LINENO: checking for float trig functions" >&5 -echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_float_trig_use+set}" = set; then + echo "$as_me:$LINENO: checking for qfpclass declaration" >&5 +echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then + if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); + qfpclass(0); ; return 0; } @@ -21726,35 +22442,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_float_trig_use=yes + glibcxx_cv_func_qfpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_float_trig_use=no +glibcxx_cv_func_qfpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6 - if test x$glibcxx_cv_func_float_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6 + if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then -for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf +for ac_func in qfpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -21861,9 +22572,11 @@ fi done else - echo "$as_me:$LINENO: checking for _float trig functions" >&5 -echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__float_trig_use+set}" = set; then + + echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5 +echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then + if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -21882,10 +22595,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); + _qfpclass(0); ; return 0; } @@ -21912,12 +22629,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__float_trig_use=yes + glibcxx_cv_func__qfpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__float_trig_use=no +glibcxx_cv_func__qfpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -21926,21 +22643,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6 - if test x$glibcxx_cv_func__float_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6 + if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then -for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf +for ac_func in _qfpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -22054,29 +22766,22 @@ done - - - - - - - - - echo "$as_me:$LINENO: checking for float round functions" >&5 -echo $ECHO_N "checking for float round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_float_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypot declaration" >&5 +echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypot_use+set} != xset; then + if test "${glibcxx_cv_func_hypot_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -22086,7 +22791,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -ceilf (0); floorf (0); + hypot(0, 0); ; return 0; } @@ -22113,28 +22818,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_float_round_use=yes + glibcxx_cv_func_hypot_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_float_round_use=no +glibcxx_cv_func_hypot_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6 - if test x$glibcxx_cv_func_float_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6 + if test x$glibcxx_cv_func_hypot_use = x"yes"; then -for ac_func in ceilf floorf +for ac_func in hypot do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -22241,9 +22948,11 @@ fi done else - echo "$as_me:$LINENO: checking for _float round functions" >&5 -echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__float_round_use+set}" = set; then + + echo "$as_me:$LINENO: checking for _hypot declaration" >&5 +echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypot_use+set} != xset; then + if test "${glibcxx_cv_func__hypot_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -22265,7 +22974,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -_ceilf (0); _floorf (0); + _hypot(0, 0); ; return 0; } @@ -22292,12 +23001,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__float_round_use=yes + glibcxx_cv_func__hypot_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__float_round_use=no +glibcxx_cv_func__hypot_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -22306,14 +23015,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6 - if test x$glibcxx_cv_func__float_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6 + if test x$glibcxx_cv_func__hypot_use = x"yes"; then -for ac_func in _ceilf _floorf +for ac_func in _hypot do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -22427,38 +23138,31 @@ done - - - echo "$as_me:$LINENO: checking for expf declaration" >&5 -echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_expf_use+set} != xset; then - if test "${glibcxx_cv_func_expf_use+set}" = set; then + echo "$as_me:$LINENO: checking for float trig functions" >&5 +echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_float_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - expf(0); +acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); ; return 0; } @@ -22485,30 +23189,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_expf_use=yes + glibcxx_cv_func_float_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_expf_use=no +glibcxx_cv_func_float_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6 + if test x$glibcxx_cv_func_float_trig_use = x"yes"; then - if test x$glibcxx_cv_func_expf_use = x"yes"; then -for ac_func in expf + + + + + + + +for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -22615,11 +23324,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _expf declaration" >&5 -echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__expf_use+set} != xset; then - if test "${glibcxx_cv_func__expf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _float trig functions" >&5 +echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__float_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -22638,14 +23345,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _expf(0); +_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); ; return 0; } @@ -22672,12 +23375,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__expf_use=yes + glibcxx_cv_func__float_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__expf_use=no +glibcxx_cv_func__float_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -22686,16 +23389,21 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6 + if test x$glibcxx_cv_func__float_trig_use = x"yes"; then - if test x$glibcxx_cv_func__expf_use = x"yes"; then -for ac_func in _expf + + + + + + + +for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -22809,36 +23517,39 @@ done - echo "$as_me:$LINENO: checking for isnanf declaration" >&5 -echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnanf_use+set} != xset; then - if test "${glibcxx_cv_func_isnanf_use+set}" = set; then + + + + + + + + + echo "$as_me:$LINENO: checking for float round functions" >&5 +echo $ECHO_N "checking for float round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_float_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isnanf(0); +ceilf (0); floorf (0); ; return 0; } @@ -22865,30 +23576,28 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnanf_use=yes + glibcxx_cv_func_float_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnanf_use=no +glibcxx_cv_func_float_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6 + if test x$glibcxx_cv_func_float_round_use = x"yes"; then - if test x$glibcxx_cv_func_isnanf_use = x"yes"; then -for ac_func in isnanf +for ac_func in ceilf floorf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -22995,11 +23704,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _isnanf declaration" >&5 -echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnanf_use+set} != xset; then - if test "${glibcxx_cv_func__isnanf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _float round functions" >&5 +echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__float_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -23018,14 +23725,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isnanf(0); +_ceilf (0); _floorf (0); ; return 0; } @@ -23052,12 +23755,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnanf_use=yes + glibcxx_cv_func__float_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnanf_use=no +glibcxx_cv_func__float_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -23066,16 +23769,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6 + if test x$glibcxx_cv_func__float_round_use = x"yes"; then - if test x$glibcxx_cv_func__isnanf_use = x"yes"; then -for ac_func in _isnanf +for ac_func in _ceilf _floorf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -23189,10 +23890,12 @@ done - echo "$as_me:$LINENO: checking for isinff declaration" >&5 -echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinff_use+set} != xset; then - if test "${glibcxx_cv_func_isinff_use+set}" = set; then + + + echo "$as_me:$LINENO: checking for expf declaration" >&5 +echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_expf_use+set} != xset; then + if test "${glibcxx_cv_func_expf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -23218,7 +23921,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - isinff(0); + expf(0); ; return 0; } @@ -23245,12 +23948,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinff_use=yes + glibcxx_cv_func_expf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinff_use=no +glibcxx_cv_func_expf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -23263,12 +23966,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6 - if test x$glibcxx_cv_func_isinff_use = x"yes"; then + if test x$glibcxx_cv_func_expf_use = x"yes"; then -for ac_func in isinff +for ac_func in expf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -23376,10 +24079,10 @@ done else - echo "$as_me:$LINENO: checking for _isinff declaration" >&5 -echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinff_use+set} != xset; then - if test "${glibcxx_cv_func__isinff_use+set}" = set; then + echo "$as_me:$LINENO: checking for _expf declaration" >&5 +echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__expf_use+set} != xset; then + if test "${glibcxx_cv_func__expf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -23405,7 +24108,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _isinff(0); + _expf(0); ; return 0; } @@ -23432,12 +24135,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinff_use=yes + glibcxx_cv_func__expf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinff_use=no +glibcxx_cv_func__expf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -23450,12 +24153,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6 - if test x$glibcxx_cv_func__isinff_use = x"yes"; then + if test x$glibcxx_cv_func__expf_use = x"yes"; then -for ac_func in _isinff +for ac_func in _expf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -23569,10 +24272,10 @@ done - echo "$as_me:$LINENO: checking for atan2f declaration" >&5 -echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_atan2f_use+set} != xset; then - if test "${glibcxx_cv_func_atan2f_use+set}" = set; then + echo "$as_me:$LINENO: checking for isnanf declaration" >&5 +echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnanf_use+set} != xset; then + if test "${glibcxx_cv_func_isnanf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -23591,10 +24294,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - atan2f(0, 0); + isnanf(0); ; return 0; } @@ -23621,12 +24328,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_atan2f_use=yes + glibcxx_cv_func_isnanf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_atan2f_use=no +glibcxx_cv_func_isnanf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -23639,12 +24346,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6 - if test x$glibcxx_cv_func_atan2f_use = x"yes"; then + if test x$glibcxx_cv_func_isnanf_use = x"yes"; then -for ac_func in atan2f +for ac_func in isnanf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -23752,10 +24459,10 @@ done else - echo "$as_me:$LINENO: checking for _atan2f declaration" >&5 -echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__atan2f_use+set} != xset; then - if test "${glibcxx_cv_func__atan2f_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isnanf declaration" >&5 +echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnanf_use+set} != xset; then + if test "${glibcxx_cv_func__isnanf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -23774,10 +24481,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _atan2f(0, 0); + _isnanf(0); ; return 0; } @@ -23804,12 +24515,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__atan2f_use=yes + glibcxx_cv_func__isnanf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__atan2f_use=no +glibcxx_cv_func__isnanf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -23822,12 +24533,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6 - if test x$glibcxx_cv_func__atan2f_use = x"yes"; then + if test x$glibcxx_cv_func__isnanf_use = x"yes"; then -for ac_func in _atan2f +for ac_func in _isnanf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -23941,10 +24652,10 @@ done - echo "$as_me:$LINENO: checking for fabsf declaration" >&5 -echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fabsf_use+set} != xset; then - if test "${glibcxx_cv_func_fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for isinff declaration" >&5 +echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinff_use+set} != xset; then + if test "${glibcxx_cv_func_isinff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -23970,7 +24681,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fabsf(0); + isinff(0); ; return 0; } @@ -23997,12 +24708,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fabsf_use=yes + glibcxx_cv_func_isinff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fabsf_use=no +glibcxx_cv_func_isinff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -24015,12 +24726,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6 - if test x$glibcxx_cv_func_fabsf_use = x"yes"; then + if test x$glibcxx_cv_func_isinff_use = x"yes"; then -for ac_func in fabsf +for ac_func in isinff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -24128,10 +24839,10 @@ done else - echo "$as_me:$LINENO: checking for _fabsf declaration" >&5 -echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fabsf_use+set} != xset; then - if test "${glibcxx_cv_func__fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isinff declaration" >&5 +echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinff_use+set} != xset; then + if test "${glibcxx_cv_func__isinff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -24157,7 +24868,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fabsf(0); + _isinff(0); ; return 0; } @@ -24184,12 +24895,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fabsf_use=yes + glibcxx_cv_func__isinff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fabsf_use=no +glibcxx_cv_func__isinff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -24202,12 +24913,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6 - if test x$glibcxx_cv_func__fabsf_use = x"yes"; then + if test x$glibcxx_cv_func__isinff_use = x"yes"; then -for ac_func in _fabsf +for ac_func in _isinff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -24321,10 +25032,10 @@ done - echo "$as_me:$LINENO: checking for fmodf declaration" >&5 -echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fmodf_use+set} != xset; then - if test "${glibcxx_cv_func_fmodf_use+set}" = set; then + echo "$as_me:$LINENO: checking for atan2f declaration" >&5 +echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_atan2f_use+set} != xset; then + if test "${glibcxx_cv_func_atan2f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -24346,7 +25057,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fmodf(0, 0); + atan2f(0, 0); ; return 0; } @@ -24373,12 +25084,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fmodf_use=yes + glibcxx_cv_func_atan2f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fmodf_use=no +glibcxx_cv_func_atan2f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -24391,12 +25102,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6 - if test x$glibcxx_cv_func_fmodf_use = x"yes"; then + if test x$glibcxx_cv_func_atan2f_use = x"yes"; then -for ac_func in fmodf +for ac_func in atan2f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -24504,10 +25215,10 @@ done else - echo "$as_me:$LINENO: checking for _fmodf declaration" >&5 -echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fmodf_use+set} != xset; then - if test "${glibcxx_cv_func__fmodf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _atan2f declaration" >&5 +echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__atan2f_use+set} != xset; then + if test "${glibcxx_cv_func__atan2f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -24529,7 +25240,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fmodf(0, 0); + _atan2f(0, 0); ; return 0; } @@ -24556,12 +25267,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fmodf_use=yes + glibcxx_cv_func__atan2f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fmodf_use=no +glibcxx_cv_func__atan2f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -24574,12 +25285,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6 - if test x$glibcxx_cv_func__fmodf_use = x"yes"; then + if test x$glibcxx_cv_func__atan2f_use = x"yes"; then -for ac_func in _fmodf +for ac_func in _atan2f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -24693,10 +25404,10 @@ done - echo "$as_me:$LINENO: checking for frexpf declaration" >&5 -echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_frexpf_use+set} != xset; then - if test "${glibcxx_cv_func_frexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for fabsf declaration" >&5 +echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fabsf_use+set} != xset; then + if test "${glibcxx_cv_func_fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -24715,10 +25426,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - frexpf(0, 0); + fabsf(0); ; return 0; } @@ -24745,12 +25460,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_frexpf_use=yes + glibcxx_cv_func_fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_frexpf_use=no +glibcxx_cv_func_fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -24763,12 +25478,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6 - if test x$glibcxx_cv_func_frexpf_use = x"yes"; then + if test x$glibcxx_cv_func_fabsf_use = x"yes"; then -for ac_func in frexpf +for ac_func in fabsf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -24876,10 +25591,10 @@ done else - echo "$as_me:$LINENO: checking for _frexpf declaration" >&5 -echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__frexpf_use+set} != xset; then - if test "${glibcxx_cv_func__frexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fabsf declaration" >&5 +echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fabsf_use+set} != xset; then + if test "${glibcxx_cv_func__fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -24898,10 +25613,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _frexpf(0, 0); + _fabsf(0); ; return 0; } @@ -24928,12 +25647,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__frexpf_use=yes + glibcxx_cv_func__fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__frexpf_use=no +glibcxx_cv_func__fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -24946,12 +25665,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6 - if test x$glibcxx_cv_func__frexpf_use = x"yes"; then + if test x$glibcxx_cv_func__fabsf_use = x"yes"; then -for ac_func in _frexpf +for ac_func in _fabsf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -25065,10 +25784,10 @@ done - echo "$as_me:$LINENO: checking for hypotf declaration" >&5 -echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypotf_use+set} != xset; then - if test "${glibcxx_cv_func_hypotf_use+set}" = set; then + echo "$as_me:$LINENO: checking for fmodf declaration" >&5 +echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fmodf_use+set} != xset; then + if test "${glibcxx_cv_func_fmodf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -25090,7 +25809,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - hypotf(0, 0); + fmodf(0, 0); ; return 0; } @@ -25117,12 +25836,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypotf_use=yes + glibcxx_cv_func_fmodf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypotf_use=no +glibcxx_cv_func_fmodf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -25135,12 +25854,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6 - if test x$glibcxx_cv_func_hypotf_use = x"yes"; then + if test x$glibcxx_cv_func_fmodf_use = x"yes"; then -for ac_func in hypotf +for ac_func in fmodf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -25248,10 +25967,10 @@ done else - echo "$as_me:$LINENO: checking for _hypotf declaration" >&5 -echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypotf_use+set} != xset; then - if test "${glibcxx_cv_func__hypotf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fmodf declaration" >&5 +echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fmodf_use+set} != xset; then + if test "${glibcxx_cv_func__fmodf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -25273,7 +25992,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _hypotf(0, 0); + _fmodf(0, 0); ; return 0; } @@ -25300,12 +26019,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypotf_use=yes + glibcxx_cv_func__fmodf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypotf_use=no +glibcxx_cv_func__fmodf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -25318,12 +26037,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6 - if test x$glibcxx_cv_func__hypotf_use = x"yes"; then + if test x$glibcxx_cv_func__fmodf_use = x"yes"; then -for ac_func in _hypotf +for ac_func in _fmodf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -25437,10 +26156,10 @@ done - echo "$as_me:$LINENO: checking for ldexpf declaration" >&5 -echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then - if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for frexpf declaration" >&5 +echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_frexpf_use+set} != xset; then + if test "${glibcxx_cv_func_frexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -25462,7 +26181,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - ldexpf(0, 0); + frexpf(0, 0); ; return 0; } @@ -25489,12 +26208,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_ldexpf_use=yes + glibcxx_cv_func_frexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_ldexpf_use=no +glibcxx_cv_func_frexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -25507,12 +26226,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6 - if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then + if test x$glibcxx_cv_func_frexpf_use = x"yes"; then -for ac_func in ldexpf +for ac_func in frexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -25620,10 +26339,10 @@ done else - echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5 -echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then - if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _frexpf declaration" >&5 +echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__frexpf_use+set} != xset; then + if test "${glibcxx_cv_func__frexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -25645,7 +26364,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _ldexpf(0, 0); + _frexpf(0, 0); ; return 0; } @@ -25672,12 +26391,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__ldexpf_use=yes + glibcxx_cv_func__frexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__ldexpf_use=no +glibcxx_cv_func__frexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -25690,12 +26409,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6 - if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then + if test x$glibcxx_cv_func__frexpf_use = x"yes"; then -for ac_func in _ldexpf +for ac_func in _frexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -25809,10 +26528,10 @@ done - echo "$as_me:$LINENO: checking for logf declaration" >&5 -echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_logf_use+set} != xset; then - if test "${glibcxx_cv_func_logf_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypotf declaration" >&5 +echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypotf_use+set} != xset; then + if test "${glibcxx_cv_func_hypotf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -25831,14 +26550,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - logf(0); + hypotf(0, 0); ; return 0; } @@ -25865,12 +26580,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_logf_use=yes + glibcxx_cv_func_hypotf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_logf_use=no +glibcxx_cv_func_hypotf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -25883,12 +26598,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6 - if test x$glibcxx_cv_func_logf_use = x"yes"; then + if test x$glibcxx_cv_func_hypotf_use = x"yes"; then -for ac_func in logf +for ac_func in hypotf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -25996,10 +26711,10 @@ done else - echo "$as_me:$LINENO: checking for _logf declaration" >&5 -echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__logf_use+set} != xset; then - if test "${glibcxx_cv_func__logf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypotf declaration" >&5 +echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypotf_use+set} != xset; then + if test "${glibcxx_cv_func__hypotf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -26018,14 +26733,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _logf(0); + _hypotf(0, 0); ; return 0; } @@ -26052,12 +26763,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__logf_use=yes + glibcxx_cv_func__hypotf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__logf_use=no +glibcxx_cv_func__hypotf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -26070,12 +26781,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6 - if test x$glibcxx_cv_func__logf_use = x"yes"; then + if test x$glibcxx_cv_func__hypotf_use = x"yes"; then -for ac_func in _logf +for ac_func in _hypotf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -26189,10 +26900,10 @@ done - echo "$as_me:$LINENO: checking for log10f declaration" >&5 -echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_log10f_use+set} != xset; then - if test "${glibcxx_cv_func_log10f_use+set}" = set; then + echo "$as_me:$LINENO: checking for ldexpf declaration" >&5 +echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then + if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -26211,14 +26922,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - log10f(0); + ldexpf(0, 0); ; return 0; } @@ -26245,12 +26952,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_log10f_use=yes + glibcxx_cv_func_ldexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_log10f_use=no +glibcxx_cv_func_ldexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -26263,12 +26970,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6 - if test x$glibcxx_cv_func_log10f_use = x"yes"; then + if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then -for ac_func in log10f +for ac_func in ldexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -26376,10 +27083,10 @@ done else - echo "$as_me:$LINENO: checking for _log10f declaration" >&5 -echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__log10f_use+set} != xset; then - if test "${glibcxx_cv_func__log10f_use+set}" = set; then + echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5 +echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then + if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -26398,14 +27105,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _log10f(0); + _ldexpf(0, 0); ; return 0; } @@ -26432,12 +27135,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__log10f_use=yes + glibcxx_cv_func__ldexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__log10f_use=no +glibcxx_cv_func__ldexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -26450,12 +27153,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6 - if test x$glibcxx_cv_func__log10f_use = x"yes"; then + if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then -for ac_func in _log10f +for ac_func in _ldexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -26569,10 +27272,10 @@ done - echo "$as_me:$LINENO: checking for modff declaration" >&5 -echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modff_use+set} != xset; then - if test "${glibcxx_cv_func_modff_use+set}" = set; then + echo "$as_me:$LINENO: checking for logf declaration" >&5 +echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_logf_use+set} != xset; then + if test "${glibcxx_cv_func_logf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -26591,10 +27294,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - modff(0, 0); + logf(0); ; return 0; } @@ -26621,12 +27328,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modff_use=yes + glibcxx_cv_func_logf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modff_use=no +glibcxx_cv_func_logf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -26639,12 +27346,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6 - if test x$glibcxx_cv_func_modff_use = x"yes"; then + if test x$glibcxx_cv_func_logf_use = x"yes"; then -for ac_func in modff +for ac_func in logf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -26752,10 +27459,10 @@ done else - echo "$as_me:$LINENO: checking for _modff declaration" >&5 -echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modff_use+set} != xset; then - if test "${glibcxx_cv_func__modff_use+set}" = set; then + echo "$as_me:$LINENO: checking for _logf declaration" >&5 +echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__logf_use+set} != xset; then + if test "${glibcxx_cv_func__logf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -26774,10 +27481,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _modff(0, 0); + _logf(0); ; return 0; } @@ -26804,12 +27515,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modff_use=yes + glibcxx_cv_func__logf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modff_use=no +glibcxx_cv_func__logf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -26822,12 +27533,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6 - if test x$glibcxx_cv_func__modff_use = x"yes"; then + if test x$glibcxx_cv_func__logf_use = x"yes"; then -for ac_func in _modff +for ac_func in _logf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -26941,10 +27652,10 @@ done - echo "$as_me:$LINENO: checking for modf declaration" >&5 -echo $ECHO_N "checking for modf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modf_use+set} != xset; then - if test "${glibcxx_cv_func_modf_use+set}" = set; then + echo "$as_me:$LINENO: checking for log10f declaration" >&5 +echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_log10f_use+set} != xset; then + if test "${glibcxx_cv_func_log10f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -26963,10 +27674,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - modf(0, 0); + log10f(0); ; return 0; } @@ -26993,12 +27708,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modf_use=yes + glibcxx_cv_func_log10f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modf_use=no +glibcxx_cv_func_log10f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -27011,12 +27726,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6 - if test x$glibcxx_cv_func_modf_use = x"yes"; then + if test x$glibcxx_cv_func_log10f_use = x"yes"; then -for ac_func in modf +for ac_func in log10f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -27124,10 +27839,10 @@ done else - echo "$as_me:$LINENO: checking for _modf declaration" >&5 -echo $ECHO_N "checking for _modf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modf_use+set} != xset; then - if test "${glibcxx_cv_func__modf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _log10f declaration" >&5 +echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__log10f_use+set} != xset; then + if test "${glibcxx_cv_func__log10f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -27146,10 +27861,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _modf(0, 0); + _log10f(0); ; return 0; } @@ -27176,12 +27895,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modf_use=yes + glibcxx_cv_func__log10f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modf_use=no +glibcxx_cv_func__log10f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -27194,12 +27913,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6 - if test x$glibcxx_cv_func__modf_use = x"yes"; then + if test x$glibcxx_cv_func__log10f_use = x"yes"; then -for ac_func in _modf +for ac_func in _log10f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -27313,10 +28032,10 @@ done - echo "$as_me:$LINENO: checking for powf declaration" >&5 -echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_powf_use+set} != xset; then - if test "${glibcxx_cv_func_powf_use+set}" = set; then + echo "$as_me:$LINENO: checking for modff declaration" >&5 +echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modff_use+set} != xset; then + if test "${glibcxx_cv_func_modff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -27338,7 +28057,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - powf(0, 0); + modff(0, 0); ; return 0; } @@ -27365,12 +28084,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_powf_use=yes + glibcxx_cv_func_modff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_powf_use=no +glibcxx_cv_func_modff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -27383,12 +28102,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6 - if test x$glibcxx_cv_func_powf_use = x"yes"; then + if test x$glibcxx_cv_func_modff_use = x"yes"; then -for ac_func in powf +for ac_func in modff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -27496,10 +28215,10 @@ done else - echo "$as_me:$LINENO: checking for _powf declaration" >&5 -echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__powf_use+set} != xset; then - if test "${glibcxx_cv_func__powf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modff declaration" >&5 +echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modff_use+set} != xset; then + if test "${glibcxx_cv_func__modff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -27521,7 +28240,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _powf(0, 0); + _modff(0, 0); ; return 0; } @@ -27548,12 +28267,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__powf_use=yes + glibcxx_cv_func__modff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__powf_use=no +glibcxx_cv_func__modff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -27566,12 +28285,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6 - if test x$glibcxx_cv_func__powf_use = x"yes"; then + if test x$glibcxx_cv_func__modff_use = x"yes"; then -for ac_func in _powf +for ac_func in _modff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -27685,10 +28404,10 @@ done - echo "$as_me:$LINENO: checking for sqrtf declaration" >&5 -echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for modf declaration" >&5 +echo $ECHO_N "checking for modf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modf_use+set} != xset; then + if test "${glibcxx_cv_func_modf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -27707,14 +28426,193 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif +int +main () +{ + modf(0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_modf_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_modf_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modf_use" >&6 + + if test x$glibcxx_cv_func_modf_use = x"yes"; then + +for ac_func in modf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif int main () { - sqrtf(0); +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + else + + echo "$as_me:$LINENO: checking for _modf declaration" >&5 +echo $ECHO_N "checking for _modf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modf_use+set} != xset; then + if test "${glibcxx_cv_func__modf_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + _modf(0, 0); ; return 0; } @@ -27741,12 +28639,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sqrtf_use=yes + glibcxx_cv_func__modf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sqrtf_use=no +glibcxx_cv_func__modf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -27759,12 +28657,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modf_use" >&6 - if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then + if test x$glibcxx_cv_func__modf_use = x"yes"; then -for ac_func in sqrtf +for ac_func in _modf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -27870,12 +28768,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5 -echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for powf declaration" >&5 +echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_powf_use+set} != xset; then + if test "${glibcxx_cv_func_powf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -27894,14 +28798,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _sqrtf(0); + powf(0, 0); ; return 0; } @@ -27928,12 +28828,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sqrtf_use=yes + glibcxx_cv_func_powf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sqrtf_use=no +glibcxx_cv_func_powf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -27946,12 +28846,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6 - if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then + if test x$glibcxx_cv_func_powf_use = x"yes"; then -for ac_func in _sqrtf +for ac_func in powf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -28057,18 +28957,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for sincosf declaration" >&5 -echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincosf_use+set} != xset; then - if test "${glibcxx_cv_func_sincosf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _powf declaration" >&5 +echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__powf_use+set} != xset; then + if test "${glibcxx_cv_func__powf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -28090,7 +28984,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - sincosf(0, 0, 0); + _powf(0, 0); ; return 0; } @@ -28117,12 +29011,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincosf_use=yes + glibcxx_cv_func__powf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincosf_use=no +glibcxx_cv_func__powf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -28135,12 +29029,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6 - if test x$glibcxx_cv_func_sincosf_use = x"yes"; then + if test x$glibcxx_cv_func__powf_use = x"yes"; then -for ac_func in sincosf +for ac_func in _powf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -28246,12 +29140,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _sincosf declaration" >&5 -echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincosf_use+set} != xset; then - if test "${glibcxx_cv_func__sincosf_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sqrtf declaration" >&5 +echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -28270,10 +29170,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _sincosf(0, 0, 0); + sqrtf(0); ; return 0; } @@ -28300,12 +29204,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincosf_use=yes + glibcxx_cv_func_sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincosf_use=no +glibcxx_cv_func_sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -28318,12 +29222,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6 - if test x$glibcxx_cv_func__sincosf_use = x"yes"; then + if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then -for ac_func in _sincosf +for ac_func in sqrtf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -28429,18 +29333,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for finitef declaration" >&5 -echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finitef_use+set} != xset; then - if test "${glibcxx_cv_func_finitef_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5 +echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -28466,7 +29364,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - finitef(0); + _sqrtf(0); ; return 0; } @@ -28493,12 +29391,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finitef_use=yes + glibcxx_cv_func__sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finitef_use=no +glibcxx_cv_func__sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -28511,12 +29409,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6 - if test x$glibcxx_cv_func_finitef_use = x"yes"; then + if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then -for ac_func in finitef +for ac_func in _sqrtf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -28622,12 +29520,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _finitef declaration" >&5 -echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finitef_use+set} != xset; then - if test "${glibcxx_cv_func__finitef_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sincosf declaration" >&5 +echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincosf_use+set} != xset; then + if test "${glibcxx_cv_func_sincosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -28646,14 +29550,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _finitef(0); + sincosf(0, 0, 0); ; return 0; } @@ -28680,12 +29580,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finitef_use=yes + glibcxx_cv_func_sincosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finitef_use=no +glibcxx_cv_func_sincosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -28698,12 +29598,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6 - if test x$glibcxx_cv_func__finitef_use = x"yes"; then + if test x$glibcxx_cv_func_sincosf_use = x"yes"; then -for ac_func in _finitef +for ac_func in sincosf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -28809,29 +29709,24 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for long double trig functions" >&5 -echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincosf declaration" >&5 +echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincosf_use+set} != xset; then + if test "${glibcxx_cv_func__sincosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -28841,7 +29736,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); + _sincosf(0, 0, 0); ; return 0; } @@ -28868,35 +29763,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_long_double_trig_use=yes + glibcxx_cv_func__sincosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_long_double_trig_use=no +glibcxx_cv_func__sincosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6 - if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6 + if test x$glibcxx_cv_func__sincosf_use = x"yes"; then -for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl +for ac_func in _sincosf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -29002,10 +29892,18 @@ _ACEOF fi done - else - echo "$as_me:$LINENO: checking for _long double trig functions" >&5 -echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then + fi + fi + + + + + + + echo "$as_me:$LINENO: checking for finitef declaration" >&5 +echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finitef_use+set} != xset; then + if test "${glibcxx_cv_func_finitef_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -29024,10 +29922,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); + finitef(0); ; return 0; } @@ -29054,12 +29956,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__long_double_trig_use=yes + glibcxx_cv_func_finitef_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__long_double_trig_use=no +glibcxx_cv_func_finitef_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -29068,21 +29970,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6 - if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6 + if test x$glibcxx_cv_func_finitef_use = x"yes"; then -for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl +for ac_func in finitef do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -29188,25 +30085,204 @@ _ACEOF fi done - fi + else + + echo "$as_me:$LINENO: checking for _finitef declaration" >&5 +echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finitef_use+set} != xset; then + if test "${glibcxx_cv_func__finitef_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + +int +main () +{ + _finitef(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func__finitef_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func__finitef_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6 + + if test x$glibcxx_cv_func__finitef_use = x"yes"; then + +for ac_func in _finitef +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ +#ifdef __STDC__ +# include +#else +# include +#endif +#undef $ac_func +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done + fi + fi - echo "$as_me:$LINENO: checking for long double round functions" >&5 -echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for long double trig functions" >&5 +echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -29228,7 +30304,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -ceill (0); floorl (0); +acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); ; return 0; } @@ -29255,12 +30331,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_long_double_round_use=yes + glibcxx_cv_func_long_double_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_long_double_round_use=no +glibcxx_cv_func_long_double_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -29271,12 +30347,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6 - if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6 + if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then -for ac_func in ceill floorl + + + + + + + +for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -29383,9 +30466,9 @@ fi done else - echo "$as_me:$LINENO: checking for _long double round functions" >&5 -echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for _long double trig functions" >&5 +echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -29407,7 +30490,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -_ceill (0); _floorl (0); +_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); ; return 0; } @@ -29434,12 +30517,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__long_double_round_use=yes + glibcxx_cv_func__long_double_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__long_double_round_use=no +glibcxx_cv_func__long_double_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -29450,12 +30533,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6 - if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6 + if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then -for ac_func in _ceill _floorl + + + + + + + +for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -29571,36 +30661,37 @@ done - echo "$as_me:$LINENO: checking for isnanl declaration" >&5 -echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnanl_use+set} != xset; then - if test "${glibcxx_cv_func_isnanl_use+set}" = set; then + + + + + + + echo "$as_me:$LINENO: checking for long double round functions" >&5 +echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isnanl(0); +ceill (0); floorl (0); ; return 0; } @@ -29627,30 +30718,28 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnanl_use=yes + glibcxx_cv_func_long_double_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnanl_use=no +glibcxx_cv_func_long_double_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6 + if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then - if test x$glibcxx_cv_func_isnanl_use = x"yes"; then -for ac_func in isnanl +for ac_func in ceill floorl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -29757,11 +30846,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _isnanl declaration" >&5 -echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnanl_use+set} != xset; then - if test "${glibcxx_cv_func__isnanl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _long double round functions" >&5 +echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -29780,14 +30867,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isnanl(0); +_ceill (0); _floorl (0); ; return 0; } @@ -29814,12 +30897,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnanl_use=yes + glibcxx_cv_func__long_double_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnanl_use=no +glibcxx_cv_func__long_double_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -29828,16 +30911,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6 + if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then - if test x$glibcxx_cv_func__isnanl_use = x"yes"; then -for ac_func in _isnanl +for ac_func in _ceill _floorl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -29951,10 +31032,12 @@ done - echo "$as_me:$LINENO: checking for isinfl declaration" >&5 -echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinfl_use+set} != xset; then - if test "${glibcxx_cv_func_isinfl_use+set}" = set; then + + + echo "$as_me:$LINENO: checking for isnanl declaration" >&5 +echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnanl_use+set} != xset; then + if test "${glibcxx_cv_func_isnanl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -29980,7 +31063,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - isinfl(0); + isnanl(0); ; return 0; } @@ -30007,12 +31090,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinfl_use=yes + glibcxx_cv_func_isnanl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinfl_use=no +glibcxx_cv_func_isnanl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -30025,12 +31108,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6 - if test x$glibcxx_cv_func_isinfl_use = x"yes"; then + if test x$glibcxx_cv_func_isnanl_use = x"yes"; then -for ac_func in isinfl +for ac_func in isnanl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -30138,10 +31221,10 @@ done else - echo "$as_me:$LINENO: checking for _isinfl declaration" >&5 -echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinfl_use+set} != xset; then - if test "${glibcxx_cv_func__isinfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isnanl declaration" >&5 +echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnanl_use+set} != xset; then + if test "${glibcxx_cv_func__isnanl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -30167,7 +31250,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _isinfl(0); + _isnanl(0); ; return 0; } @@ -30194,12 +31277,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinfl_use=yes + glibcxx_cv_func__isnanl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinfl_use=no +glibcxx_cv_func__isnanl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -30212,12 +31295,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6 - if test x$glibcxx_cv_func__isinfl_use = x"yes"; then + if test x$glibcxx_cv_func__isnanl_use = x"yes"; then -for ac_func in _isinfl +for ac_func in _isnanl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -30331,10 +31414,10 @@ done - echo "$as_me:$LINENO: checking for copysignl declaration" >&5 -echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_copysignl_use+set} != xset; then - if test "${glibcxx_cv_func_copysignl_use+set}" = set; then + echo "$as_me:$LINENO: checking for isinfl declaration" >&5 +echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinfl_use+set} != xset; then + if test "${glibcxx_cv_func_isinfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -30353,10 +31436,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - copysignl(0, 0); + isinfl(0); ; return 0; } @@ -30383,12 +31470,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_copysignl_use=yes + glibcxx_cv_func_isinfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_copysignl_use=no +glibcxx_cv_func_isinfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -30401,12 +31488,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6 - if test x$glibcxx_cv_func_copysignl_use = x"yes"; then + if test x$glibcxx_cv_func_isinfl_use = x"yes"; then -for ac_func in copysignl +for ac_func in isinfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -30514,10 +31601,10 @@ done else - echo "$as_me:$LINENO: checking for _copysignl declaration" >&5 -echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__copysignl_use+set} != xset; then - if test "${glibcxx_cv_func__copysignl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isinfl declaration" >&5 +echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinfl_use+set} != xset; then + if test "${glibcxx_cv_func__isinfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -30536,10 +31623,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _copysignl(0, 0); + _isinfl(0); ; return 0; } @@ -30566,12 +31657,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__copysignl_use=yes + glibcxx_cv_func__isinfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__copysignl_use=no +glibcxx_cv_func__isinfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -30584,12 +31675,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6 - if test x$glibcxx_cv_func__copysignl_use = x"yes"; then + if test x$glibcxx_cv_func__isinfl_use = x"yes"; then -for ac_func in _copysignl +for ac_func in _isinfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -30703,10 +31794,10 @@ done - echo "$as_me:$LINENO: checking for atan2l declaration" >&5 -echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_atan2l_use+set} != xset; then - if test "${glibcxx_cv_func_atan2l_use+set}" = set; then + echo "$as_me:$LINENO: checking for copysignl declaration" >&5 +echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_copysignl_use+set} != xset; then + if test "${glibcxx_cv_func_copysignl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -30728,7 +31819,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - atan2l(0, 0); + copysignl(0, 0); ; return 0; } @@ -30755,12 +31846,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_atan2l_use=yes + glibcxx_cv_func_copysignl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_atan2l_use=no +glibcxx_cv_func_copysignl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -30773,12 +31864,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6 - if test x$glibcxx_cv_func_atan2l_use = x"yes"; then + if test x$glibcxx_cv_func_copysignl_use = x"yes"; then -for ac_func in atan2l +for ac_func in copysignl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -30886,10 +31977,10 @@ done else - echo "$as_me:$LINENO: checking for _atan2l declaration" >&5 -echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__atan2l_use+set} != xset; then - if test "${glibcxx_cv_func__atan2l_use+set}" = set; then + echo "$as_me:$LINENO: checking for _copysignl declaration" >&5 +echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__copysignl_use+set} != xset; then + if test "${glibcxx_cv_func__copysignl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -30911,7 +32002,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _atan2l(0, 0); + _copysignl(0, 0); ; return 0; } @@ -30938,12 +32029,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__atan2l_use=yes + glibcxx_cv_func__copysignl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__atan2l_use=no +glibcxx_cv_func__copysignl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -30956,12 +32047,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6 - if test x$glibcxx_cv_func__atan2l_use = x"yes"; then + if test x$glibcxx_cv_func__copysignl_use = x"yes"; then -for ac_func in _atan2l +for ac_func in _copysignl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -31075,10 +32166,10 @@ done - echo "$as_me:$LINENO: checking for expl declaration" >&5 -echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_expl_use+set} != xset; then - if test "${glibcxx_cv_func_expl_use+set}" = set; then + echo "$as_me:$LINENO: checking for atan2l declaration" >&5 +echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_atan2l_use+set} != xset; then + if test "${glibcxx_cv_func_atan2l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -31097,14 +32188,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - expl(0); + atan2l(0, 0); ; return 0; } @@ -31131,12 +32218,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_expl_use=yes + glibcxx_cv_func_atan2l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_expl_use=no +glibcxx_cv_func_atan2l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -31149,12 +32236,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6 - if test x$glibcxx_cv_func_expl_use = x"yes"; then + if test x$glibcxx_cv_func_atan2l_use = x"yes"; then -for ac_func in expl +for ac_func in atan2l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -31262,10 +32349,10 @@ done else - echo "$as_me:$LINENO: checking for _expl declaration" >&5 -echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__expl_use+set} != xset; then - if test "${glibcxx_cv_func__expl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _atan2l declaration" >&5 +echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__atan2l_use+set} != xset; then + if test "${glibcxx_cv_func__atan2l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -31284,14 +32371,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _expl(0); + _atan2l(0, 0); ; return 0; } @@ -31318,12 +32401,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__expl_use=yes + glibcxx_cv_func__atan2l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__expl_use=no +glibcxx_cv_func__atan2l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -31336,12 +32419,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6 - if test x$glibcxx_cv_func__expl_use = x"yes"; then + if test x$glibcxx_cv_func__atan2l_use = x"yes"; then -for ac_func in _expl +for ac_func in _atan2l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -31455,10 +32538,10 @@ done - echo "$as_me:$LINENO: checking for fabsl declaration" >&5 -echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fabsl_use+set} != xset; then - if test "${glibcxx_cv_func_fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for expl declaration" >&5 +echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_expl_use+set} != xset; then + if test "${glibcxx_cv_func_expl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -31484,7 +32567,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fabsl(0); + expl(0); ; return 0; } @@ -31511,12 +32594,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fabsl_use=yes + glibcxx_cv_func_expl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fabsl_use=no +glibcxx_cv_func_expl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -31529,12 +32612,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6 - if test x$glibcxx_cv_func_fabsl_use = x"yes"; then + if test x$glibcxx_cv_func_expl_use = x"yes"; then -for ac_func in fabsl +for ac_func in expl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -31642,10 +32725,10 @@ done else - echo "$as_me:$LINENO: checking for _fabsl declaration" >&5 -echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fabsl_use+set} != xset; then - if test "${glibcxx_cv_func__fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _expl declaration" >&5 +echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__expl_use+set} != xset; then + if test "${glibcxx_cv_func__expl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -31671,7 +32754,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fabsl(0); + _expl(0); ; return 0; } @@ -31698,12 +32781,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fabsl_use=yes + glibcxx_cv_func__expl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fabsl_use=no +glibcxx_cv_func__expl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -31716,12 +32799,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6 - if test x$glibcxx_cv_func__fabsl_use = x"yes"; then + if test x$glibcxx_cv_func__expl_use = x"yes"; then -for ac_func in _fabsl +for ac_func in _expl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -31835,10 +32918,10 @@ done - echo "$as_me:$LINENO: checking for fmodl declaration" >&5 -echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fmodl_use+set} != xset; then - if test "${glibcxx_cv_func_fmodl_use+set}" = set; then + echo "$as_me:$LINENO: checking for fabsl declaration" >&5 +echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fabsl_use+set} != xset; then + if test "${glibcxx_cv_func_fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -31857,10 +32940,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - fmodl(0, 0); + fabsl(0); ; return 0; } @@ -31887,12 +32974,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fmodl_use=yes + glibcxx_cv_func_fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fmodl_use=no +glibcxx_cv_func_fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -31905,12 +32992,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6 - if test x$glibcxx_cv_func_fmodl_use = x"yes"; then + if test x$glibcxx_cv_func_fabsl_use = x"yes"; then -for ac_func in fmodl +for ac_func in fabsl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -32018,10 +33105,10 @@ done else - echo "$as_me:$LINENO: checking for _fmodl declaration" >&5 -echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fmodl_use+set} != xset; then - if test "${glibcxx_cv_func__fmodl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fabsl declaration" >&5 +echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fabsl_use+set} != xset; then + if test "${glibcxx_cv_func__fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -32040,10 +33127,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _fmodl(0, 0); + _fabsl(0); ; return 0; } @@ -32070,12 +33161,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fmodl_use=yes + glibcxx_cv_func__fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fmodl_use=no +glibcxx_cv_func__fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -32088,12 +33179,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6 - if test x$glibcxx_cv_func__fmodl_use = x"yes"; then + if test x$glibcxx_cv_func__fabsl_use = x"yes"; then -for ac_func in _fmodl +for ac_func in _fabsl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -32207,10 +33298,10 @@ done - echo "$as_me:$LINENO: checking for frexpl declaration" >&5 -echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_frexpl_use+set} != xset; then - if test "${glibcxx_cv_func_frexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for fmodl declaration" >&5 +echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fmodl_use+set} != xset; then + if test "${glibcxx_cv_func_fmodl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -32232,7 +33323,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - frexpl(0, 0); + fmodl(0, 0); ; return 0; } @@ -32259,12 +33350,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_frexpl_use=yes + glibcxx_cv_func_fmodl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_frexpl_use=no +glibcxx_cv_func_fmodl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -32277,12 +33368,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6 - if test x$glibcxx_cv_func_frexpl_use = x"yes"; then + if test x$glibcxx_cv_func_fmodl_use = x"yes"; then -for ac_func in frexpl +for ac_func in fmodl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -32390,10 +33481,10 @@ done else - echo "$as_me:$LINENO: checking for _frexpl declaration" >&5 -echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__frexpl_use+set} != xset; then - if test "${glibcxx_cv_func__frexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fmodl declaration" >&5 +echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fmodl_use+set} != xset; then + if test "${glibcxx_cv_func__fmodl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -32415,7 +33506,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _frexpl(0, 0); + _fmodl(0, 0); ; return 0; } @@ -32442,12 +33533,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__frexpl_use=yes + glibcxx_cv_func__fmodl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__frexpl_use=no +glibcxx_cv_func__fmodl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -32460,12 +33551,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6 - if test x$glibcxx_cv_func__frexpl_use = x"yes"; then + if test x$glibcxx_cv_func__fmodl_use = x"yes"; then -for ac_func in _frexpl +for ac_func in _fmodl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -32579,10 +33670,10 @@ done - echo "$as_me:$LINENO: checking for hypotl declaration" >&5 -echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypotl_use+set} != xset; then - if test "${glibcxx_cv_func_hypotl_use+set}" = set; then + echo "$as_me:$LINENO: checking for frexpl declaration" >&5 +echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_frexpl_use+set} != xset; then + if test "${glibcxx_cv_func_frexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -32604,7 +33695,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - hypotl(0, 0); + frexpl(0, 0); ; return 0; } @@ -32631,12 +33722,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypotl_use=yes + glibcxx_cv_func_frexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypotl_use=no +glibcxx_cv_func_frexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -32649,12 +33740,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6 - if test x$glibcxx_cv_func_hypotl_use = x"yes"; then + if test x$glibcxx_cv_func_frexpl_use = x"yes"; then -for ac_func in hypotl +for ac_func in frexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -32762,10 +33853,10 @@ done else - echo "$as_me:$LINENO: checking for _hypotl declaration" >&5 -echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypotl_use+set} != xset; then - if test "${glibcxx_cv_func__hypotl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _frexpl declaration" >&5 +echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__frexpl_use+set} != xset; then + if test "${glibcxx_cv_func__frexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -32787,7 +33878,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _hypotl(0, 0); + _frexpl(0, 0); ; return 0; } @@ -32814,12 +33905,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypotl_use=yes + glibcxx_cv_func__frexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypotl_use=no +glibcxx_cv_func__frexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -32832,12 +33923,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6 - if test x$glibcxx_cv_func__hypotl_use = x"yes"; then + if test x$glibcxx_cv_func__frexpl_use = x"yes"; then -for ac_func in _hypotl +for ac_func in _frexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -32951,10 +34042,10 @@ done - echo "$as_me:$LINENO: checking for ldexpl declaration" >&5 -echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then - if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypotl declaration" >&5 +echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypotl_use+set} != xset; then + if test "${glibcxx_cv_func_hypotl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -32976,7 +34067,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - ldexpl(0, 0); + hypotl(0, 0); ; return 0; } @@ -33003,12 +34094,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_ldexpl_use=yes + glibcxx_cv_func_hypotl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_ldexpl_use=no +glibcxx_cv_func_hypotl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -33021,12 +34112,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6 - if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then + if test x$glibcxx_cv_func_hypotl_use = x"yes"; then -for ac_func in ldexpl +for ac_func in hypotl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -33134,10 +34225,10 @@ done else - echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5 -echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then - if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypotl declaration" >&5 +echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypotl_use+set} != xset; then + if test "${glibcxx_cv_func__hypotl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -33159,7 +34250,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _ldexpl(0, 0); + _hypotl(0, 0); ; return 0; } @@ -33186,12 +34277,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__ldexpl_use=yes + glibcxx_cv_func__hypotl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__ldexpl_use=no +glibcxx_cv_func__hypotl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -33204,12 +34295,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6 - if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then + if test x$glibcxx_cv_func__hypotl_use = x"yes"; then -for ac_func in _ldexpl +for ac_func in _hypotl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -33323,10 +34414,10 @@ done - echo "$as_me:$LINENO: checking for logl declaration" >&5 -echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_logl_use+set} != xset; then - if test "${glibcxx_cv_func_logl_use+set}" = set; then + echo "$as_me:$LINENO: checking for ldexpl declaration" >&5 +echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then + if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -33345,14 +34436,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - logl(0); + ldexpl(0, 0); ; return 0; } @@ -33379,12 +34466,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_logl_use=yes + glibcxx_cv_func_ldexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_logl_use=no +glibcxx_cv_func_ldexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -33397,12 +34484,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6 - if test x$glibcxx_cv_func_logl_use = x"yes"; then + if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then -for ac_func in logl +for ac_func in ldexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -33510,10 +34597,10 @@ done else - echo "$as_me:$LINENO: checking for _logl declaration" >&5 -echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__logl_use+set} != xset; then - if test "${glibcxx_cv_func__logl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5 +echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then + if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -33532,14 +34619,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _logl(0); + _ldexpl(0, 0); ; return 0; } @@ -33566,12 +34649,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__logl_use=yes + glibcxx_cv_func__ldexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__logl_use=no +glibcxx_cv_func__ldexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -33584,12 +34667,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6 - if test x$glibcxx_cv_func__logl_use = x"yes"; then + if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then -for ac_func in _logl +for ac_func in _ldexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -33703,10 +34786,10 @@ done - echo "$as_me:$LINENO: checking for log10l declaration" >&5 -echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_log10l_use+set} != xset; then - if test "${glibcxx_cv_func_log10l_use+set}" = set; then + echo "$as_me:$LINENO: checking for logl declaration" >&5 +echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_logl_use+set} != xset; then + if test "${glibcxx_cv_func_logl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -33732,7 +34815,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - log10l(0); + logl(0); ; return 0; } @@ -33759,12 +34842,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_log10l_use=yes + glibcxx_cv_func_logl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_log10l_use=no +glibcxx_cv_func_logl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -33777,12 +34860,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6 - if test x$glibcxx_cv_func_log10l_use = x"yes"; then + if test x$glibcxx_cv_func_logl_use = x"yes"; then -for ac_func in log10l +for ac_func in logl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -33890,10 +34973,10 @@ done else - echo "$as_me:$LINENO: checking for _log10l declaration" >&5 -echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__log10l_use+set} != xset; then - if test "${glibcxx_cv_func__log10l_use+set}" = set; then + echo "$as_me:$LINENO: checking for _logl declaration" >&5 +echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__logl_use+set} != xset; then + if test "${glibcxx_cv_func__logl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -33919,7 +35002,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _log10l(0); + _logl(0); ; return 0; } @@ -33946,12 +35029,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__log10l_use=yes + glibcxx_cv_func__logl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__log10l_use=no +glibcxx_cv_func__logl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -33964,12 +35047,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6 - if test x$glibcxx_cv_func__log10l_use = x"yes"; then + if test x$glibcxx_cv_func__logl_use = x"yes"; then -for ac_func in _log10l +for ac_func in _logl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -34083,10 +35166,10 @@ done - echo "$as_me:$LINENO: checking for modfl declaration" >&5 -echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modfl_use+set} != xset; then - if test "${glibcxx_cv_func_modfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for log10l declaration" >&5 +echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_log10l_use+set} != xset; then + if test "${glibcxx_cv_func_log10l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -34105,10 +35188,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - modfl(0, 0); + log10l(0); ; return 0; } @@ -34135,12 +35222,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modfl_use=yes + glibcxx_cv_func_log10l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modfl_use=no +glibcxx_cv_func_log10l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -34153,12 +35240,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6 - if test x$glibcxx_cv_func_modfl_use = x"yes"; then + if test x$glibcxx_cv_func_log10l_use = x"yes"; then -for ac_func in modfl +for ac_func in log10l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -34266,10 +35353,10 @@ done else - echo "$as_me:$LINENO: checking for _modfl declaration" >&5 -echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modfl_use+set} != xset; then - if test "${glibcxx_cv_func__modfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _log10l declaration" >&5 +echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__log10l_use+set} != xset; then + if test "${glibcxx_cv_func__log10l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -34288,199 +35375,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include -int -main () -{ - _modfl(0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - glibcxx_cv_func__modfl_use=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -glibcxx_cv_func__modfl_use=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6 - - if test x$glibcxx_cv_func__modfl_use = x"yes"; then - -for ac_func in _modfl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - fi - fi - - - - - - - echo "$as_me:$LINENO: checking for powl declaration" >&5 -echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_powl_use+set} != xset; then - if test "${glibcxx_cv_func_powl_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - ac_ext=cc -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 + #ifdef HAVE_IEEEFP_H + #include + #endif - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include int main () { - powl(0, 0); + _log10l(0); ; return 0; } @@ -34507,12 +35409,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_powl_use=yes + glibcxx_cv_func__log10l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_powl_use=no +glibcxx_cv_func__log10l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -34525,195 +35427,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6 - if test x$glibcxx_cv_func_powl_use = x"yes"; then + if test x$glibcxx_cv_func__log10l_use = x"yes"; then -for ac_func in powl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - else - - echo "$as_me:$LINENO: checking for _powl declaration" >&5 -echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__powl_use+set} != xset; then - if test "${glibcxx_cv_func__powl_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ - _powl(0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - glibcxx_cv_func__powl_use=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -glibcxx_cv_func__powl_use=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6 - - if test x$glibcxx_cv_func__powl_use = x"yes"; then - -for ac_func in _powl +for ac_func in _log10l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -34827,10 +35546,10 @@ done - echo "$as_me:$LINENO: checking for sqrtl declaration" >&5 -echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for modfl declaration" >&5 +echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modfl_use+set} != xset; then + if test "${glibcxx_cv_func_modfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -34849,14 +35568,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - sqrtl(0); + modfl(0, 0); ; return 0; } @@ -34883,12 +35598,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sqrtl_use=yes + glibcxx_cv_func_modfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sqrtl_use=no +glibcxx_cv_func_modfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -34901,12 +35616,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6 - if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then + if test x$glibcxx_cv_func_modfl_use = x"yes"; then -for ac_func in sqrtl +for ac_func in modfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -35014,10 +35729,10 @@ done else - echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5 -echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modfl declaration" >&5 +echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modfl_use+set} != xset; then + if test "${glibcxx_cv_func__modfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -35036,14 +35751,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _sqrtl(0); + _modfl(0, 0); ; return 0; } @@ -35070,12 +35781,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sqrtl_use=yes + glibcxx_cv_func__modfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sqrtl_use=no +glibcxx_cv_func__modfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -35088,12 +35799,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6 - if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then + if test x$glibcxx_cv_func__modfl_use = x"yes"; then -for ac_func in _sqrtl +for ac_func in _modfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -35207,10 +35918,10 @@ done - echo "$as_me:$LINENO: checking for sincosl declaration" >&5 -echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincosl_use+set} != xset; then - if test "${glibcxx_cv_func_sincosl_use+set}" = set; then + echo "$as_me:$LINENO: checking for powl declaration" >&5 +echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_powl_use+set} != xset; then + if test "${glibcxx_cv_func_powl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -35232,7 +35943,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - sincosl(0, 0, 0); + powl(0, 0); ; return 0; } @@ -35259,12 +35970,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincosl_use=yes + glibcxx_cv_func_powl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincosl_use=no +glibcxx_cv_func_powl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -35277,12 +35988,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6 - if test x$glibcxx_cv_func_sincosl_use = x"yes"; then + if test x$glibcxx_cv_func_powl_use = x"yes"; then -for ac_func in sincosl +for ac_func in powl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -35390,10 +36101,10 @@ done else - echo "$as_me:$LINENO: checking for _sincosl declaration" >&5 -echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincosl_use+set} != xset; then - if test "${glibcxx_cv_func__sincosl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _powl declaration" >&5 +echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__powl_use+set} != xset; then + if test "${glibcxx_cv_func__powl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -35415,7 +36126,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _sincosl(0, 0, 0); + _powl(0, 0); ; return 0; } @@ -35442,12 +36153,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincosl_use=yes + glibcxx_cv_func__powl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincosl_use=no +glibcxx_cv_func__powl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -35460,12 +36171,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6 - if test x$glibcxx_cv_func__sincosl_use = x"yes"; then + if test x$glibcxx_cv_func__powl_use = x"yes"; then -for ac_func in _sincosl +for ac_func in _powl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -35579,10 +36290,10 @@ done - echo "$as_me:$LINENO: checking for finitel declaration" >&5 -echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finitel_use+set} != xset; then - if test "${glibcxx_cv_func_finitel_use+set}" = set; then + echo "$as_me:$LINENO: checking for sqrtl declaration" >&5 +echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -35608,7 +36319,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - finitel(0); + sqrtl(0); ; return 0; } @@ -35635,12 +36346,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finitel_use=yes + glibcxx_cv_func_sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finitel_use=no +glibcxx_cv_func_sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -35653,12 +36364,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6 - if test x$glibcxx_cv_func_finitel_use = x"yes"; then + if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then -for ac_func in finitel +for ac_func in sqrtl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -35766,10 +36477,10 @@ done else - echo "$as_me:$LINENO: checking for _finitel declaration" >&5 -echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finitel_use+set} != xset; then - if test "${glibcxx_cv_func__finitel_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5 +echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -35795,7 +36506,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _finitel(0); + _sqrtl(0); ; return 0; } @@ -35822,12 +36533,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finitel_use=yes + glibcxx_cv_func__sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finitel_use=no +glibcxx_cv_func__sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -35840,12 +36551,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6 - if test x$glibcxx_cv_func__finitel_use = x"yes"; then + if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then -for ac_func in _finitel +for ac_func in _sqrtl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -35958,15 +36669,194 @@ done - LIBS="$ac_save_LIBS" - CXXFLAGS="$ac_save_CXXFLAGS" + echo "$as_me:$LINENO: checking for sincosl declaration" >&5 +echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincosl_use+set} != xset; then + if test "${glibcxx_cv_func_sincosl_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else - echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5 -echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + sincosl(0, 0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_sincosl_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_sincosl_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6 + + if test x$glibcxx_cv_func_sincosl_use = x"yes"; then + +for ac_func in sincosl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + else + + echo "$as_me:$LINENO: checking for _sincosl declaration" >&5 +echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincosl_use+set} != xset; then + if test "${glibcxx_cv_func__sincosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -35988,7 +36878,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_abs(0); + _sincosl(0, 0, 0); ; return 0; } @@ -36015,12 +36905,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_abs_use=yes + glibcxx_cv_func__sincosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_abs_use=no +glibcxx_cv_func__sincosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36033,17 +36923,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6 - if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5 -echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6 + + if test x$glibcxx_cv_func__sincosl_use = x"yes"; then + +for ac_func in _sincosl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -36054,11 +36947,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_abs(0); +return f != $ac_func; ; return 0; } @@ -36085,37 +37014,38 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_abs_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_abs_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF fi +done fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6 + fi - if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_ABS 1 -_ACEOF - fi - fi - echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5 -echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for finitel declaration" >&5 +echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finitel_use+set} != xset; then + if test "${glibcxx_cv_func_finitel_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36134,10 +37064,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - __builtin_fabsf(0); + finitel(0); ; return 0; } @@ -36164,12 +37098,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsf_use=yes + glibcxx_cv_func_finitel_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsf_use=no +glibcxx_cv_func_finitel_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36182,17 +37116,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6 - if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5 -echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6 + + if test x$glibcxx_cv_func_finitel_use = x"yes"; then + +for ac_func in finitel +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -36203,11 +37140,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_fabsf(0); +return f != $ac_func; ; return 0; } @@ -36234,37 +37207,32 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsf_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsf_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6 - - if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSF 1 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi - - fi +fi +done + else - echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5 -echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then + echo "$as_me:$LINENO: checking for _finitel declaration" >&5 +echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finitel_use+set} != xset; then + if test "${glibcxx_cv_func__finitel_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36283,10 +37251,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - __builtin_fabs(0); + _finitel(0); ; return 0; } @@ -36313,12 +37285,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabs_use=yes + glibcxx_cv_func__finitel_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabs_use=no +glibcxx_cv_func__finitel_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36331,17 +37303,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6 - if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5 -echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6 + + if test x$glibcxx_cv_func__finitel_use = x"yes"; then + +for ac_func in _finitel +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -36352,11 +37327,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_fabs(0); +return f != $ac_func; ; return 0; } @@ -36383,37 +37394,42 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabs_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabs_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF fi +done fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6 + fi - if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABS 1 -_ACEOF - fi - fi + LIBS="$ac_save_LIBS" + CXXFLAGS="$ac_save_CXXFLAGS" - echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5 -echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then + + + echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5 +echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36435,7 +37451,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsl(0); + __builtin_abs(0); ; return 0; } @@ -36462,12 +37478,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsl_use=yes + glibcxx_cv_func___builtin_abs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsl_use=no +glibcxx_cv_func___builtin_abs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36480,13 +37496,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6 - if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5 -echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6 + if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5 +echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36505,7 +37521,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsl(0); + __builtin_abs(0); ; return 0; } @@ -36532,12 +37548,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsl_link=yes + glibcxx_cv_func___builtin_abs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsl_link=no +glibcxx_cv_func___builtin_abs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -36545,13 +37561,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6 - if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSL 1 +#define HAVE___BUILTIN_ABS 1 _ACEOF fi @@ -36559,10 +37575,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5 -echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5 +echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36584,7 +37600,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_labs(0); + __builtin_fabsf(0); ; return 0; } @@ -36611,12 +37627,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_labs_use=yes + glibcxx_cv_func___builtin_fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_labs_use=no +glibcxx_cv_func___builtin_fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36629,13 +37645,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6 - if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5 -echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6 + if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5 +echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36654,7 +37670,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_labs(0); + __builtin_fabsf(0); ; return 0; } @@ -36681,12 +37697,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_labs_link=yes + glibcxx_cv_func___builtin_fabsf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_labs_link=no +glibcxx_cv_func___builtin_fabsf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -36694,13 +37710,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6 - if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_LABS 1 +#define HAVE___BUILTIN_FABSF 1 _ACEOF fi @@ -36708,11 +37724,10 @@ _ACEOF fi - - echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5 +echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36734,7 +37749,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtf(0); + __builtin_fabs(0); ; return 0; } @@ -36761,12 +37776,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtf_use=yes + glibcxx_cv_func___builtin_fabs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtf_use=no +glibcxx_cv_func___builtin_fabs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36779,13 +37794,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6 + if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5 +echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36804,7 +37819,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtf(0); + __builtin_fabs(0); ; return 0; } @@ -36831,12 +37846,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtf_link=yes + glibcxx_cv_func___builtin_fabs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtf_link=no +glibcxx_cv_func___builtin_fabs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -36844,13 +37859,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTF 1 +#define HAVE___BUILTIN_FABS 1 _ACEOF fi @@ -36858,10 +37873,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5 +echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36883,7 +37898,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrt(0); + __builtin_fabsl(0); ; return 0; } @@ -36910,12 +37925,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrt_use=yes + glibcxx_cv_func___builtin_fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrt_use=no +glibcxx_cv_func___builtin_fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -36928,13 +37943,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6 + if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5 +echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -36953,7 +37968,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrt(0); + __builtin_fabsl(0); ; return 0; } @@ -36980,12 +37995,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrt_link=yes + glibcxx_cv_func___builtin_fabsl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrt_link=no +glibcxx_cv_func___builtin_fabsl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -36993,13 +38008,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRT 1 +#define HAVE___BUILTIN_FABSL 1 _ACEOF fi @@ -37007,10 +38022,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5 +echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37032,7 +38047,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtl(0); + __builtin_labs(0); ; return 0; } @@ -37059,12 +38074,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtl_use=yes + glibcxx_cv_func___builtin_labs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtl_use=no +glibcxx_cv_func___builtin_labs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -37077,13 +38092,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6 + if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5 +echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37102,7 +38117,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtl(0); + __builtin_labs(0); ; return 0; } @@ -37129,12 +38144,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtl_link=yes + glibcxx_cv_func___builtin_labs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtl_link=no +glibcxx_cv_func___builtin_labs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -37142,13 +38157,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTL 1 +#define HAVE___BUILTIN_LABS 1 _ACEOF fi @@ -37157,10 +38172,10 @@ _ACEOF - echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5 -echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37182,7 +38197,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinf(0); + __builtin_sqrtf(0); ; return 0; } @@ -37209,12 +38224,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinf_use=yes + glibcxx_cv_func___builtin_sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinf_use=no +glibcxx_cv_func___builtin_sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -37227,13 +38242,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6 - if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5 -echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37252,7 +38267,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinf(0); + __builtin_sqrtf(0); ; return 0; } @@ -37279,12 +38294,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinf_link=yes + glibcxx_cv_func___builtin_sqrtf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinf_link=no +glibcxx_cv_func___builtin_sqrtf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -37292,13 +38307,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6 - if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINF 1 +#define HAVE___BUILTIN_SQRTF 1 _ACEOF fi @@ -37306,10 +38321,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5 -echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37331,7 +38346,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sin(0); + __builtin_sqrt(0); ; return 0; } @@ -37358,12 +38373,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sin_use=yes + glibcxx_cv_func___builtin_sqrt_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sin_use=no +glibcxx_cv_func___builtin_sqrt_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -37376,13 +38391,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6 - if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5 -echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37401,7 +38416,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sin(0); + __builtin_sqrt(0); ; return 0; } @@ -37428,12 +38443,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sin_link=yes + glibcxx_cv_func___builtin_sqrt_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sin_link=no +glibcxx_cv_func___builtin_sqrt_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -37441,13 +38456,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6 - if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SIN 1 +#define HAVE___BUILTIN_SQRT 1 _ACEOF fi @@ -37455,10 +38470,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5 -echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37480,7 +38495,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinl(0); + __builtin_sqrtl(0); ; return 0; } @@ -37507,12 +38522,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinl_use=yes + glibcxx_cv_func___builtin_sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinl_use=no +glibcxx_cv_func___builtin_sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -37525,13 +38540,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6 - if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5 -echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37550,7 +38565,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinl(0); + __builtin_sqrtl(0); ; return 0; } @@ -37577,12 +38592,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinl_link=yes + glibcxx_cv_func___builtin_sqrtl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinl_link=no +glibcxx_cv_func___builtin_sqrtl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -37590,13 +38605,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6 - if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINL 1 +#define HAVE___BUILTIN_SQRTL 1 _ACEOF fi @@ -37605,10 +38620,10 @@ _ACEOF - echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5 -echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5 +echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37630,7 +38645,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_cosf(0); + __builtin_sinf(0); ; return 0; } @@ -37657,12 +38672,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosf_use=yes + glibcxx_cv_func___builtin_sinf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosf_use=no +glibcxx_cv_func___builtin_sinf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -37675,13 +38690,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6 - if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5 -echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6 + if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5 +echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37700,7 +38715,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_cosf(0); + __builtin_sinf(0); ; return 0; } @@ -37727,12 +38742,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosf_link=yes + glibcxx_cv_func___builtin_sinf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosf_link=no +glibcxx_cv_func___builtin_sinf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -37740,13 +38755,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6 - if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSF 1 +#define HAVE___BUILTIN_SINF 1 _ACEOF fi @@ -37754,10 +38769,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5 -echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5 +echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37779,7 +38794,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_cos(0); + __builtin_sin(0); ; return 0; } @@ -37806,12 +38821,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cos_use=yes + glibcxx_cv_func___builtin_sin_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cos_use=no +glibcxx_cv_func___builtin_sin_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -37824,13 +38839,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6 - if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5 -echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6 + if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5 +echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -37849,7 +38864,455 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_cos(0); + __builtin_sin(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func___builtin_sin_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func___builtin_sin_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6 + + if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SIN 1 +_ACEOF + + fi + + fi + + + echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5 +echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + __builtin_sinl(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func___builtin_sinl_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func___builtin_sinl_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6 + if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5 +echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + __builtin_sinl(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func___builtin_sinl_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func___builtin_sinl_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6 + + if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SINL 1 +_ACEOF + + fi + + fi + + + + echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5 +echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + __builtin_cosf(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func___builtin_cosf_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func___builtin_cosf_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6 + if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5 +echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + __builtin_cosf(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func___builtin_cosf_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func___builtin_cosf_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6 + + if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_COSF 1 +_ACEOF + + fi + + fi + + + echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5 +echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + __builtin_cos(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func___builtin_cos_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func___builtin_cos_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6 + if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5 +echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + __builtin_cos(0); ; return 0; } @@ -39547,74 +41010,170 @@ _ACEOF echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 - # For the __streamoff_base_type typedef. + # For LFS support. - echo "$as_me:$LINENO: checking for int64_t" >&5 -echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 - if test "${glibcxx_cv_INT64_T+set}" = set; then + + + ac_ext=cc +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_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -fno-exceptions" + echo "$as_me:$LINENO: checking for LFS support" >&5 +echo $ECHO_N "checking for LFS support... $ECHO_C" >&6 + if test "${glibcxx_cv_LFS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include + #include + #include + int main () { -int64_t var; +FILE* fp; + fopen64("t", "w"); + fseeko64(fp, 0, SEEK_CUR); + ftello64(fp); + lseek64(1, 0, SEEK_CUR); + struct stat64 buf; + fstat64(1, &buf); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_INT64_T=yes + glibcxx_cv_LFS=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_INT64_T=no +glibcxx_cv_LFS=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi - if test $glibcxx_cv_INT64_T = yes; then + if test $glibcxx_cv_LFS = yes; then cat >>confdefs.h <<\_ACEOF -#define HAVE_INT64_T 1 +#define _GLIBCXX_USE_LFS 1 _ACEOF fi - echo "$as_me:$LINENO: result: $glibcxx_cv_INT64_T" >&5 -echo "${ECHO_T}$glibcxx_cv_INT64_T" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5 +echo "${ECHO_T}$glibcxx_cv_LFS" >&6 + CXXFLAGS="$ac_save_CXXFLAGS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - # For LFS support. + + # For dev/random and dev/urandom for TR1. + + + echo "$as_me:$LINENO: checking for \"dev/random\" and \"dev/urandom\" for TR1 random_device" >&5 +echo $ECHO_N "checking for \"dev/random\" and \"dev/urandom\" for TR1 random_device... $ECHO_C" >&6 + if test "${glibcxx_cv_random_tr1+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test "$cross_compiling" = yes; then + glibcxx_cv_random_tr1=no +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + int main() + { + return !(fopen("/dev/random", "r") + && fopen("/dev/urandom", "r")); + } + +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_random_tr1=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +glibcxx_cv_random_tr1=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + +fi + + echo "$as_me:$LINENO: result: $glibcxx_cv_random_tr1" >&5 +echo "${ECHO_T}$glibcxx_cv_random_tr1" >&6 + if test x"$glibcxx_cv_random_tr1" = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_RANDOM_TR1 1 +_ACEOF + + fi + + + + # For clock_gettime support. + @@ -39626,13 +41185,16 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -fno-exceptions" - echo "$as_me:$LINENO: checking for LFS support" >&5 -echo $ECHO_N "checking for LFS support... $ECHO_C" >&6 - if test "${glibcxx_cv_LFS+set}" = set; then + ac_save_LIBS="$LIBS" + + echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 +echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6 +if test "${ac_cv_search_clock_gettime+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + ac_func_search_save_LIBS=$LIBS +ac_cv_search_clock_gettime=no +if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -39643,20 +41205,18 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #include - #include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char clock_gettime (); int main () { -FILE* fp; - fopen64("t", "w"); - fseeko64(fp, 0, SEEK_CUR); - ftello64(fp); - lseek64(1, 0, SEEK_CUR); - struct stat64 buf; - fstat64(1, &buf); +clock_gettime (); ; return 0; } @@ -39683,57 +41243,94 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_LFS=yes + ac_cv_search_clock_gettime="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_LFS=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - +if test "$ac_cv_search_clock_gettime" = no; then + for ac_lib in posix4; do + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } fi - - if test $glibcxx_cv_LFS = yes; then - -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_LFS 1 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5 -echo "${ECHO_T}$glibcxx_cv_LFS" >&6 - CXXFLAGS="$ac_save_CXXFLAGS" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - # For C99 support to TR1. - - +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char clock_gettime (); +int +main () +{ +clock_gettime (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_clock_gettime="-l$ac_lib" +break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done +fi +LIBS=$ac_func_search_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 +echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6 +if test "$ac_cv_search_clock_gettime" != no; then + test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS" - ac_ext=cc -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 - # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__ - # undefined and fake C99 facilities may be spuriously enabled. - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -std=c++98" + # Link to -lposix4. + case "$ac_cv_search_clock_gettime" in + -lposix4*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime + esac - # Check for the existence of complex math functions used - # by tr1/complex. -for ac_header in complex.h +for ac_header in unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -39877,56 +41474,48 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - ac_has_complex_h=yes + ac_has_unistd_h=yes else - ac_has_complex_h=no + ac_has_unistd_h=no fi done - ac_c99_complex_tr1=no; - if test x"$ac_has_complex_h" = x"yes"; then - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF + + ac_has_clock_monotonic=no; + ac_has_clock_realtime=no; + if test x"$ac_has_unistd_h" = x"yes"; then + echo "$as_me:$LINENO: checking for monotonic clock" >&5 +echo $ECHO_N "checking for monotonic clock... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include + #include + int main () { -typedef __complex__ float float_type; float_type tmpf; - cacosf(tmpf); - casinf(tmpf); - catanf(tmpf); - cacoshf(tmpf); - casinhf(tmpf); - catanhf(tmpf); - typedef __complex__ double double_type; double_type tmpd; - cacos(tmpd); - casin(tmpd); - catan(tmpd); - cacosh(tmpd); - casinh(tmpd); - catanh(tmpd); - typedef __complex__ long double ld_type; ld_type tmpld; - cacosl(tmpld); - casinl(tmpld); - catanl(tmpld); - cacoshl(tmpld); - casinhl(tmpld); - catanhl(tmpld); +#if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK) + timespec tp; + #endif + clock_gettime(CLOCK_MONOTONIC, &tp); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -39940,59 +41529,56 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_complex_tr1=yes + ac_has_clock_monotonic=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_complex_tr1=no +ac_has_clock_monotonic=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_c99_complex_tr1" >&5 -echo "${ECHO_T}$ac_c99_complex_tr1" >&6 - if test x"$ac_c99_complex_tr1" = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_COMPLEX_TR1 1 -_ACEOF - - fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext - # Check for the existence of functions. - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - if test "${ac_c99_ctype_tr1+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + echo "$as_me:$LINENO: result: $ac_has_clock_monotonic" >&5 +echo "${ECHO_T}$ac_has_clock_monotonic" >&6 - cat >conftest.$ac_ext <<_ACEOF + echo "$as_me:$LINENO: checking for realtime clock" >&5 +echo $ECHO_N "checking for realtime clock... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include + #include + int main () { -int ch; - int ret; - ret = isblank(ch); +#if _POSIX_TIMERS > 0 + timespec tp; + #endif + clock_gettime(CLOCK_REALTIME, &tp); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -40006,36 +41592,71 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_ctype_tr1=yes + ac_has_clock_realtime=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_ctype_tr1=no +ac_has_clock_realtime=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext -fi + echo "$as_me:$LINENO: result: $ac_has_clock_realtime" >&5 +echo "${ECHO_T}$ac_has_clock_realtime" >&6 + fi - echo "$as_me:$LINENO: result: $ac_c99_ctype_tr1" >&5 -echo "${ECHO_T}$ac_c99_ctype_tr1" >&6 - if test x"$ac_c99_ctype_tr1" = x"yes"; then + if test x"$ac_has_clock_monotonic" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_CTYPE_TR1 1 +#define _GLIBCXX_USE_CLOCK_MONOTONIC 1 _ACEOF fi - # Check for the existence of functions. + if test x"$ac_has_clock_realtime" = x"yes"; then -for ac_header in fenv.h +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_CLOCK_REALTIME 1 +_ACEOF + + fi + + + + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + # For gettimeofday support. + + + + + ac_ext=cc +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_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -fno-exceptions" + + ac_has_gettimeofday=no; + +for ac_header in sys/time.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -40179,50 +41800,39 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - ac_has_fenv_h=yes + ac_has_sys_time_h=yes else - ac_has_fenv_h=no + ac_has_sys_time_h=no fi done - ac_c99_fenv_tr1=no; - if test x"$ac_has_fenv_h" = x"yes"; then - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF + if test x"$ac_has_sys_time_h" = x"yes"; then + echo "$as_me:$LINENO: checking for gettimeofday" >&5 +echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include int main () { -int except, mode; - fexcept_t* pflag; - fenv_t* penv; - int ret; - ret = feclearexcept(except); - ret = fegetexceptflag(pflag, except); - ret = feraiseexcept(except); - ret = fesetexceptflag(pflag, except); - ret = fetestexcept(except); - ret = fegetround(); - ret = fesetround(mode); - ret = fegetenv(penv); - ret = feholdexcept(penv); - ret = fesetenv(penv); - ret = feupdateenv(penv); - +timeval tv; gettimeofday(&tv, 0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -40236,327 +41846,389 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_fenv_tr1=yes + ac_has_gettimeofday=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_fenv_tr1=no +ac_has_gettimeofday=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + echo "$as_me:$LINENO: result: $ac_has_gettimeofday" >&5 +echo "${ECHO_T}$ac_has_gettimeofday" >&6 fi - echo "$as_me:$LINENO: result: $ac_c99_fenv_tr1" >&5 -echo "${ECHO_T}$ac_c99_fenv_tr1" >&6 - if test x"$ac_c99_fenv_tr1" = x"yes"; then + + if test x"$ac_has_gettimeofday" = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_FENV_TR1 1 +#define _GLIBCXX_USE_GETTIMEOFDAY 1 _ACEOF fi - # Check for the existence of types. - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - if test "${ac_c99_stdint_tr1+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + CXXFLAGS="$ac_save_CXXFLAGS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + # For TLS support. + + # Check whether --enable-tls or --disable-tls was given. +if test "${enable_tls+set}" = set; then + enableval="$enable_tls" + + case "$enableval" in + yes|no) ;; + *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 +echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} + { (exit 1); exit 1; }; } ;; + esac + else + enable_tls=yes +fi; - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -typedef int8_t my_int8_t; - typedef int16_t my_int16_t; - typedef int32_t my_int32_t; - typedef int64_t my_int64_t; - typedef int_fast8_t my_int_fast8_t; - typedef int_fast16_t my_int_fast16_t; - typedef int_fast32_t my_int_fast32_t; - typedef int_fast64_t my_int_fast64_t; - typedef int_least8_t my_int_least8_t; - typedef int_least16_t my_int_least16_t; - typedef int_least32_t my_int_least32_t; - typedef int_least64_t my_int_least64_t; - typedef intmax_t my_intmax_t; - typedef intptr_t my_intptr_t; - typedef uint8_t my_uint8_t; - typedef uint16_t my_uint16_t; - typedef uint32_t my_uint32_t; - typedef uint64_t my_uint64_t; - typedef uint_fast8_t my_uint_fast8_t; - typedef uint_fast16_t my_uint_fast16_t; - typedef uint_fast32_t my_uint_fast32_t; - typedef uint_fast64_t my_uint_fast64_t; - typedef uint_least8_t my_uint_least8_t; - typedef uint_least16_t my_uint_least16_t; - typedef uint_least32_t my_uint_least32_t; - typedef uint_least64_t my_uint_least64_t; - typedef uintmax_t my_uintmax_t; - typedef uintptr_t my_uintptr_t; + echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 +echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 +if test "${gcc_cv_have_tls+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else - ; - return 0; -} + if test "$cross_compiling" = yes; then + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +__thread int a; int b; int main() { return a = b; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_stdint_tr1=yes + gcc_cv_have_tls=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_stdint_tr1=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - +gcc_cv_have_tls=no fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext - echo "$as_me:$LINENO: result: $ac_c99_stdint_tr1" >&5 -echo "${ECHO_T}$ac_c99_stdint_tr1" >&6 - if test x"$ac_c99_stdint_tr1" = x"yes"; then -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_STDINT_TR1 1 +else + cat >conftest.$ac_ext <<_ACEOF +__thread int a; int b; int main() { return a = b; } _ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + chktls_save_LDFLAGS="$LDFLAGS" + LDFLAGS="-static $LDFLAGS" + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +int main() { return 0; } +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF +__thread int a; int b; int main() { return a = b; } +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gcc_cv_have_tls=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - fi - - # Check for the existence of functions. - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - if test "${ac_c99_math_tr1+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +( exit $ac_status ) +gcc_cv_have_tls=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF +gcc_cv_have_tls=yes +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$chktls_save_LDFLAGS" + if test $gcc_cv_have_tls = yes; then + chktls_save_CFLAGS="$CFLAGS" + thread_CFLAGS=failed + for flag in '' '-pthread' '-lpthread'; do + CFLAGS="$flag $chktls_save_CFLAGS" + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include + void *g(void *d) { return NULL; } int main () { -typedef double_t my_double_t; - typedef float_t my_float_t; - acosh(0.0); - acoshf(0.0f); - acoshl(0.0l); - asinh(0.0); - asinhf(0.0f); - asinhl(0.0l); - atanh(0.0); - atanhf(0.0f); - atanhl(0.0l); - cbrt(0.0); - cbrtf(0.0f); - cbrtl(0.0l); - copysign(0.0, 0.0); - copysignf(0.0f, 0.0f); - copysignl(0.0l, 0.0l); - erf(0.0); - erff(0.0f); - erfl(0.0l); - erfc(0.0); - erfcf(0.0f); - erfcl(0.0l); - exp2(0.0); - exp2f(0.0f); - exp2l(0.0l); - expm1(0.0); - expm1f(0.0f); - expm1l(0.0l); - fdim(0.0, 0.0); - fdimf(0.0f, 0.0f); - fdiml(0.0l, 0.0l); - fma(0.0, 0.0, 0.0); - fmaf(0.0f, 0.0f, 0.0f); - fmal(0.0l, 0.0l, 0.0l); - fmax(0.0, 0.0); - fmaxf(0.0f, 0.0f); - fmaxl(0.0l, 0.0l); - fmin(0.0, 0.0); - fminf(0.0f, 0.0f); - fminl(0.0l, 0.0l); - hypot(0.0, 0.0); - hypotf(0.0f, 0.0f); - hypotl(0.0l, 0.0l); - ilogb(0.0); - ilogbf(0.0f); - ilogbl(0.0l); - lgamma(0.0); - lgammaf(0.0f); - lgammal(0.0l); - llrint(0.0); - llrintf(0.0f); - llrintl(0.0l); - llround(0.0); - llroundf(0.0f); - llroundl(0.0l); - log1p(0.0); - log1pf(0.0f); - log1pl(0.0l); - log2(0.0); - log2f(0.0f); - log2l(0.0l); - logb(0.0); - logbf(0.0f); - logbl(0.0l); - lrint(0.0); - lrintf(0.0f); - lrintl(0.0l); - lround(0.0); - lroundf(0.0f); - lroundl(0.0l); - nan(0); - nanf(0); - nanl(0); - nearbyint(0.0); - nearbyintf(0.0f); - nearbyintl(0.0l); - nextafter(0.0, 0.0); - nextafterf(0.0f, 0.0f); - nextafterl(0.0l, 0.0l); - nexttoward(0.0, 0.0); - nexttowardf(0.0f, 0.0f); - nexttowardl(0.0l, 0.0l); - remainder(0.0, 0.0); - remainderf(0.0f, 0.0f); - remainderl(0.0l, 0.0l); - remquo(0.0, 0.0, 0); - remquo(0.0f, 0.0f, 0); - remquo(0.0l, 0.0l, 0); - rint(0.0); - rintf(0.0f); - rintl(0.0l); - round(0.0); - roundf(0.0f); - roundl(0.0l); - scalbln(0.0, 0l); - scalblnf(0.0f, 0l); - scalblnl(0.0l, 0l); - scalbn(0.0, 0); - scalbnf(0.0f, 0); - scalbnl(0.0l, 0); - tgamma(0.0); - tgammaf(0.0f); - tgammal(0.0l); - trunc(0.0); - truncf(0.0f); - truncl(0.0l); - +pthread_t t; pthread_create(&t,NULL,g,NULL); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_math_tr1=yes + thread_CFLAGS="$flag" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_math_tr1=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "X$thread_CFLAGS" != Xfailed; then + break + fi + done + CFLAGS="$chktls_save_CFLAGS" + if test "X$thread_CFLAGS" != Xfailed; then + CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + __thread int a; + static int *a_in_other_thread; + static void * + thread_func (void *arg) + { + a_in_other_thread = &a; + return (void *)0; + } +int +main () +{ +pthread_t thread; + void *thread_retval; + int *a_in_main_thread; + if (pthread_create (&thread, (pthread_attr_t *)0, + thread_func, (void *)0)) + return 0; + a_in_main_thread = &a; + if (pthread_join (thread, &thread_retval)) + return 0; + return (a_in_other_thread == a_in_main_thread); + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gcc_cv_have_tls=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +( exit $ac_status ) +gcc_cv_have_tls=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi + CFLAGS="$chktls_save_CFLAGS" + fi + fi +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - echo "$as_me:$LINENO: result: $ac_c99_math_tr1" >&5 -echo "${ECHO_T}$ac_c99_math_tr1" >&6 - if test x"$ac_c99_math_tr1" = x"yes"; then +( exit $ac_status ) +gcc_cv_have_tls=no +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5 +echo "${ECHO_T}$gcc_cv_have_tls" >&6 + if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_MATH_TR1 1 +#define HAVE_TLS 1 _ACEOF fi - # Check for the existence of functions (NB: doesn't make - # sense if the previous check fails, per C99, 7.8/1). - ac_c99_inttypes_tr1=no; - if test x"$ac_c99_stdint_tr1" = x"yes"; then - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF + # For _Unwind_GetIPInfo. + + + + ac_ext=cc +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_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -fno-exceptions" + echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5 +echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6 + if test "${gcc_cv_getipinfo+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +extern "C" { extern void _Unwind_GetIPInfo(); } int main () { -intmax_t i, numer, denom, base; - const char* s; - char** endptr; - intmax_t ret = imaxabs(i); - imaxdiv_t dret = imaxdiv(numer, denom); - ret = strtoimax(s, endptr, base); - uintmax_t uret = strtoumax(s, endptr, base); - +_Unwind_GetIPInfo(); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -40570,48 +42242,55 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_inttypes_tr1=yes + gcc_cv_getipinfo=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_inttypes_tr1=no +gcc_cv_getipinfo=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_c99_inttypes_tr1" >&5 -echo "${ECHO_T}$ac_c99_inttypes_tr1" >&6 - if test x"$ac_c99_inttypes_tr1" = x"yes"; then +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + if test $gcc_cv_getipinfo = yes; then cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_INTTYPES_TR1 1 +#define HAVE_GETIPINFO 1 _ACEOF fi + echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5 +echo "${ECHO_T}$gcc_cv_getipinfo" >&6 + CXXFLAGS="$ac_save_CXXFLAGS" + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - # Check for the existence of the header. -for ac_header in stdbool.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then + + + if test "${ac_cv_header_locale_h+set}" = set; then + echo "$as_me:$LINENO: checking for locale.h" >&5 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 +if test "${ac_cv_header_locale_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6 else # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking locale.h usability" >&5 +echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -40619,7 +42298,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default -#include <$ac_header> +#include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -40630,7 +42309,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -40655,15 +42334,15 @@ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking locale.h presence" >&5 +echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <$ac_header> +#include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -40674,8 +42353,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then - ac_cpp_err=$ac_cxx_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -40695,27 +42374,27 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## @@ -40726,274 +42405,40 @@ _ASBOX sed "s/^/$as_me: WARNING: /" >&2 ;; esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +echo "$as_me:$LINENO: checking for locale.h" >&5 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 +if test "${ac_cv_header_locale_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - + ac_cv_header_locale_h=$ac_header_preproc fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6 fi +if test $ac_cv_header_locale_h = yes; then -done - - - CXXFLAGS="$ac_save_CXXFLAGS" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - # For dev/random and dev/urandom for TR1. - - - echo "$as_me:$LINENO: checking for \"dev/random\" and \"dev/urandom\" for TR1 random_device" >&5 -echo $ECHO_N "checking for \"dev/random\" and \"dev/urandom\" for TR1 random_device... $ECHO_C" >&6 - if test "${ac_random_tr1+set}" = set; then + echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 +if test "${ac_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test "$cross_compiling" = yes; then - ac_random_tr1=no -else - cat >conftest.$ac_ext <<_ACEOF + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - int main() - { - return !(fopen("/dev/random", "r") - && fopen("/dev/urandom", "r")); - } - -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_random_tr1=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_random_tr1=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - -fi - - echo "$as_me:$LINENO: result: $ac_random_tr1" >&5 -echo "${ECHO_T}$ac_random_tr1" >&6 - if test x"$ac_random_tr1" = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_RANDOM_TR1 1 -_ACEOF - - fi - - - - # For TLS support. - - # Check whether --enable-tls or --disable-tls was given. -if test "${enable_tls+set}" = set; then - enableval="$enable_tls" - - case "$enableval" in - yes|no) ;; - *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 -echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - enable_tls=yes -fi; - - echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 -echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 -if test "${gcc_cv_have_tls+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test "$cross_compiling" = yes; then - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -__thread int a; int b; int main() { return a = b; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gcc_cv_have_tls=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -gcc_cv_have_tls=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - - -else - cat >conftest.$ac_ext <<_ACEOF -__thread int a; int b; int main() { return a = b; } -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - chktls_save_LDFLAGS="$LDFLAGS" - LDFLAGS="-static $LDFLAGS" - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -int main() { return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -__thread int a; int b; int main() { return a = b; } -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gcc_cv_have_tls=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gcc_cv_have_tls=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -gcc_cv_have_tls=yes -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$chktls_save_LDFLAGS" - if test $gcc_cv_have_tls = yes; then - chktls_save_CFLAGS="$CFLAGS" - thread_CFLAGS=failed - for flag in '' '-pthread' '-lpthread'; do - CFLAGS="$flag $chktls_save_CFLAGS" - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - void *g(void *d) { return NULL; } +#include int main () { -pthread_t t; pthread_create(&t,NULL,g,NULL); +return LC_MESSAGES ; return 0; } @@ -41020,1035 +42465,165 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - thread_CFLAGS="$flag" + ac_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 +ac_cv_val_LC_MESSAGES=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - if test "X$thread_CFLAGS" != Xfailed; then - break - fi - done - CFLAGS="$chktls_save_CFLAGS" - if test "X$thread_CFLAGS" != Xfailed; then - CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - __thread int a; - static int *a_in_other_thread; - static void * - thread_func (void *arg) - { - a_in_other_thread = &a; - return (void *)0; - } -int -main () -{ -pthread_t thread; - void *thread_retval; - int *a_in_main_thread; - if (pthread_create (&thread, (pthread_attr_t *)0, - thread_func, (void *)0)) - return 0; - a_in_main_thread = &a; - if (pthread_join (thread, &thread_retval)) - return 0; - return (a_in_other_thread == a_in_main_thread); - ; - return 0; -} +fi +echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5 +echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6 + if test $ac_cv_val_LC_MESSAGES = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LC_MESSAGES 1 _ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gcc_cv_have_tls=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -gcc_cv_have_tls=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - CFLAGS="$chktls_save_CFLAGS" - fi - fi -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + fi -( exit $ac_status ) -gcc_cv_have_tls=no fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5 -echo "${ECHO_T}$gcc_cv_have_tls" >&6 - if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_TLS 1 -_ACEOF - fi - # For _Unwind_GetIPInfo. + # For iconv support. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" - ac_ext=cc -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_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fno-exceptions" - echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5 -echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6 - if test "${gcc_cv_getipinfo+set}" = set; then +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi; +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 +else + echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 +fi +if test "${acl_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + test "$with_gnu_ld" != no && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } +LD="$acl_cv_path_LD" +if test -n "$LD"; then + echo "$as_me:$LINENO: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern "C" { extern void _Unwind_GetIPInfo(); } -int -main () -{ -_Unwind_GetIPInfo(); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gcc_cv_getipinfo=yes +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 +if test "${acl_cv_prog_gnu_ld+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -gcc_cv_getipinfo=no + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 &5; then + acl_cv_prog_gnu_ld=yes +else + acl_cv_prog_gnu_ld=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - fi - - if test $gcc_cv_getipinfo = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETIPINFO 1 -_ACEOF - - fi - echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5 -echo "${ECHO_T}$gcc_cv_getipinfo" >&6 - CXXFLAGS="$ac_save_CXXFLAGS" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 +echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 +with_gnu_ld=$acl_cv_prog_gnu_ld - if test "${ac_cv_header_locale_h+set}" = set; then - echo "$as_me:$LINENO: checking for locale.h" >&5 -echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 -if test "${ac_cv_header_locale_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 -echo "${ECHO_T}$ac_cv_header_locale_h" >&6 -else - # Is the header compilable? -echo "$as_me:$LINENO: checking locale.h usability" >&5 -echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking locale.h presence" >&5 -echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for locale.h" >&5 -echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 -if test "${ac_cv_header_locale_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_locale_h=$ac_header_preproc -fi -echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 -echo "${ECHO_T}$ac_cv_header_locale_h" >&6 - -fi -if test $ac_cv_header_locale_h = yes; then - - echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 -if test "${ac_cv_val_LC_MESSAGES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -return LC_MESSAGES - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_val_LC_MESSAGES=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_val_LC_MESSAGES=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5 -echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6 - if test $ac_cv_val_LC_MESSAGES = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_LC_MESSAGES 1 -_ACEOF - - fi - -fi - - - - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -sigjmp_buf env; - while (! sigsetjmp (env, 1)) - siglongjmp (env, 1); - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGSETJMP 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - - if test x$gcc_no_link = xyes; then - if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then - ac_cv_func_mmap_fixed_mapped=no - fi -fi -if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then - - -for ac_header in stdlib.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -for ac_func in getpagesize -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -echo "$as_me:$LINENO: checking for working mmap" >&5 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc - -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the file system buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. - - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ - -#include -#include - -#if !STDC_HEADERS && !HAVE_STDLIB_H -char *malloc (); -#endif - -/* This mess was copied from the GNU getpagesize.h. */ -#if !HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# if !HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif - -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# if HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ - -#endif /* no HAVE_GETPAGESIZE */ - -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; - - pagesize = getpagesize (); - - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - exit (1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 0600); - if (fd < 0) - exit (1); - if (write (fd, data, pagesize) != pagesize) - exit (1); - close (fd); - - /* Next, try to mmap the file at a fixed address which already has - something else allocated at it. If we can, also make sure that - we see the same garbage. */ - fd = open ("conftest.mmap", O_RDWR); - if (fd < 0) - exit (1); - data2 = (char *) malloc (2 * pagesize); - if (!data2) - exit (1); - data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit (1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - exit (1); - - /* Finally, make sure that changes to the mapped area do not - percolate back to the file as seen by read(). (This is a bug on - some variants of i386 svr4.0.) */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = (char *) malloc (pagesize); - if (!data3) - exit (1); - if (read (fd, data3, pagesize) != pagesize) - exit (1); - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - exit (1); - close (fd); - exit (0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_mmap_fixed_mapped=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_mmap_fixed_mapped=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 -if test $ac_cv_func_mmap_fixed_mapped = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF - -fi -rm -f conftest.mmap - -fi - - # For iconv support. - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - - -# Check whether --with-gnu-ld or --without-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval="$with_gnu_ld" - test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi; -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 -else - echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then - test "$with_gnu_ld" != no && break - else - test "$with_gnu_ld" != yes && break - fi - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then - acl_cv_prog_gnu_ld=yes -else - acl_cv_prog_gnu_ld=no -fi -fi -echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 -if test "${acl_cv_rpath+set}" = set; then + echo "$as_me:$LINENO: checking for shared library run path origin" >&5 +echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 +if test "${acl_cv_rpath+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -42758,11 +43333,6 @@ _ACEOF #define HAVE_STRTOF 1 _ACEOF - # AC_FUNC_MMAP - cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF - cat >>confdefs.h <<\_ACEOF #define HAVE_ACOSF 1 @@ -43171,12 +43741,16 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + glibcxx_ld_is_gold=no if test x"$with_gnu_ld" = x"yes"; then echo "$as_me:$LINENO: checking for ld version" >&5 echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` glibcxx_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -43185,10 +43759,19 @@ echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then # Sufficiently young GNU ld it is! Joy and bunny rabbits! # NB: This flag only works reliably after 2.16.1. Configure tests # for this are difficult, so hard wire a value that should work. @@ -63822,21 +64405,9 @@ _ACEOF echo "${ECHO_T}$res" >&6 cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGSETJMP 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF #define HAVE_WRITEV 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_INT64_T 1 -_ACEOF - cat >>confdefs.h <<\_ACEOF #define HAVE_LIBM 1 @@ -63893,9 +64464,8 @@ _ACEOF - for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \ - machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \ + machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h \ sys/types.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` @@ -64946,12 +65516,388 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finite_use=yes + glibcxx_cv_func_finite_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_finite_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6 + + if test x$glibcxx_cv_func_finite_use = x"yes"; then + +for ac_func in finite +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + else + + echo "$as_me:$LINENO: checking for _finite declaration" >&5 +echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finite_use+set} != xset; then + if test "${glibcxx_cv_func__finite_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + +int +main () +{ + _finite(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func__finite_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func__finite_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6 + + if test x$glibcxx_cv_func__finite_use = x"yes"; then + +for ac_func in _finite +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + fi + fi + + + + + + + echo "$as_me:$LINENO: checking for copysign declaration" >&5 +echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_copysign_use+set} != xset; then + if test "${glibcxx_cv_func_copysign_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + copysign(0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_copysign_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finite_use=no +glibcxx_cv_func_copysign_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -64964,12 +65910,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6 - if test x$glibcxx_cv_func_finite_use = x"yes"; then + if test x$glibcxx_cv_func_copysign_use = x"yes"; then -for ac_func in finite +for ac_func in copysign do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -65077,10 +66023,10 @@ done else - echo "$as_me:$LINENO: checking for _finite declaration" >&5 -echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finite_use+set} != xset; then - if test "${glibcxx_cv_func__finite_use+set}" = set; then + echo "$as_me:$LINENO: checking for _copysign declaration" >&5 +echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__copysign_use+set} != xset; then + if test "${glibcxx_cv_func__copysign_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -65099,14 +66045,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _finite(0); + _copysign(0, 0); ; return 0; } @@ -65133,12 +66075,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finite_use=yes + glibcxx_cv_func__copysign_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finite_use=no +glibcxx_cv_func__copysign_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -65151,12 +66093,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6 - if test x$glibcxx_cv_func__finite_use = x"yes"; then + if test x$glibcxx_cv_func__copysign_use = x"yes"; then -for ac_func in _finite +for ac_func in _copysign do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -65270,10 +66212,10 @@ done - echo "$as_me:$LINENO: checking for copysign declaration" >&5 -echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_copysign_use+set} != xset; then - if test "${glibcxx_cv_func_copysign_use+set}" = set; then + echo "$as_me:$LINENO: checking for sincos declaration" >&5 +echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincos_use+set} != xset; then + if test "${glibcxx_cv_func_sincos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -65295,7 +66237,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - copysign(0, 0); + sincos(0, 0, 0); ; return 0; } @@ -65322,12 +66264,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_copysign_use=yes + glibcxx_cv_func_sincos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_copysign_use=no +glibcxx_cv_func_sincos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -65340,12 +66282,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6 - if test x$glibcxx_cv_func_copysign_use = x"yes"; then + if test x$glibcxx_cv_func_sincos_use = x"yes"; then -for ac_func in copysign +for ac_func in sincos do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -65453,10 +66395,10 @@ done else - echo "$as_me:$LINENO: checking for _copysign declaration" >&5 -echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__copysign_use+set} != xset; then - if test "${glibcxx_cv_func__copysign_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincos declaration" >&5 +echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincos_use+set} != xset; then + if test "${glibcxx_cv_func__sincos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -65478,7 +66420,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _copysign(0, 0); + _sincos(0, 0, 0); ; return 0; } @@ -65505,12 +66447,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__copysign_use=yes + glibcxx_cv_func__sincos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__copysign_use=no +glibcxx_cv_func__sincos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -65523,12 +66465,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6 - if test x$glibcxx_cv_func__copysign_use = x"yes"; then + if test x$glibcxx_cv_func__sincos_use = x"yes"; then -for ac_func in _copysign +for ac_func in _sincos do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -65642,10 +66584,10 @@ done - echo "$as_me:$LINENO: checking for sincos declaration" >&5 -echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincos_use+set} != xset; then - if test "${glibcxx_cv_func_sincos_use+set}" = set; then + echo "$as_me:$LINENO: checking for fpclass declaration" >&5 +echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fpclass_use+set} != xset; then + if test "${glibcxx_cv_func_fpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -65664,10 +66606,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - sincos(0, 0, 0); + fpclass(0); ; return 0; } @@ -65694,12 +66640,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincos_use=yes + glibcxx_cv_func_fpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincos_use=no +glibcxx_cv_func_fpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -65712,12 +66658,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6 - if test x$glibcxx_cv_func_sincos_use = x"yes"; then + if test x$glibcxx_cv_func_fpclass_use = x"yes"; then -for ac_func in sincos +for ac_func in fpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -65825,10 +66771,10 @@ done else - echo "$as_me:$LINENO: checking for _sincos declaration" >&5 -echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincos_use+set} != xset; then - if test "${glibcxx_cv_func__sincos_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fpclass declaration" >&5 +echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fpclass_use+set} != xset; then + if test "${glibcxx_cv_func__fpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -65847,10 +66793,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _sincos(0, 0, 0); + _fpclass(0); ; return 0; } @@ -65877,12 +66827,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincos_use=yes + glibcxx_cv_func__fpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincos_use=no +glibcxx_cv_func__fpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -65895,12 +66845,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6 - if test x$glibcxx_cv_func__sincos_use = x"yes"; then + if test x$glibcxx_cv_func__fpclass_use = x"yes"; then -for ac_func in _sincos +for ac_func in _fpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -66014,10 +66964,10 @@ done - echo "$as_me:$LINENO: checking for fpclass declaration" >&5 -echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fpclass_use+set} != xset; then - if test "${glibcxx_cv_func_fpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for qfpclass declaration" >&5 +echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then + if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -66043,7 +66993,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fpclass(0); + qfpclass(0); ; return 0; } @@ -66070,12 +67020,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fpclass_use=yes + glibcxx_cv_func_qfpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fpclass_use=no +glibcxx_cv_func_qfpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -66088,12 +67038,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6 - if test x$glibcxx_cv_func_fpclass_use = x"yes"; then + if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then -for ac_func in fpclass +for ac_func in qfpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -66201,10 +67151,10 @@ done else - echo "$as_me:$LINENO: checking for _fpclass declaration" >&5 -echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fpclass_use+set} != xset; then - if test "${glibcxx_cv_func__fpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5 +echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then + if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -66230,7 +67180,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fpclass(0); + _qfpclass(0); ; return 0; } @@ -66257,12 +67207,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fpclass_use=yes + glibcxx_cv_func__qfpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fpclass_use=no +glibcxx_cv_func__qfpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -66275,12 +67225,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6 - if test x$glibcxx_cv_func__fpclass_use = x"yes"; then + if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then -for ac_func in _fpclass +for ac_func in _qfpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -66394,10 +67344,10 @@ done - echo "$as_me:$LINENO: checking for qfpclass declaration" >&5 -echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then - if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypot declaration" >&5 +echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypot_use+set} != xset; then + if test "${glibcxx_cv_func_hypot_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -66416,14 +67366,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - qfpclass(0); + hypot(0, 0); ; return 0; } @@ -66450,12 +67396,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_qfpclass_use=yes + glibcxx_cv_func_hypot_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_qfpclass_use=no +glibcxx_cv_func_hypot_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -66468,12 +67414,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6 - if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then + if test x$glibcxx_cv_func_hypot_use = x"yes"; then -for ac_func in qfpclass +for ac_func in hypot do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -66581,10 +67527,10 @@ done else - echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5 -echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then - if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypot declaration" >&5 +echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypot_use+set} != xset; then + if test "${glibcxx_cv_func__hypot_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -66603,14 +67549,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _qfpclass(0); + _hypot(0, 0); ; return 0; } @@ -66637,12 +67579,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__qfpclass_use=yes + glibcxx_cv_func__hypot_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__qfpclass_use=no +glibcxx_cv_func__hypot_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -66655,12 +67597,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6 - if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then + if test x$glibcxx_cv_func__hypot_use = x"yes"; then -for ac_func in _qfpclass +for ac_func in _hypot do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -66774,22 +67716,21 @@ done - echo "$as_me:$LINENO: checking for hypot declaration" >&5 -echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypot_use+set} != xset; then - if test "${glibcxx_cv_func_hypot_use+set}" = set; then + echo "$as_me:$LINENO: checking for float trig functions" >&5 +echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_float_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -66799,7 +67740,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - hypot(0, 0); +acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); ; return 0; } @@ -66826,30 +67767,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypot_use=yes + glibcxx_cv_func_float_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypot_use=no +glibcxx_cv_func_float_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6 + if test x$glibcxx_cv_func_float_trig_use = x"yes"; then - if test x$glibcxx_cv_func_hypot_use = x"yes"; then -for ac_func in hypot + + + + + + + +for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -66956,11 +67902,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _hypot declaration" >&5 -echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypot_use+set} != xset; then - if test "${glibcxx_cv_func__hypot_use+set}" = set; then + echo "$as_me:$LINENO: checking for _float trig functions" >&5 +echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__float_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -66982,7 +67926,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _hypot(0, 0); +_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); ; return 0; } @@ -67009,12 +67953,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypot_use=yes + glibcxx_cv_func__float_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypot_use=no +glibcxx_cv_func__float_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -67023,16 +67967,21 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6 + if test x$glibcxx_cv_func__float_trig_use = x"yes"; then - if test x$glibcxx_cv_func__hypot_use = x"yes"; then -for ac_func in _hypot + + + + + + + +for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -67146,9 +68095,17 @@ done - echo "$as_me:$LINENO: checking for float trig functions" >&5 -echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_float_trig_use+set}" = set; then + + + + + + + + + echo "$as_me:$LINENO: checking for float round functions" >&5 +echo $ECHO_N "checking for float round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_float_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -67170,7 +68127,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); +ceilf (0); floorf (0); ; return 0; } @@ -67197,12 +68154,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_float_trig_use=yes + glibcxx_cv_func_float_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_float_trig_use=no +glibcxx_cv_func_float_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -67213,19 +68170,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6 - if test x$glibcxx_cv_func_float_trig_use = x"yes"; then - - - - - - - + echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6 + if test x$glibcxx_cv_func_float_round_use = x"yes"; then -for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf +for ac_func in ceilf floorf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -67332,9 +68282,9 @@ fi done else - echo "$as_me:$LINENO: checking for _float trig functions" >&5 -echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__float_trig_use+set}" = set; then + echo "$as_me:$LINENO: checking for _float round functions" >&5 +echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__float_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -67356,7 +68306,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); +_ceilf (0); _floorf (0); ; return 0; } @@ -67383,12 +68333,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__float_trig_use=yes + glibcxx_cv_func__float_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__float_trig_use=no +glibcxx_cv_func__float_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -67399,19 +68349,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6 - if test x$glibcxx_cv_func__float_trig_use = x"yes"; then - - - - - - - + echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6 + if test x$glibcxx_cv_func__float_round_use = x"yes"; then -for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf +for ac_func in _ceilf _floorf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -67527,37 +68470,36 @@ done - - - - - - - echo "$as_me:$LINENO: checking for float round functions" >&5 -echo $ECHO_N "checking for float round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_float_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for expf declaration" >&5 +echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_expf_use+set} != xset; then + if test "${glibcxx_cv_func_expf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -ceilf (0); floorf (0); + expf(0); ; return 0; } @@ -67584,28 +68526,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_float_round_use=yes + glibcxx_cv_func_expf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_float_round_use=no +glibcxx_cv_func_expf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6 - if test x$glibcxx_cv_func_float_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6 + if test x$glibcxx_cv_func_expf_use = x"yes"; then -for ac_func in ceilf floorf +for ac_func in expf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -67712,9 +68656,11 @@ fi done else - echo "$as_me:$LINENO: checking for _float round functions" >&5 -echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__float_round_use+set}" = set; then + + echo "$as_me:$LINENO: checking for _expf declaration" >&5 +echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__expf_use+set} != xset; then + if test "${glibcxx_cv_func__expf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -67733,10 +68679,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_ceilf (0); _floorf (0); + _expf(0); ; return 0; } @@ -67763,12 +68713,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__float_round_use=yes + glibcxx_cv_func__expf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__float_round_use=no +glibcxx_cv_func__expf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -67777,14 +68727,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6 - if test x$glibcxx_cv_func__float_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6 + if test x$glibcxx_cv_func__expf_use = x"yes"; then -for ac_func in _ceilf _floorf +for ac_func in _expf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -67898,12 +68850,10 @@ done - - - echo "$as_me:$LINENO: checking for expf declaration" >&5 -echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_expf_use+set} != xset; then - if test "${glibcxx_cv_func_expf_use+set}" = set; then + echo "$as_me:$LINENO: checking for isnanf declaration" >&5 +echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnanf_use+set} != xset; then + if test "${glibcxx_cv_func_isnanf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -67929,7 +68879,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - expf(0); + isnanf(0); ; return 0; } @@ -67956,12 +68906,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_expf_use=yes + glibcxx_cv_func_isnanf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_expf_use=no +glibcxx_cv_func_isnanf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -67974,12 +68924,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6 - if test x$glibcxx_cv_func_expf_use = x"yes"; then + if test x$glibcxx_cv_func_isnanf_use = x"yes"; then -for ac_func in expf +for ac_func in isnanf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -68087,10 +69037,10 @@ done else - echo "$as_me:$LINENO: checking for _expf declaration" >&5 -echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__expf_use+set} != xset; then - if test "${glibcxx_cv_func__expf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isnanf declaration" >&5 +echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnanf_use+set} != xset; then + if test "${glibcxx_cv_func__isnanf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -68116,7 +69066,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _expf(0); + _isnanf(0); ; return 0; } @@ -68143,12 +69093,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__expf_use=yes + glibcxx_cv_func__isnanf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__expf_use=no +glibcxx_cv_func__isnanf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -68161,12 +69111,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6 - if test x$glibcxx_cv_func__expf_use = x"yes"; then + if test x$glibcxx_cv_func__isnanf_use = x"yes"; then -for ac_func in _expf +for ac_func in _isnanf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -68280,10 +69230,10 @@ done - echo "$as_me:$LINENO: checking for isnanf declaration" >&5 -echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnanf_use+set} != xset; then - if test "${glibcxx_cv_func_isnanf_use+set}" = set; then + echo "$as_me:$LINENO: checking for isinff declaration" >&5 +echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinff_use+set} != xset; then + if test "${glibcxx_cv_func_isinff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -68309,7 +69259,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - isnanf(0); + isinff(0); ; return 0; } @@ -68336,12 +69286,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnanf_use=yes + glibcxx_cv_func_isinff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnanf_use=no +glibcxx_cv_func_isinff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -68354,12 +69304,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6 - if test x$glibcxx_cv_func_isnanf_use = x"yes"; then + if test x$glibcxx_cv_func_isinff_use = x"yes"; then -for ac_func in isnanf +for ac_func in isinff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -68467,10 +69417,10 @@ done else - echo "$as_me:$LINENO: checking for _isnanf declaration" >&5 -echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnanf_use+set} != xset; then - if test "${glibcxx_cv_func__isnanf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isinff declaration" >&5 +echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinff_use+set} != xset; then + if test "${glibcxx_cv_func__isinff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -68496,7 +69446,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _isnanf(0); + _isinff(0); ; return 0; } @@ -68523,12 +69473,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnanf_use=yes + glibcxx_cv_func__isinff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnanf_use=no +glibcxx_cv_func__isinff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -68541,12 +69491,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6 - if test x$glibcxx_cv_func__isnanf_use = x"yes"; then + if test x$glibcxx_cv_func__isinff_use = x"yes"; then -for ac_func in _isnanf +for ac_func in _isinff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -68660,10 +69610,10 @@ done - echo "$as_me:$LINENO: checking for isinff declaration" >&5 -echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinff_use+set} != xset; then - if test "${glibcxx_cv_func_isinff_use+set}" = set; then + echo "$as_me:$LINENO: checking for atan2f declaration" >&5 +echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_atan2f_use+set} != xset; then + if test "${glibcxx_cv_func_atan2f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -68682,14 +69632,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isinff(0); + atan2f(0, 0); ; return 0; } @@ -68716,12 +69662,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinff_use=yes + glibcxx_cv_func_atan2f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinff_use=no +glibcxx_cv_func_atan2f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -68734,12 +69680,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6 - if test x$glibcxx_cv_func_isinff_use = x"yes"; then + if test x$glibcxx_cv_func_atan2f_use = x"yes"; then -for ac_func in isinff +for ac_func in atan2f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -68847,10 +69793,10 @@ done else - echo "$as_me:$LINENO: checking for _isinff declaration" >&5 -echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinff_use+set} != xset; then - if test "${glibcxx_cv_func__isinff_use+set}" = set; then + echo "$as_me:$LINENO: checking for _atan2f declaration" >&5 +echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__atan2f_use+set} != xset; then + if test "${glibcxx_cv_func__atan2f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -68869,14 +69815,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isinff(0); + _atan2f(0, 0); ; return 0; } @@ -68903,12 +69845,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinff_use=yes + glibcxx_cv_func__atan2f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinff_use=no +glibcxx_cv_func__atan2f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -68921,12 +69863,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6 - if test x$glibcxx_cv_func__isinff_use = x"yes"; then + if test x$glibcxx_cv_func__atan2f_use = x"yes"; then -for ac_func in _isinff +for ac_func in _atan2f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -69040,10 +69982,10 @@ done - echo "$as_me:$LINENO: checking for atan2f declaration" >&5 -echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_atan2f_use+set} != xset; then - if test "${glibcxx_cv_func_atan2f_use+set}" = set; then + echo "$as_me:$LINENO: checking for fabsf declaration" >&5 +echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fabsf_use+set} != xset; then + if test "${glibcxx_cv_func_fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -69062,10 +70004,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - atan2f(0, 0); + fabsf(0); ; return 0; } @@ -69092,12 +70038,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_atan2f_use=yes + glibcxx_cv_func_fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_atan2f_use=no +glibcxx_cv_func_fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -69110,12 +70056,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6 - if test x$glibcxx_cv_func_atan2f_use = x"yes"; then + if test x$glibcxx_cv_func_fabsf_use = x"yes"; then -for ac_func in atan2f +for ac_func in fabsf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -69223,10 +70169,10 @@ done else - echo "$as_me:$LINENO: checking for _atan2f declaration" >&5 -echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__atan2f_use+set} != xset; then - if test "${glibcxx_cv_func__atan2f_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fabsf declaration" >&5 +echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fabsf_use+set} != xset; then + if test "${glibcxx_cv_func__fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -69245,10 +70191,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _atan2f(0, 0); + _fabsf(0); ; return 0; } @@ -69275,12 +70225,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__atan2f_use=yes + glibcxx_cv_func__fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__atan2f_use=no +glibcxx_cv_func__fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -69293,12 +70243,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6 - if test x$glibcxx_cv_func__atan2f_use = x"yes"; then + if test x$glibcxx_cv_func__fabsf_use = x"yes"; then -for ac_func in _atan2f +for ac_func in _fabsf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -69412,10 +70362,10 @@ done - echo "$as_me:$LINENO: checking for fabsf declaration" >&5 -echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fabsf_use+set} != xset; then - if test "${glibcxx_cv_func_fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for fmodf declaration" >&5 +echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fmodf_use+set} != xset; then + if test "${glibcxx_cv_func_fmodf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -69434,14 +70384,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - fabsf(0); + fmodf(0, 0); ; return 0; } @@ -69468,12 +70414,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fabsf_use=yes + glibcxx_cv_func_fmodf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fabsf_use=no +glibcxx_cv_func_fmodf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -69486,12 +70432,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6 - if test x$glibcxx_cv_func_fabsf_use = x"yes"; then + if test x$glibcxx_cv_func_fmodf_use = x"yes"; then -for ac_func in fabsf +for ac_func in fmodf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -69599,10 +70545,10 @@ done else - echo "$as_me:$LINENO: checking for _fabsf declaration" >&5 -echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fabsf_use+set} != xset; then - if test "${glibcxx_cv_func__fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fmodf declaration" >&5 +echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fmodf_use+set} != xset; then + if test "${glibcxx_cv_func__fmodf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -69621,14 +70567,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _fabsf(0); + _fmodf(0, 0); ; return 0; } @@ -69655,12 +70597,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fabsf_use=yes + glibcxx_cv_func__fmodf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fabsf_use=no +glibcxx_cv_func__fmodf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -69673,12 +70615,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6 - if test x$glibcxx_cv_func__fabsf_use = x"yes"; then + if test x$glibcxx_cv_func__fmodf_use = x"yes"; then -for ac_func in _fabsf +for ac_func in _fmodf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -69792,10 +70734,10 @@ done - echo "$as_me:$LINENO: checking for fmodf declaration" >&5 -echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fmodf_use+set} != xset; then - if test "${glibcxx_cv_func_fmodf_use+set}" = set; then + echo "$as_me:$LINENO: checking for frexpf declaration" >&5 +echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_frexpf_use+set} != xset; then + if test "${glibcxx_cv_func_frexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -69817,7 +70759,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fmodf(0, 0); + frexpf(0, 0); ; return 0; } @@ -69844,12 +70786,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fmodf_use=yes + glibcxx_cv_func_frexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fmodf_use=no +glibcxx_cv_func_frexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -69862,12 +70804,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6 - if test x$glibcxx_cv_func_fmodf_use = x"yes"; then + if test x$glibcxx_cv_func_frexpf_use = x"yes"; then -for ac_func in fmodf +for ac_func in frexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -69975,10 +70917,10 @@ done else - echo "$as_me:$LINENO: checking for _fmodf declaration" >&5 -echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fmodf_use+set} != xset; then - if test "${glibcxx_cv_func__fmodf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _frexpf declaration" >&5 +echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__frexpf_use+set} != xset; then + if test "${glibcxx_cv_func__frexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -70000,7 +70942,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fmodf(0, 0); + _frexpf(0, 0); ; return 0; } @@ -70027,12 +70969,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fmodf_use=yes + glibcxx_cv_func__frexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fmodf_use=no +glibcxx_cv_func__frexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -70045,12 +70987,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6 - if test x$glibcxx_cv_func__fmodf_use = x"yes"; then + if test x$glibcxx_cv_func__frexpf_use = x"yes"; then -for ac_func in _fmodf +for ac_func in _frexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -70164,10 +71106,10 @@ done - echo "$as_me:$LINENO: checking for frexpf declaration" >&5 -echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_frexpf_use+set} != xset; then - if test "${glibcxx_cv_func_frexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypotf declaration" >&5 +echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypotf_use+set} != xset; then + if test "${glibcxx_cv_func_hypotf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -70189,7 +71131,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - frexpf(0, 0); + hypotf(0, 0); ; return 0; } @@ -70216,12 +71158,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_frexpf_use=yes + glibcxx_cv_func_hypotf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_frexpf_use=no +glibcxx_cv_func_hypotf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -70234,12 +71176,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6 - if test x$glibcxx_cv_func_frexpf_use = x"yes"; then + if test x$glibcxx_cv_func_hypotf_use = x"yes"; then -for ac_func in frexpf +for ac_func in hypotf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -70347,10 +71289,10 @@ done else - echo "$as_me:$LINENO: checking for _frexpf declaration" >&5 -echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__frexpf_use+set} != xset; then - if test "${glibcxx_cv_func__frexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypotf declaration" >&5 +echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypotf_use+set} != xset; then + if test "${glibcxx_cv_func__hypotf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -70372,7 +71314,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _frexpf(0, 0); + _hypotf(0, 0); ; return 0; } @@ -70399,12 +71341,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__frexpf_use=yes + glibcxx_cv_func__hypotf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__frexpf_use=no +glibcxx_cv_func__hypotf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -70417,12 +71359,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6 - if test x$glibcxx_cv_func__frexpf_use = x"yes"; then + if test x$glibcxx_cv_func__hypotf_use = x"yes"; then -for ac_func in _frexpf +for ac_func in _hypotf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -70536,10 +71478,10 @@ done - echo "$as_me:$LINENO: checking for hypotf declaration" >&5 -echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypotf_use+set} != xset; then - if test "${glibcxx_cv_func_hypotf_use+set}" = set; then + echo "$as_me:$LINENO: checking for ldexpf declaration" >&5 +echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then + if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -70561,7 +71503,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - hypotf(0, 0); + ldexpf(0, 0); ; return 0; } @@ -70588,12 +71530,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypotf_use=yes + glibcxx_cv_func_ldexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypotf_use=no +glibcxx_cv_func_ldexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -70606,12 +71548,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6 - if test x$glibcxx_cv_func_hypotf_use = x"yes"; then + if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then -for ac_func in hypotf +for ac_func in ldexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -70719,10 +71661,10 @@ done else - echo "$as_me:$LINENO: checking for _hypotf declaration" >&5 -echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypotf_use+set} != xset; then - if test "${glibcxx_cv_func__hypotf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5 +echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then + if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -70744,7 +71686,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _hypotf(0, 0); + _ldexpf(0, 0); ; return 0; } @@ -70771,12 +71713,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypotf_use=yes + glibcxx_cv_func__ldexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypotf_use=no +glibcxx_cv_func__ldexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -70789,12 +71731,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6 - if test x$glibcxx_cv_func__hypotf_use = x"yes"; then + if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then -for ac_func in _hypotf +for ac_func in _ldexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -70908,10 +71850,10 @@ done - echo "$as_me:$LINENO: checking for ldexpf declaration" >&5 -echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then - if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for logf declaration" >&5 +echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_logf_use+set} != xset; then + if test "${glibcxx_cv_func_logf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -70930,10 +71872,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - ldexpf(0, 0); + logf(0); ; return 0; } @@ -70960,12 +71906,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_ldexpf_use=yes + glibcxx_cv_func_logf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_ldexpf_use=no +glibcxx_cv_func_logf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -70978,12 +71924,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6 - if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then + if test x$glibcxx_cv_func_logf_use = x"yes"; then -for ac_func in ldexpf +for ac_func in logf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -71091,10 +72037,10 @@ done else - echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5 -echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then - if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _logf declaration" >&5 +echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__logf_use+set} != xset; then + if test "${glibcxx_cv_func__logf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -71113,10 +72059,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _ldexpf(0, 0); + _logf(0); ; return 0; } @@ -71143,12 +72093,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__ldexpf_use=yes + glibcxx_cv_func__logf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__ldexpf_use=no +glibcxx_cv_func__logf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -71161,12 +72111,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6 - if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then + if test x$glibcxx_cv_func__logf_use = x"yes"; then -for ac_func in _ldexpf +for ac_func in _logf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -71280,10 +72230,10 @@ done - echo "$as_me:$LINENO: checking for logf declaration" >&5 -echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_logf_use+set} != xset; then - if test "${glibcxx_cv_func_logf_use+set}" = set; then + echo "$as_me:$LINENO: checking for log10f declaration" >&5 +echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_log10f_use+set} != xset; then + if test "${glibcxx_cv_func_log10f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -71309,7 +72259,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - logf(0); + log10f(0); ; return 0; } @@ -71336,12 +72286,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_logf_use=yes + glibcxx_cv_func_log10f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_logf_use=no +glibcxx_cv_func_log10f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -71354,12 +72304,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6 - if test x$glibcxx_cv_func_logf_use = x"yes"; then + if test x$glibcxx_cv_func_log10f_use = x"yes"; then -for ac_func in logf +for ac_func in log10f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -71467,10 +72417,10 @@ done else - echo "$as_me:$LINENO: checking for _logf declaration" >&5 -echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__logf_use+set} != xset; then - if test "${glibcxx_cv_func__logf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _log10f declaration" >&5 +echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__log10f_use+set} != xset; then + if test "${glibcxx_cv_func__log10f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -71496,7 +72446,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _logf(0); + _log10f(0); ; return 0; } @@ -71523,12 +72473,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__logf_use=yes + glibcxx_cv_func__log10f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__logf_use=no +glibcxx_cv_func__log10f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -71541,12 +72491,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6 - if test x$glibcxx_cv_func__logf_use = x"yes"; then + if test x$glibcxx_cv_func__log10f_use = x"yes"; then -for ac_func in _logf +for ac_func in _log10f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -71660,10 +72610,10 @@ done - echo "$as_me:$LINENO: checking for log10f declaration" >&5 -echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_log10f_use+set} != xset; then - if test "${glibcxx_cv_func_log10f_use+set}" = set; then + echo "$as_me:$LINENO: checking for modff declaration" >&5 +echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modff_use+set} != xset; then + if test "${glibcxx_cv_func_modff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -71682,14 +72632,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - log10f(0); + modff(0, 0); ; return 0; } @@ -71716,12 +72662,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_log10f_use=yes + glibcxx_cv_func_modff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_log10f_use=no +glibcxx_cv_func_modff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -71734,12 +72680,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6 - if test x$glibcxx_cv_func_log10f_use = x"yes"; then + if test x$glibcxx_cv_func_modff_use = x"yes"; then -for ac_func in log10f +for ac_func in modff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -71847,10 +72793,10 @@ done else - echo "$as_me:$LINENO: checking for _log10f declaration" >&5 -echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__log10f_use+set} != xset; then - if test "${glibcxx_cv_func__log10f_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modff declaration" >&5 +echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modff_use+set} != xset; then + if test "${glibcxx_cv_func__modff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -71869,14 +72815,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _log10f(0); + _modff(0, 0); ; return 0; } @@ -71903,12 +72845,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__log10f_use=yes + glibcxx_cv_func__modff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__log10f_use=no +glibcxx_cv_func__modff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -71921,12 +72863,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6 - if test x$glibcxx_cv_func__log10f_use = x"yes"; then + if test x$glibcxx_cv_func__modff_use = x"yes"; then -for ac_func in _log10f +for ac_func in _modff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -72040,10 +72982,10 @@ done - echo "$as_me:$LINENO: checking for modff declaration" >&5 -echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modff_use+set} != xset; then - if test "${glibcxx_cv_func_modff_use+set}" = set; then + echo "$as_me:$LINENO: checking for modf declaration" >&5 +echo $ECHO_N "checking for modf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modf_use+set} != xset; then + if test "${glibcxx_cv_func_modf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -72065,7 +73007,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - modff(0, 0); + modf(0, 0); ; return 0; } @@ -72092,12 +73034,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modff_use=yes + glibcxx_cv_func_modf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modff_use=no +glibcxx_cv_func_modf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -72110,12 +73052,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modf_use" >&6 - if test x$glibcxx_cv_func_modff_use = x"yes"; then + if test x$glibcxx_cv_func_modf_use = x"yes"; then -for ac_func in modff +for ac_func in modf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -72223,10 +73165,10 @@ done else - echo "$as_me:$LINENO: checking for _modff declaration" >&5 -echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modff_use+set} != xset; then - if test "${glibcxx_cv_func__modff_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modf declaration" >&5 +echo $ECHO_N "checking for _modf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modf_use+set} != xset; then + if test "${glibcxx_cv_func__modf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -72248,7 +73190,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _modff(0, 0); + _modf(0, 0); ; return 0; } @@ -72275,12 +73217,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modff_use=yes + glibcxx_cv_func__modf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modff_use=no +glibcxx_cv_func__modf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -72293,12 +73235,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modf_use" >&6 - if test x$glibcxx_cv_func__modff_use = x"yes"; then + if test x$glibcxx_cv_func__modf_use = x"yes"; then -for ac_func in _modff +for ac_func in _modf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -72412,10 +73354,10 @@ done - echo "$as_me:$LINENO: checking for modf declaration" >&5 -echo $ECHO_N "checking for modf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modf_use+set} != xset; then - if test "${glibcxx_cv_func_modf_use+set}" = set; then + echo "$as_me:$LINENO: checking for powf declaration" >&5 +echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_powf_use+set} != xset; then + if test "${glibcxx_cv_func_powf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -72437,7 +73379,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - modf(0, 0); + powf(0, 0); ; return 0; } @@ -72464,12 +73406,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modf_use=yes + glibcxx_cv_func_powf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modf_use=no +glibcxx_cv_func_powf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -72482,12 +73424,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6 - if test x$glibcxx_cv_func_modf_use = x"yes"; then + if test x$glibcxx_cv_func_powf_use = x"yes"; then -for ac_func in modf +for ac_func in powf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -72595,10 +73537,10 @@ done else - echo "$as_me:$LINENO: checking for _modf declaration" >&5 -echo $ECHO_N "checking for _modf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modf_use+set} != xset; then - if test "${glibcxx_cv_func__modf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _powf declaration" >&5 +echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__powf_use+set} != xset; then + if test "${glibcxx_cv_func__powf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -72620,7 +73562,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _modf(0, 0); + _powf(0, 0); ; return 0; } @@ -72647,12 +73589,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modf_use=yes + glibcxx_cv_func__powf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modf_use=no +glibcxx_cv_func__powf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -72665,12 +73607,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6 - if test x$glibcxx_cv_func__modf_use = x"yes"; then + if test x$glibcxx_cv_func__powf_use = x"yes"; then -for ac_func in _modf +for ac_func in _powf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -72784,10 +73726,10 @@ done - echo "$as_me:$LINENO: checking for powf declaration" >&5 -echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_powf_use+set} != xset; then - if test "${glibcxx_cv_func_powf_use+set}" = set; then + echo "$as_me:$LINENO: checking for sqrtf declaration" >&5 +echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -72806,10 +73748,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - powf(0, 0); + sqrtf(0); ; return 0; } @@ -72836,12 +73782,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_powf_use=yes + glibcxx_cv_func_sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_powf_use=no +glibcxx_cv_func_sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -72854,12 +73800,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6 - if test x$glibcxx_cv_func_powf_use = x"yes"; then + if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then -for ac_func in powf +for ac_func in sqrtf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -72967,10 +73913,10 @@ done else - echo "$as_me:$LINENO: checking for _powf declaration" >&5 -echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__powf_use+set} != xset; then - if test "${glibcxx_cv_func__powf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5 +echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -72989,10 +73935,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _powf(0, 0); + _sqrtf(0); ; return 0; } @@ -73019,12 +73969,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__powf_use=yes + glibcxx_cv_func__sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__powf_use=no +glibcxx_cv_func__sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -73037,12 +73987,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6 - if test x$glibcxx_cv_func__powf_use = x"yes"; then + if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then -for ac_func in _powf +for ac_func in _sqrtf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -73156,10 +74106,10 @@ done - echo "$as_me:$LINENO: checking for sqrtf declaration" >&5 -echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for sincosf declaration" >&5 +echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincosf_use+set} != xset; then + if test "${glibcxx_cv_func_sincosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -73178,14 +74128,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - sqrtf(0); + sincosf(0, 0, 0); ; return 0; } @@ -73212,12 +74158,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sqrtf_use=yes + glibcxx_cv_func_sincosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sqrtf_use=no +glibcxx_cv_func_sincosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -73230,12 +74176,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6 - if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then + if test x$glibcxx_cv_func_sincosf_use = x"yes"; then -for ac_func in sqrtf +for ac_func in sincosf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -73343,10 +74289,10 @@ done else - echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5 -echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincosf declaration" >&5 +echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincosf_use+set} != xset; then + if test "${glibcxx_cv_func__sincosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -73365,14 +74311,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _sqrtf(0); + _sincosf(0, 0, 0); ; return 0; } @@ -73399,12 +74341,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sqrtf_use=yes + glibcxx_cv_func__sincosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sqrtf_use=no +glibcxx_cv_func__sincosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -73417,12 +74359,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6 - if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then + if test x$glibcxx_cv_func__sincosf_use = x"yes"; then -for ac_func in _sqrtf +for ac_func in _sincosf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -73536,10 +74478,10 @@ done - echo "$as_me:$LINENO: checking for sincosf declaration" >&5 -echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincosf_use+set} != xset; then - if test "${glibcxx_cv_func_sincosf_use+set}" = set; then + echo "$as_me:$LINENO: checking for finitef declaration" >&5 +echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finitef_use+set} != xset; then + if test "${glibcxx_cv_func_finitef_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -73558,10 +74500,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - sincosf(0, 0, 0); + finitef(0); ; return 0; } @@ -73588,12 +74534,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincosf_use=yes + glibcxx_cv_func_finitef_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincosf_use=no +glibcxx_cv_func_finitef_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -73606,12 +74552,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6 - if test x$glibcxx_cv_func_sincosf_use = x"yes"; then + if test x$glibcxx_cv_func_finitef_use = x"yes"; then -for ac_func in sincosf +for ac_func in finitef do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -73719,10 +74665,10 @@ done else - echo "$as_me:$LINENO: checking for _sincosf declaration" >&5 -echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincosf_use+set} != xset; then - if test "${glibcxx_cv_func__sincosf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _finitef declaration" >&5 +echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finitef_use+set} != xset; then + if test "${glibcxx_cv_func__finitef_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -73741,10 +74687,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _sincosf(0, 0, 0); + _finitef(0); ; return 0; } @@ -73771,12 +74721,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincosf_use=yes + glibcxx_cv_func__finitef_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincosf_use=no +glibcxx_cv_func__finitef_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -73789,12 +74739,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6 - if test x$glibcxx_cv_func__sincosf_use = x"yes"; then + if test x$glibcxx_cv_func__finitef_use = x"yes"; then -for ac_func in _sincosf +for ac_func in _finitef do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -73908,36 +74858,31 @@ done - echo "$as_me:$LINENO: checking for finitef declaration" >&5 -echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finitef_use+set} != xset; then - if test "${glibcxx_cv_func_finitef_use+set}" = set; then + echo "$as_me:$LINENO: checking for long double trig functions" >&5 +echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - finitef(0); +acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); ; return 0; } @@ -73964,30 +74909,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finitef_use=yes + glibcxx_cv_func_long_double_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finitef_use=no +glibcxx_cv_func_long_double_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6 + if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then - if test x$glibcxx_cv_func_finitef_use = x"yes"; then -for ac_func in finitef + + + + + + + +for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -74094,11 +75044,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _finitef declaration" >&5 -echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finitef_use+set} != xset; then - if test "${glibcxx_cv_func__finitef_use+set}" = set; then + echo "$as_me:$LINENO: checking for _long double trig functions" >&5 +echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -74117,14 +75065,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _finitef(0); +_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); ; return 0; } @@ -74151,12 +75095,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finitef_use=yes + glibcxx_cv_func__long_double_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finitef_use=no +glibcxx_cv_func__long_double_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -74165,16 +75109,21 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6 + if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then - if test x$glibcxx_cv_func__finitef_use = x"yes"; then -for ac_func in _finitef + + + + + + + +for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -74288,9 +75237,17 @@ done - echo "$as_me:$LINENO: checking for long double trig functions" >&5 -echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then + + + + + + + + + echo "$as_me:$LINENO: checking for long double round functions" >&5 +echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -74312,7 +75269,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); +ceill (0); floorl (0); ; return 0; } @@ -74339,12 +75296,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_long_double_trig_use=yes + glibcxx_cv_func_long_double_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_long_double_trig_use=no +glibcxx_cv_func_long_double_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -74355,19 +75312,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6 - if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then - - - - - - - + echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6 + if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then -for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl +for ac_func in ceill floorl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -74474,9 +75424,9 @@ fi done else - echo "$as_me:$LINENO: checking for _long double trig functions" >&5 -echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then + echo "$as_me:$LINENO: checking for _long double round functions" >&5 +echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -74498,7 +75448,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); +_ceill (0); _floorl (0); ; return 0; } @@ -74525,12 +75475,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__long_double_trig_use=yes + glibcxx_cv_func__long_double_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__long_double_trig_use=no +glibcxx_cv_func__long_double_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -74541,19 +75491,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6 - if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then - - - - - - - + echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6 + if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then -for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl +for ac_func in _ceill _floorl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -74669,37 +75612,36 @@ done - - - - - - - echo "$as_me:$LINENO: checking for long double round functions" >&5 -echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for isnanl declaration" >&5 +echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnanl_use+set} != xset; then + if test "${glibcxx_cv_func_isnanl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -ceill (0); floorl (0); + isnanl(0); ; return 0; } @@ -74726,28 +75668,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_long_double_round_use=yes + glibcxx_cv_func_isnanl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_long_double_round_use=no +glibcxx_cv_func_isnanl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6 - if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6 + if test x$glibcxx_cv_func_isnanl_use = x"yes"; then -for ac_func in ceill floorl +for ac_func in isnanl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -74854,9 +75798,11 @@ fi done else - echo "$as_me:$LINENO: checking for _long double round functions" >&5 -echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then + + echo "$as_me:$LINENO: checking for _isnanl declaration" >&5 +echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnanl_use+set} != xset; then + if test "${glibcxx_cv_func__isnanl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -74875,10 +75821,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_ceill (0); _floorl (0); + _isnanl(0); ; return 0; } @@ -74905,12 +75855,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__long_double_round_use=yes + glibcxx_cv_func__isnanl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__long_double_round_use=no +glibcxx_cv_func__isnanl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -74919,14 +75869,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6 - if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6 + if test x$glibcxx_cv_func__isnanl_use = x"yes"; then -for ac_func in _ceill _floorl +for ac_func in _isnanl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -75040,12 +75992,10 @@ done - - - echo "$as_me:$LINENO: checking for isnanl declaration" >&5 -echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnanl_use+set} != xset; then - if test "${glibcxx_cv_func_isnanl_use+set}" = set; then + echo "$as_me:$LINENO: checking for isinfl declaration" >&5 +echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinfl_use+set} != xset; then + if test "${glibcxx_cv_func_isinfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -75071,7 +76021,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - isnanl(0); + isinfl(0); ; return 0; } @@ -75098,12 +76048,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnanl_use=yes + glibcxx_cv_func_isinfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnanl_use=no +glibcxx_cv_func_isinfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -75116,12 +76066,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6 - if test x$glibcxx_cv_func_isnanl_use = x"yes"; then + if test x$glibcxx_cv_func_isinfl_use = x"yes"; then -for ac_func in isnanl +for ac_func in isinfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -75229,10 +76179,10 @@ done else - echo "$as_me:$LINENO: checking for _isnanl declaration" >&5 -echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnanl_use+set} != xset; then - if test "${glibcxx_cv_func__isnanl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isinfl declaration" >&5 +echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinfl_use+set} != xset; then + if test "${glibcxx_cv_func__isinfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -75258,7 +76208,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _isnanl(0); + _isinfl(0); ; return 0; } @@ -75285,12 +76235,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnanl_use=yes + glibcxx_cv_func__isinfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnanl_use=no +glibcxx_cv_func__isinfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -75303,12 +76253,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6 - if test x$glibcxx_cv_func__isnanl_use = x"yes"; then + if test x$glibcxx_cv_func__isinfl_use = x"yes"; then -for ac_func in _isnanl +for ac_func in _isinfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -75422,10 +76372,10 @@ done - echo "$as_me:$LINENO: checking for isinfl declaration" >&5 -echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinfl_use+set} != xset; then - if test "${glibcxx_cv_func_isinfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for copysignl declaration" >&5 +echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_copysignl_use+set} != xset; then + if test "${glibcxx_cv_func_copysignl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -75444,14 +76394,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isinfl(0); + copysignl(0, 0); ; return 0; } @@ -75478,12 +76424,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinfl_use=yes + glibcxx_cv_func_copysignl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinfl_use=no +glibcxx_cv_func_copysignl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -75496,12 +76442,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6 - if test x$glibcxx_cv_func_isinfl_use = x"yes"; then + if test x$glibcxx_cv_func_copysignl_use = x"yes"; then -for ac_func in isinfl +for ac_func in copysignl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -75609,10 +76555,10 @@ done else - echo "$as_me:$LINENO: checking for _isinfl declaration" >&5 -echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinfl_use+set} != xset; then - if test "${glibcxx_cv_func__isinfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _copysignl declaration" >&5 +echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__copysignl_use+set} != xset; then + if test "${glibcxx_cv_func__copysignl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -75631,14 +76577,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isinfl(0); + _copysignl(0, 0); ; return 0; } @@ -75665,12 +76607,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinfl_use=yes + glibcxx_cv_func__copysignl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinfl_use=no +glibcxx_cv_func__copysignl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -75683,12 +76625,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6 - if test x$glibcxx_cv_func__isinfl_use = x"yes"; then + if test x$glibcxx_cv_func__copysignl_use = x"yes"; then -for ac_func in _isinfl +for ac_func in _copysignl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -75802,10 +76744,10 @@ done - echo "$as_me:$LINENO: checking for copysignl declaration" >&5 -echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_copysignl_use+set} != xset; then - if test "${glibcxx_cv_func_copysignl_use+set}" = set; then + echo "$as_me:$LINENO: checking for atan2l declaration" >&5 +echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_atan2l_use+set} != xset; then + if test "${glibcxx_cv_func_atan2l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -75827,7 +76769,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - copysignl(0, 0); + atan2l(0, 0); ; return 0; } @@ -75854,12 +76796,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_copysignl_use=yes + glibcxx_cv_func_atan2l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_copysignl_use=no +glibcxx_cv_func_atan2l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -75872,12 +76814,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6 - if test x$glibcxx_cv_func_copysignl_use = x"yes"; then + if test x$glibcxx_cv_func_atan2l_use = x"yes"; then -for ac_func in copysignl +for ac_func in atan2l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -75985,10 +76927,10 @@ done else - echo "$as_me:$LINENO: checking for _copysignl declaration" >&5 -echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__copysignl_use+set} != xset; then - if test "${glibcxx_cv_func__copysignl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _atan2l declaration" >&5 +echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__atan2l_use+set} != xset; then + if test "${glibcxx_cv_func__atan2l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -76010,7 +76952,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _copysignl(0, 0); + _atan2l(0, 0); ; return 0; } @@ -76037,12 +76979,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__copysignl_use=yes + glibcxx_cv_func__atan2l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__copysignl_use=no +glibcxx_cv_func__atan2l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -76055,12 +76997,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6 - if test x$glibcxx_cv_func__copysignl_use = x"yes"; then + if test x$glibcxx_cv_func__atan2l_use = x"yes"; then -for ac_func in _copysignl +for ac_func in _atan2l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -76174,10 +77116,10 @@ done - echo "$as_me:$LINENO: checking for atan2l declaration" >&5 -echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_atan2l_use+set} != xset; then - if test "${glibcxx_cv_func_atan2l_use+set}" = set; then + echo "$as_me:$LINENO: checking for expl declaration" >&5 +echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_expl_use+set} != xset; then + if test "${glibcxx_cv_func_expl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -76196,10 +77138,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - atan2l(0, 0); + expl(0); ; return 0; } @@ -76226,12 +77172,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_atan2l_use=yes + glibcxx_cv_func_expl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_atan2l_use=no +glibcxx_cv_func_expl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -76244,12 +77190,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6 - if test x$glibcxx_cv_func_atan2l_use = x"yes"; then + if test x$glibcxx_cv_func_expl_use = x"yes"; then -for ac_func in atan2l +for ac_func in expl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -76357,10 +77303,10 @@ done else - echo "$as_me:$LINENO: checking for _atan2l declaration" >&5 -echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__atan2l_use+set} != xset; then - if test "${glibcxx_cv_func__atan2l_use+set}" = set; then + echo "$as_me:$LINENO: checking for _expl declaration" >&5 +echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__expl_use+set} != xset; then + if test "${glibcxx_cv_func__expl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -76379,10 +77325,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _atan2l(0, 0); + _expl(0); ; return 0; } @@ -76409,12 +77359,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__atan2l_use=yes + glibcxx_cv_func__expl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__atan2l_use=no +glibcxx_cv_func__expl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -76427,12 +77377,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6 - if test x$glibcxx_cv_func__atan2l_use = x"yes"; then + if test x$glibcxx_cv_func__expl_use = x"yes"; then -for ac_func in _atan2l +for ac_func in _expl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -76546,10 +77496,10 @@ done - echo "$as_me:$LINENO: checking for expl declaration" >&5 -echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_expl_use+set} != xset; then - if test "${glibcxx_cv_func_expl_use+set}" = set; then + echo "$as_me:$LINENO: checking for fabsl declaration" >&5 +echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fabsl_use+set} != xset; then + if test "${glibcxx_cv_func_fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -76575,7 +77525,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - expl(0); + fabsl(0); ; return 0; } @@ -76602,12 +77552,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_expl_use=yes + glibcxx_cv_func_fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_expl_use=no +glibcxx_cv_func_fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -76620,12 +77570,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6 - if test x$glibcxx_cv_func_expl_use = x"yes"; then + if test x$glibcxx_cv_func_fabsl_use = x"yes"; then -for ac_func in expl +for ac_func in fabsl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -76733,10 +77683,10 @@ done else - echo "$as_me:$LINENO: checking for _expl declaration" >&5 -echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__expl_use+set} != xset; then - if test "${glibcxx_cv_func__expl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fabsl declaration" >&5 +echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fabsl_use+set} != xset; then + if test "${glibcxx_cv_func__fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -76762,7 +77712,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _expl(0); + _fabsl(0); ; return 0; } @@ -76789,12 +77739,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__expl_use=yes + glibcxx_cv_func__fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__expl_use=no +glibcxx_cv_func__fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -76807,12 +77757,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6 - if test x$glibcxx_cv_func__expl_use = x"yes"; then + if test x$glibcxx_cv_func__fabsl_use = x"yes"; then -for ac_func in _expl +for ac_func in _fabsl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -76926,10 +77876,10 @@ done - echo "$as_me:$LINENO: checking for fabsl declaration" >&5 -echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fabsl_use+set} != xset; then - if test "${glibcxx_cv_func_fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for fmodl declaration" >&5 +echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fmodl_use+set} != xset; then + if test "${glibcxx_cv_func_fmodl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -76948,14 +77898,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - fabsl(0); + fmodl(0, 0); ; return 0; } @@ -76982,12 +77928,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fabsl_use=yes + glibcxx_cv_func_fmodl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fabsl_use=no +glibcxx_cv_func_fmodl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -77000,12 +77946,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6 - if test x$glibcxx_cv_func_fabsl_use = x"yes"; then + if test x$glibcxx_cv_func_fmodl_use = x"yes"; then -for ac_func in fabsl +for ac_func in fmodl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -77113,10 +78059,10 @@ done else - echo "$as_me:$LINENO: checking for _fabsl declaration" >&5 -echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fabsl_use+set} != xset; then - if test "${glibcxx_cv_func__fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fmodl declaration" >&5 +echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fmodl_use+set} != xset; then + if test "${glibcxx_cv_func__fmodl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -77135,14 +78081,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _fabsl(0); + _fmodl(0, 0); ; return 0; } @@ -77169,12 +78111,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fabsl_use=yes + glibcxx_cv_func__fmodl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fabsl_use=no +glibcxx_cv_func__fmodl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -77187,12 +78129,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6 - if test x$glibcxx_cv_func__fabsl_use = x"yes"; then + if test x$glibcxx_cv_func__fmodl_use = x"yes"; then -for ac_func in _fabsl +for ac_func in _fmodl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -77306,10 +78248,10 @@ done - echo "$as_me:$LINENO: checking for fmodl declaration" >&5 -echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fmodl_use+set} != xset; then - if test "${glibcxx_cv_func_fmodl_use+set}" = set; then + echo "$as_me:$LINENO: checking for frexpl declaration" >&5 +echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_frexpl_use+set} != xset; then + if test "${glibcxx_cv_func_frexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -77331,7 +78273,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fmodl(0, 0); + frexpl(0, 0); ; return 0; } @@ -77358,12 +78300,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fmodl_use=yes + glibcxx_cv_func_frexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fmodl_use=no +glibcxx_cv_func_frexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -77376,12 +78318,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6 - if test x$glibcxx_cv_func_fmodl_use = x"yes"; then + if test x$glibcxx_cv_func_frexpl_use = x"yes"; then -for ac_func in fmodl +for ac_func in frexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -77489,10 +78431,10 @@ done else - echo "$as_me:$LINENO: checking for _fmodl declaration" >&5 -echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fmodl_use+set} != xset; then - if test "${glibcxx_cv_func__fmodl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _frexpl declaration" >&5 +echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__frexpl_use+set} != xset; then + if test "${glibcxx_cv_func__frexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -77514,7 +78456,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fmodl(0, 0); + _frexpl(0, 0); ; return 0; } @@ -77541,12 +78483,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fmodl_use=yes + glibcxx_cv_func__frexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fmodl_use=no +glibcxx_cv_func__frexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -77559,12 +78501,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6 - if test x$glibcxx_cv_func__fmodl_use = x"yes"; then + if test x$glibcxx_cv_func__frexpl_use = x"yes"; then -for ac_func in _fmodl +for ac_func in _frexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -77678,10 +78620,10 @@ done - echo "$as_me:$LINENO: checking for frexpl declaration" >&5 -echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_frexpl_use+set} != xset; then - if test "${glibcxx_cv_func_frexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypotl declaration" >&5 +echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypotl_use+set} != xset; then + if test "${glibcxx_cv_func_hypotl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -77703,7 +78645,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - frexpl(0, 0); + hypotl(0, 0); ; return 0; } @@ -77730,12 +78672,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_frexpl_use=yes + glibcxx_cv_func_hypotl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_frexpl_use=no +glibcxx_cv_func_hypotl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -77748,12 +78690,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6 - if test x$glibcxx_cv_func_frexpl_use = x"yes"; then + if test x$glibcxx_cv_func_hypotl_use = x"yes"; then -for ac_func in frexpl +for ac_func in hypotl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -77861,10 +78803,10 @@ done else - echo "$as_me:$LINENO: checking for _frexpl declaration" >&5 -echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__frexpl_use+set} != xset; then - if test "${glibcxx_cv_func__frexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypotl declaration" >&5 +echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypotl_use+set} != xset; then + if test "${glibcxx_cv_func__hypotl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -77886,7 +78828,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _frexpl(0, 0); + _hypotl(0, 0); ; return 0; } @@ -77913,12 +78855,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__frexpl_use=yes + glibcxx_cv_func__hypotl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__frexpl_use=no +glibcxx_cv_func__hypotl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -77931,12 +78873,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6 - if test x$glibcxx_cv_func__frexpl_use = x"yes"; then + if test x$glibcxx_cv_func__hypotl_use = x"yes"; then -for ac_func in _frexpl +for ac_func in _hypotl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -78050,10 +78992,10 @@ done - echo "$as_me:$LINENO: checking for hypotl declaration" >&5 -echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypotl_use+set} != xset; then - if test "${glibcxx_cv_func_hypotl_use+set}" = set; then + echo "$as_me:$LINENO: checking for ldexpl declaration" >&5 +echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then + if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -78075,7 +79017,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - hypotl(0, 0); + ldexpl(0, 0); ; return 0; } @@ -78102,12 +79044,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypotl_use=yes + glibcxx_cv_func_ldexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypotl_use=no +glibcxx_cv_func_ldexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -78120,12 +79062,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6 - if test x$glibcxx_cv_func_hypotl_use = x"yes"; then + if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then -for ac_func in hypotl +for ac_func in ldexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -78233,10 +79175,10 @@ done else - echo "$as_me:$LINENO: checking for _hypotl declaration" >&5 -echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypotl_use+set} != xset; then - if test "${glibcxx_cv_func__hypotl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5 +echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then + if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -78258,7 +79200,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _hypotl(0, 0); + _ldexpl(0, 0); ; return 0; } @@ -78285,12 +79227,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypotl_use=yes + glibcxx_cv_func__ldexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypotl_use=no +glibcxx_cv_func__ldexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -78303,12 +79245,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6 - if test x$glibcxx_cv_func__hypotl_use = x"yes"; then + if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then -for ac_func in _hypotl +for ac_func in _ldexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -78422,10 +79364,10 @@ done - echo "$as_me:$LINENO: checking for ldexpl declaration" >&5 -echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then - if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for logl declaration" >&5 +echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_logl_use+set} != xset; then + if test "${glibcxx_cv_func_logl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -78444,10 +79386,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - ldexpl(0, 0); + logl(0); ; return 0; } @@ -78474,12 +79420,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_ldexpl_use=yes + glibcxx_cv_func_logl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_ldexpl_use=no +glibcxx_cv_func_logl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -78492,12 +79438,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6 - if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then + if test x$glibcxx_cv_func_logl_use = x"yes"; then -for ac_func in ldexpl +for ac_func in logl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -78605,10 +79551,10 @@ done else - echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5 -echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then - if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _logl declaration" >&5 +echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__logl_use+set} != xset; then + if test "${glibcxx_cv_func__logl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -78627,10 +79573,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _ldexpl(0, 0); + _logl(0); ; return 0; } @@ -78657,12 +79607,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__ldexpl_use=yes + glibcxx_cv_func__logl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__ldexpl_use=no +glibcxx_cv_func__logl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -78675,12 +79625,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6 - if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then + if test x$glibcxx_cv_func__logl_use = x"yes"; then -for ac_func in _ldexpl +for ac_func in _logl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -78794,10 +79744,10 @@ done - echo "$as_me:$LINENO: checking for logl declaration" >&5 -echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_logl_use+set} != xset; then - if test "${glibcxx_cv_func_logl_use+set}" = set; then + echo "$as_me:$LINENO: checking for log10l declaration" >&5 +echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_log10l_use+set} != xset; then + if test "${glibcxx_cv_func_log10l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -78823,7 +79773,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - logl(0); + log10l(0); ; return 0; } @@ -78850,12 +79800,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_logl_use=yes + glibcxx_cv_func_log10l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_logl_use=no +glibcxx_cv_func_log10l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -78868,12 +79818,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6 - if test x$glibcxx_cv_func_logl_use = x"yes"; then + if test x$glibcxx_cv_func_log10l_use = x"yes"; then -for ac_func in logl +for ac_func in log10l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -78981,10 +79931,10 @@ done else - echo "$as_me:$LINENO: checking for _logl declaration" >&5 -echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__logl_use+set} != xset; then - if test "${glibcxx_cv_func__logl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _log10l declaration" >&5 +echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__log10l_use+set} != xset; then + if test "${glibcxx_cv_func__log10l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -79010,7 +79960,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _logl(0); + _log10l(0); ; return 0; } @@ -79037,12 +79987,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__logl_use=yes + glibcxx_cv_func__log10l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__logl_use=no +glibcxx_cv_func__log10l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -79055,12 +80005,201 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6 - if test x$glibcxx_cv_func__logl_use = x"yes"; then + if test x$glibcxx_cv_func__log10l_use = x"yes"; then -for ac_func in _logl +for ac_func in _log10l +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + fi + fi + + + + + + + echo "$as_me:$LINENO: checking for modfl declaration" >&5 +echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modfl_use+set} != xset; then + if test "${glibcxx_cv_func_modfl_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + modfl(0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_modfl_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_modfl_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6 + + if test x$glibcxx_cv_func_modfl_use = x"yes"; then + +for ac_func in modfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -79166,18 +80305,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for log10l declaration" >&5 -echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_log10l_use+set} != xset; then - if test "${glibcxx_cv_func_log10l_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modfl declaration" >&5 +echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modfl_use+set} != xset; then + if test "${glibcxx_cv_func__modfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -79196,14 +80329,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - log10l(0); + _modfl(0, 0); ; return 0; } @@ -79230,12 +80359,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_log10l_use=yes + glibcxx_cv_func__modfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_log10l_use=no +glibcxx_cv_func__modfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -79248,12 +80377,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6 - if test x$glibcxx_cv_func_log10l_use = x"yes"; then + if test x$glibcxx_cv_func__modfl_use = x"yes"; then -for ac_func in log10l +for ac_func in _modfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -79359,12 +80488,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _log10l declaration" >&5 -echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__log10l_use+set} != xset; then - if test "${glibcxx_cv_func__log10l_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for powl declaration" >&5 +echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_powl_use+set} != xset; then + if test "${glibcxx_cv_func_powl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -79383,14 +80518,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _log10l(0); + powl(0, 0); ; return 0; } @@ -79417,12 +80548,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__log10l_use=yes + glibcxx_cv_func_powl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__log10l_use=no +glibcxx_cv_func_powl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -79435,12 +80566,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6 - if test x$glibcxx_cv_func__log10l_use = x"yes"; then + if test x$glibcxx_cv_func_powl_use = x"yes"; then -for ac_func in _log10l +for ac_func in powl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -79546,18 +80677,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for modfl declaration" >&5 -echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modfl_use+set} != xset; then - if test "${glibcxx_cv_func_modfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _powl declaration" >&5 +echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__powl_use+set} != xset; then + if test "${glibcxx_cv_func__powl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -79579,7 +80704,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - modfl(0, 0); + _powl(0, 0); ; return 0; } @@ -79606,12 +80731,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modfl_use=yes + glibcxx_cv_func__powl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modfl_use=no +glibcxx_cv_func__powl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -79624,12 +80749,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6 - if test x$glibcxx_cv_func_modfl_use = x"yes"; then + if test x$glibcxx_cv_func__powl_use = x"yes"; then -for ac_func in modfl +for ac_func in _powl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -79735,12 +80860,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _modfl declaration" >&5 -echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modfl_use+set} != xset; then - if test "${glibcxx_cv_func__modfl_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sqrtl declaration" >&5 +echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -79759,10 +80890,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _modfl(0, 0); + sqrtl(0); ; return 0; } @@ -79789,12 +80924,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modfl_use=yes + glibcxx_cv_func_sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modfl_use=no +glibcxx_cv_func_sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -79807,12 +80942,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6 - if test x$glibcxx_cv_func__modfl_use = x"yes"; then + if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then -for ac_func in _modfl +for ac_func in sqrtl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -79918,18 +81053,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for powl declaration" >&5 -echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_powl_use+set} != xset; then - if test "${glibcxx_cv_func_powl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5 +echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -79948,10 +81077,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - powl(0, 0); + _sqrtl(0); ; return 0; } @@ -79978,12 +81111,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_powl_use=yes + glibcxx_cv_func__sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_powl_use=no +glibcxx_cv_func__sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -79996,12 +81129,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6 - if test x$glibcxx_cv_func_powl_use = x"yes"; then + if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then -for ac_func in powl +for ac_func in _sqrtl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -80107,12 +81240,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _powl declaration" >&5 -echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__powl_use+set} != xset; then - if test "${glibcxx_cv_func__powl_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sincosl declaration" >&5 +echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincosl_use+set} != xset; then + if test "${glibcxx_cv_func_sincosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -80134,7 +81273,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _powl(0, 0); + sincosl(0, 0, 0); ; return 0; } @@ -80161,12 +81300,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__powl_use=yes + glibcxx_cv_func_sincosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__powl_use=no +glibcxx_cv_func_sincosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -80179,12 +81318,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6 - if test x$glibcxx_cv_func__powl_use = x"yes"; then + if test x$glibcxx_cv_func_sincosl_use = x"yes"; then -for ac_func in _powl +for ac_func in sincosl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -80290,18 +81429,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for sqrtl declaration" >&5 -echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincosl declaration" >&5 +echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincosl_use+set} != xset; then + if test "${glibcxx_cv_func__sincosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -80320,14 +81453,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - sqrtl(0); + _sincosl(0, 0, 0); ; return 0; } @@ -80354,12 +81483,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sqrtl_use=yes + glibcxx_cv_func__sincosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sqrtl_use=no +glibcxx_cv_func__sincosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -80372,12 +81501,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6 - if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then + if test x$glibcxx_cv_func__sincosl_use = x"yes"; then -for ac_func in sqrtl +for ac_func in _sincosl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -80483,12 +81612,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5 -echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for finitel declaration" >&5 +echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finitel_use+set} != xset; then + if test "${glibcxx_cv_func_finitel_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -80514,7 +81649,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _sqrtl(0); + finitel(0); ; return 0; } @@ -80541,12 +81676,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sqrtl_use=yes + glibcxx_cv_func_finitel_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sqrtl_use=no +glibcxx_cv_func_finitel_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -80559,12 +81694,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6 - if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then + if test x$glibcxx_cv_func_finitel_use = x"yes"; then -for ac_func in _sqrtl +for ac_func in finitel do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -80670,18 +81805,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for sincosl declaration" >&5 -echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincosl_use+set} != xset; then - if test "${glibcxx_cv_func_sincosl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _finitel declaration" >&5 +echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finitel_use+set} != xset; then + if test "${glibcxx_cv_func__finitel_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -80700,10 +81829,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - sincosl(0, 0, 0); + _finitel(0); ; return 0; } @@ -80730,12 +81863,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincosl_use=yes + glibcxx_cv_func__finitel_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincosl_use=no +glibcxx_cv_func__finitel_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -80748,12 +81881,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6 - if test x$glibcxx_cv_func_sincosl_use = x"yes"; then + if test x$glibcxx_cv_func__finitel_use = x"yes"; then -for ac_func in sincosl +for ac_func in _finitel do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -80859,12 +81992,22 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _sincosl declaration" >&5 -echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincosl_use+set} != xset; then - if test "${glibcxx_cv_func__sincosl_use+set}" = set; then + + + + + LIBS="$ac_save_LIBS" + CXXFLAGS="$ac_save_CXXFLAGS" + + + + echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5 +echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -80886,7 +82029,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _sincosl(0, 0, 0); + __builtin_abs(0); ; return 0; } @@ -80913,12 +82056,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincosl_use=yes + glibcxx_cv_func___builtin_abs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincosl_use=no +glibcxx_cv_func___builtin_abs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -80931,20 +82074,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6 - - if test x$glibcxx_cv_func__sincosl_use = x"yes"; then - -for ac_func in _sincosl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6 + if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5 +echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -80955,47 +82095,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_abs(0); ; return 0; } @@ -81022,38 +82126,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_abs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_abs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done fi - fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6 + if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_ABS 1 +_ACEOF + fi + fi - echo "$as_me:$LINENO: checking for finitel declaration" >&5 -echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finitel_use+set} != xset; then - if test "${glibcxx_cv_func_finitel_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5 +echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81072,14 +82175,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - finitel(0); + __builtin_fabsf(0); ; return 0; } @@ -81106,12 +82205,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finitel_use=yes + glibcxx_cv_func___builtin_fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finitel_use=no +glibcxx_cv_func___builtin_fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -81124,20 +82223,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6 - - if test x$glibcxx_cv_func_finitel_use = x"yes"; then - -for ac_func in finitel -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6 + if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5 +echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -81148,47 +82244,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_fabsf(0); ; return 0; } @@ -81215,32 +82275,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_fabsf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_fabsf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6 + + if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSF 1 _ACEOF -fi -done + fi - else + fi - echo "$as_me:$LINENO: checking for _finitel declaration" >&5 -echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finitel_use+set} != xset; then - if test "${glibcxx_cv_func__finitel_use+set}" = set; then + + echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5 +echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81259,14 +82324,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _finitel(0); + __builtin_fabs(0); ; return 0; } @@ -81293,12 +82354,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finitel_use=yes + glibcxx_cv_func___builtin_fabs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finitel_use=no +glibcxx_cv_func___builtin_fabs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -81311,20 +82372,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6 - - if test x$glibcxx_cv_func__finitel_use = x"yes"; then - -for ac_func in _finitel -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6 + if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5 +echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -81335,47 +82393,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_fabs(0); ; return 0; } @@ -81402,42 +82424,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_fabs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_fabs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done fi - fi - - + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6 + if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABS 1 +_ACEOF - LIBS="$ac_save_LIBS" - CXXFLAGS="$ac_save_CXXFLAGS" + fi + fi - echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5 -echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5 +echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81459,7 +82476,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_abs(0); + __builtin_fabsl(0); ; return 0; } @@ -81486,12 +82503,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_abs_use=yes + glibcxx_cv_func___builtin_fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_abs_use=no +glibcxx_cv_func___builtin_fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -81504,13 +82521,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6 - if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5 -echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6 + if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5 +echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81529,7 +82546,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_abs(0); + __builtin_fabsl(0); ; return 0; } @@ -81556,12 +82573,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_abs_link=yes + glibcxx_cv_func___builtin_fabsl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_abs_link=no +glibcxx_cv_func___builtin_fabsl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -81569,13 +82586,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6 - if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_ABS 1 +#define HAVE___BUILTIN_FABSL 1 _ACEOF fi @@ -81583,10 +82600,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5 -echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5 +echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81608,7 +82625,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsf(0); + __builtin_labs(0); ; return 0; } @@ -81635,12 +82652,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsf_use=yes + glibcxx_cv_func___builtin_labs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsf_use=no +glibcxx_cv_func___builtin_labs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -81653,13 +82670,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6 - if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5 -echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6 + if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5 +echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81678,7 +82695,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsf(0); + __builtin_labs(0); ; return 0; } @@ -81705,12 +82722,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsf_link=yes + glibcxx_cv_func___builtin_labs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsf_link=no +glibcxx_cv_func___builtin_labs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -81718,13 +82735,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6 - if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSF 1 +#define HAVE___BUILTIN_LABS 1 _ACEOF fi @@ -81732,10 +82749,11 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5 -echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then + + echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81757,7 +82775,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabs(0); + __builtin_sqrtf(0); ; return 0; } @@ -81784,12 +82802,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabs_use=yes + glibcxx_cv_func___builtin_sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabs_use=no +glibcxx_cv_func___builtin_sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -81802,13 +82820,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6 - if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5 -echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81827,7 +82845,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabs(0); + __builtin_sqrtf(0); ; return 0; } @@ -81854,12 +82872,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabs_link=yes + glibcxx_cv_func___builtin_sqrtf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabs_link=no +glibcxx_cv_func___builtin_sqrtf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -81867,13 +82885,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6 - if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABS 1 +#define HAVE___BUILTIN_SQRTF 1 _ACEOF fi @@ -81881,10 +82899,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5 -echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81906,7 +82924,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsl(0); + __builtin_sqrt(0); ; return 0; } @@ -81933,12 +82951,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsl_use=yes + glibcxx_cv_func___builtin_sqrt_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsl_use=no +glibcxx_cv_func___builtin_sqrt_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -81951,13 +82969,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6 - if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5 -echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -81976,7 +82994,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsl(0); + __builtin_sqrt(0); ; return 0; } @@ -82003,12 +83021,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsl_link=yes + glibcxx_cv_func___builtin_sqrt_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsl_link=no +glibcxx_cv_func___builtin_sqrt_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82016,13 +83034,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6 - if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSL 1 +#define HAVE___BUILTIN_SQRT 1 _ACEOF fi @@ -82030,10 +83048,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5 -echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82055,7 +83073,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_labs(0); + __builtin_sqrtl(0); ; return 0; } @@ -82082,12 +83100,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_labs_use=yes + glibcxx_cv_func___builtin_sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_labs_use=no +glibcxx_cv_func___builtin_sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82100,13 +83118,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6 - if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5 -echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82125,7 +83143,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_labs(0); + __builtin_sqrtl(0); ; return 0; } @@ -82152,12 +83170,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_labs_link=yes + glibcxx_cv_func___builtin_sqrtl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_labs_link=no +glibcxx_cv_func___builtin_sqrtl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82165,13 +83183,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6 - if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_LABS 1 +#define HAVE___BUILTIN_SQRTL 1 _ACEOF fi @@ -82180,10 +83198,10 @@ _ACEOF - echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5 +echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82205,7 +83223,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtf(0); + __builtin_sinf(0); ; return 0; } @@ -82232,12 +83250,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtf_use=yes + glibcxx_cv_func___builtin_sinf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtf_use=no +glibcxx_cv_func___builtin_sinf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82250,13 +83268,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6 + if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5 +echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82275,7 +83293,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtf(0); + __builtin_sinf(0); ; return 0; } @@ -82302,12 +83320,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtf_link=yes + glibcxx_cv_func___builtin_sinf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtf_link=no +glibcxx_cv_func___builtin_sinf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82315,13 +83333,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTF 1 +#define HAVE___BUILTIN_SINF 1 _ACEOF fi @@ -82329,10 +83347,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5 +echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82354,7 +83372,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrt(0); + __builtin_sin(0); ; return 0; } @@ -82381,12 +83399,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrt_use=yes + glibcxx_cv_func___builtin_sin_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrt_use=no +glibcxx_cv_func___builtin_sin_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82399,13 +83417,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6 + if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5 +echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82424,7 +83442,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrt(0); + __builtin_sin(0); ; return 0; } @@ -82451,12 +83469,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrt_link=yes + glibcxx_cv_func___builtin_sin_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrt_link=no +glibcxx_cv_func___builtin_sin_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82464,13 +83482,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRT 1 +#define HAVE___BUILTIN_SIN 1 _ACEOF fi @@ -82478,10 +83496,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5 +echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82503,7 +83521,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtl(0); + __builtin_sinl(0); ; return 0; } @@ -82530,12 +83548,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtl_use=yes + glibcxx_cv_func___builtin_sinl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtl_use=no +glibcxx_cv_func___builtin_sinl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82548,13 +83566,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6 + if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5 +echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82573,7 +83591,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtl(0); + __builtin_sinl(0); ; return 0; } @@ -82600,12 +83618,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtl_link=yes + glibcxx_cv_func___builtin_sinl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtl_link=no +glibcxx_cv_func___builtin_sinl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82613,13 +83631,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTL 1 +#define HAVE___BUILTIN_SINL 1 _ACEOF fi @@ -82628,10 +83646,10 @@ _ACEOF - echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5 -echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5 +echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82653,7 +83671,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinf(0); + __builtin_cosf(0); ; return 0; } @@ -82680,12 +83698,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinf_use=yes + glibcxx_cv_func___builtin_cosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinf_use=no +glibcxx_cv_func___builtin_cosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82698,13 +83716,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6 - if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5 -echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6 + if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5 +echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82723,7 +83741,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinf(0); + __builtin_cosf(0); ; return 0; } @@ -82750,12 +83768,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinf_link=yes + glibcxx_cv_func___builtin_cosf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinf_link=no +glibcxx_cv_func___builtin_cosf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82763,13 +83781,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6 - if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINF 1 +#define HAVE___BUILTIN_COSF 1 _ACEOF fi @@ -82777,10 +83795,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5 -echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5 +echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82802,7 +83820,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sin(0); + __builtin_cos(0); ; return 0; } @@ -82829,12 +83847,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sin_use=yes + glibcxx_cv_func___builtin_cos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sin_use=no +glibcxx_cv_func___builtin_cos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82847,13 +83865,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6 - if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5 -echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6 + if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5 +echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82872,7 +83890,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sin(0); + __builtin_cos(0); ; return 0; } @@ -82899,12 +83917,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sin_link=yes + glibcxx_cv_func___builtin_cos_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sin_link=no +glibcxx_cv_func___builtin_cos_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -82912,13 +83930,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6 - if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SIN 1 +#define HAVE___BUILTIN_COS 1 _ACEOF fi @@ -82926,10 +83944,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5 -echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5 +echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -82951,7 +83969,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinl(0); + __builtin_cosl(0); ; return 0; } @@ -82978,12 +83996,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinl_use=yes + glibcxx_cv_func___builtin_cosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinl_use=no +glibcxx_cv_func___builtin_cosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -82996,13 +84014,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6 - if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5 -echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6 + if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5 +echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -83021,7 +84039,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinl(0); + __builtin_cosl(0); ; return 0; } @@ -83048,12 +84066,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinl_link=yes + glibcxx_cv_func___builtin_cosl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinl_link=no +glibcxx_cv_func___builtin_cosl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -83061,13 +84079,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6 - if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINL 1 +#define HAVE___BUILTIN_COSL 1 _ACEOF fi @@ -83076,87 +84094,199 @@ _ACEOF - echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5 -echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then + +echo "$as_me:$LINENO: checking for main in -lm" >&5 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_m_main=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - ac_ext=cc -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_cv_lib_m_main=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6 +if test $ac_cv_lib_m_main = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF - cat >conftest.$ac_ext <<_ACEOF + LIBS="-lm $LIBS" + +fi + + +for ac_func in copysignf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cosf(0); +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosf_use=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosf_use=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi +done - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6 - if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5 -echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then + + +for ac_func in __signbit +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -83167,11 +84297,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cosf(0); +return f != $ac_func; ; return 0; } @@ -83198,114 +84364,150 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosf_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosf_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6 - - if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSF 1 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi +else + LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done - fi - echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5 -echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then +for ac_func in __signbitf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cos(0); +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cos_use=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cos_use=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi +done - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6 - if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5 -echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then + + if test x$ac_cv_func_copysignl = x"yes"; then + +for ac_func in __signbitl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -83316,11 +84518,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cos(0); +return f != $ac_func; ; return 0; } @@ -83347,37 +84585,46 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cos_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cos_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" fi +done - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6 + fi - if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then + # Used in libmath/Makefile.am. + if test -n "$LIBMATHOBJS"; then + need_libmath=yes + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COS 1 -_ACEOF - fi - fi + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-fno-builtin -D_GNU_SOURCE' - echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5 -echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then + echo "$as_me:$LINENO: checking for strtold declaration" >&5 +echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_strtold_use+set} != xset; then + if test "${glibcxx_cv_func_strtold_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -83395,11 +84642,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include int main () { - __builtin_cosl(0); + strtold(0, 0); ; return 0; } @@ -83426,12 +84673,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosl_use=yes + glibcxx_cv_func_strtold_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosl_use=no +glibcxx_cv_func_strtold_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -83444,17 +84691,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6 - if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5 -echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6 + if test x$glibcxx_cv_func_strtold_use = x"yes"; then + +for ac_func in strtold +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -83465,11 +84714,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cosl(0); +return f != $ac_func; ; return 0; } @@ -83496,109 +84781,107 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosl_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosl_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6 - - if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSL 1 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi +fi +done fi -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then + + echo "$as_me:$LINENO: checking for strtof declaration" >&5 +echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_strtof_use+set} != xset; then + if test "${glibcxx_cv_func_strtof_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - - +#include int main () { -main (); + strtof(0, 0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + glibcxx_cv_func_strtof_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +glibcxx_cv_func_strtof_use=no fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - LIBS="-lm $LIBS" fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6 + if test x$glibcxx_cv_func_strtof_use = x"yes"; then -for ac_func in copysignf +for ac_func in strtof do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -83701,73 +84984,195 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi done + fi -for ac_func in __signbit + + + + CXXFLAGS="$ac_save_CXXFLAGS" + + + # For showmanyc_helper(). + + +for ac_header in sys/ioctl.h sys/filio.h do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 -#ifdef __STDC__ -# include -#else -# include -#endif +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -#undef $ac_func +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif +fi + +done + + + echo "$as_me:$LINENO: checking for poll" >&5 +echo $ECHO_N "checking for poll... $ECHO_C" >&6 + if test "${glibcxx_cv_POLL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include int main () { -return f != $ac_func; +struct pollfd pfd[1]; + pfd[0].events = POLLIN; + poll(pfd, 1, 0); ; return 0; } @@ -83794,39 +85199,36 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_POLL=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_POLL=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbit.lo" fi -done + if test $glibcxx_cv_POLL = yes; then +cat >>confdefs.h <<\_ACEOF +#define HAVE_POLL 1 +_ACEOF -for ac_func in __signbitf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_POLL" >&5 +echo "${ECHO_T}$glibcxx_cv_POLL" >&6 + + + echo "$as_me:$LINENO: checking for S_ISREG or S_IFREG" >&5 +echo $ECHO_N "checking for S_ISREG or S_IFREG... $ECHO_C" >&6 + if test "${glibcxx_cv_S_ISREG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -83837,47 +85239,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +struct stat buffer; + fstat(0, &buffer); + S_ISREG(buffer.st_mode); ; return 0; } @@ -83904,40 +85272,23 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_S_ISREG=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_S_ISREG=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi -done - - if test x$ac_cv_func_copysignl = x"yes"; then - -for ac_func in __signbitl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + if test "${glibcxx_cv_S_IFREG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -83948,47 +85299,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +struct stat buffer; + fstat(0, &buffer); + S_IFREG & buffer.st_mode; ; return 0; } @@ -84015,71 +85332,63 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_S_IFREG=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_S_IFREG=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" fi -done - fi + res=no + if test $glibcxx_cv_S_ISREG = yes; then - # Used in libmath/Makefile.am. - if test -n "$LIBMATHOBJS"; then - need_libmath=yes - fi +cat >>confdefs.h <<\_ACEOF +#define HAVE_S_ISREG 1 +_ACEOF + res=S_ISREG + elif test $glibcxx_cv_S_IFREG = yes; then +cat >>confdefs.h <<\_ACEOF +#define HAVE_S_IFREG 1 +_ACEOF - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS='-fno-builtin -D_GNU_SOURCE' + res=S_IFREG + fi + echo "$as_me:$LINENO: result: $res" >&5 +echo "${ECHO_T}$res" >&6 - echo "$as_me:$LINENO: checking for strtold declaration" >&5 -echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_strtold_use+set} != xset; then - if test "${glibcxx_cv_func_strtold_use+set}" = set; then + # For xsputn_2(). + +for ac_header in sys/uio.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -int -main () -{ - strtold(0, 0); - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -84090,7 +85399,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -84103,37 +85412,117 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_strtold_use=yes + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -glibcxx_cv_func_strtold_use=no + eval "$as_ac_Header=\$ac_header_preproc" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6 - if test x$glibcxx_cv_func_strtold_use = x"yes"; then +done -for ac_func in strtold -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + + echo "$as_me:$LINENO: checking for writev" >&5 +echo $ECHO_N "checking for writev... $ECHO_C" >&6 + if test "${glibcxx_cv_WRITEV+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -84144,47 +85533,12 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +struct iovec iov[2]; + writev(0, iov, 0); ; return 0; } @@ -84211,61 +85565,82 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_WRITEV=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_WRITEV=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done + + if test $glibcxx_cv_WRITEV = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_WRITEV 1 +_ACEOF fi + echo "$as_me:$LINENO: result: $glibcxx_cv_WRITEV" >&5 +echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 + cat >>confdefs.h <<\_ACEOF +#define HAVE_LC_MESSAGES 1 +_ACEOF + ;; + *djgpp) - echo "$as_me:$LINENO: checking for strtof declaration" >&5 -echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_strtof_use+set} != xset; then - if test "${glibcxx_cv_func_strtof_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=cc -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 - cat >conftest.$ac_ext <<_ACEOF + + + + + + + + + + + + + + + +for ac_header in float.h ieeefp.h inttypes.h locale.h \ + memory.h stdint.h stdlib.h strings.h string.h unistd.h \ + wchar.h wctype.h machine/endian.h sys/ioctl.h sys/param.h \ + sys/resource.h sys/stat.h sys/time.h sys/types.h sys/uio.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -int -main () -{ - strtof(0, 0); - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -84276,7 +85651,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -84289,147 +85664,241 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_strtof_use=yes + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_strtof_use=no +ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6 - if test x$glibcxx_cv_func_strtof_use = x"yes"; then +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 -for ac_func in strtof -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} +#include <$ac_header> _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" + ac_header_preproc=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi + done - fi + # GLIBCXX_CHECK_MATH_SUPPORT + cat >>confdefs.h <<\_ACEOF +#define HAVE_LIBM 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINF 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNAN 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITE 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGN 1 +_ACEOF - CXXFLAGS="$ac_save_CXXFLAGS" + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINCOS 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOT 1 +_ACEOF - # For showmanyc_helper(). + # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_ABS 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSF 1 +_ACEOF -for ac_header in sys/ioctl.h sys/filio.h + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_LABS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SQRTF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SQRT 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SQRTL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SIN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SINL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_COSF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_COS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_COSL 1 +_ACEOF + + # GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT + # GLIBCXX_CHECK_STDLIB_SUPPORT + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGNF 1 +_ACEOF + + # GLIBCXX_CHECK_S_ISREG_OR_S_IFREG + cat >>confdefs.h <<\_ACEOF +#define HAVE_S_ISREG 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_S_IFREG 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_WRITEV 1 +_ACEOF + + ;; + + *-freebsd*) + + + + + + + + + + + + + + + + +for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \ + machine/endian.h machine/param.h sys/machine.h sys/types.h \ + fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \ + sys/time.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -84578,13 +86047,76 @@ fi done + SECTION_FLAGS='-ffunction-sections -fdata-sections' + + + # If we're not using GNU ld, then there's no point in even trying these + # tests. Check for that first. We should have already tested for gld + # by now (in libtool), but require it now just to be safe... + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' + + + + # The name set by libtool depends on the version of libtool. Shame on us + # for depending on an impl detail, but c'est la vie. Older versions used + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't + # set (hence we're using an older libtool), then set it. + if test x${with_gnu_ld+set} != xset; then + if test x${ac_cv_prog_gnu_ld+set} != xset; then + # We got through "ac_require(ac_prog_ld)" and still not set? Huh? + with_gnu_ld=no + else + with_gnu_ld=$ac_cv_prog_gnu_ld + fi + fi + + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + glibcxx_ld_is_gold=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld version" >&5 +echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 +echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 + fi + + # Set --gc-sections. + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && + test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then + # Sufficiently young GNU ld it is! Joy and bunny rabbits! + # NB: This flag only works reliably after 2.16.1. Configure tests + # for this are difficult, so hard wire a value that should work. - echo "$as_me:$LINENO: checking for poll" >&5 -echo $ECHO_N "checking for poll... $ECHO_C" >&6 - if test "${glibcxx_cv_POLL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-Wl,--gc-sections' + # Check for -Wl,--gc-sections + echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 +echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} @@ -84596,13 +86128,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + int one(void) { return 1; } + int two(void) { return 2; } + int main () { -struct pollfd pfd[1]; - pfd[0].events = POLLIN; - poll(pfd, 1, 0); + two(); ; return 0; } @@ -84629,36 +86161,73 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_POLL=yes + ac_gcsections=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_POLL=no +ac_gcsections=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + if test "$ac_gcsections" = "yes"; then + rm -f conftest.c + touch conftest.c + if $CC -c conftest.c; then + if $LD --gc-sections -o conftest conftest.o 2>&1 | \ + grep "Warning: gc-sections option ignored" > /dev/null; then + ac_gcsections=no + fi + fi + rm -f conftest.c conftest.o conftest + fi + if test "$ac_gcsections" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$as_me:$LINENO: result: $ac_gcsections" >&5 +echo "${ECHO_T}$ac_gcsections" >&6 -fi - - if test $glibcxx_cv_POLL = yes; then + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE_POLL 1 -_ACEOF + # Set -z,relro. + # Note this is only for shared objects. + ac_ld_relro=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 +echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 + cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` + if test -n "$cxx_z_relo"; then + OPT_LDFLAGS="-Wl,-z,relro" + ac_ld_relro=yes + fi + echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 +echo "${ECHO_T}$ac_ld_relro" >&6 + fi + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" fi - echo "$as_me:$LINENO: result: $glibcxx_cv_POLL" >&5 -echo "${ECHO_T}$glibcxx_cv_POLL" >&6 - echo "$as_me:$LINENO: checking for S_ISREG or S_IFREG" >&5 -echo $ECHO_N "checking for S_ISREG or S_IFREG... $ECHO_C" >&6 - if test "${glibcxx_cv_S_ISREG+set}" = set; then + + + + +echo "$as_me:$LINENO: checking for main in -lm" >&5 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -84669,13 +86238,12 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + + int main () { -struct stat buffer; - fstat(0, &buffer); - S_ISREG(buffer.st_mode); +main (); ; return 0; } @@ -84702,23 +86270,38 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_S_ISREG=yes + ac_cv_lib_m_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_S_ISREG=no +ac_cv_lib_m_main=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6 +if test $ac_cv_lib_m_main = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" fi - if test "${glibcxx_cv_S_IFREG+set}" = set; then + +for ac_func in copysignf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -84729,13 +86312,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -struct stat buffer; - fstat(0, &buffer); - S_IFREG & buffer.st_mode; +return f != $ac_func; ; return 0; } @@ -84762,67 +86379,97 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_S_IFREG=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_S_IFREG=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi - - res=no - if test $glibcxx_cv_S_ISREG = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_S_ISREG 1 -_ACEOF - - res=S_ISREG - elif test $glibcxx_cv_S_IFREG = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_S_IFREG 1 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - res=S_IFREG - fi - echo "$as_me:$LINENO: result: $res" >&5 -echo "${ECHO_T}$res" >&6 +else + LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done - # For xsputn_2(). -for ac_header in sys/uio.h +for ac_func in __signbit do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -84836,123 +86483,156 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_header_compiler=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +else + LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done + + + +for ac_func in __signbitf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <$ac_header> +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" +eval "$as_ac_var=no" fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi - done - echo "$as_me:$LINENO: checking for writev" >&5 -echo $ECHO_N "checking for writev... $ECHO_C" >&6 - if test "${glibcxx_cv_WRITEV+set}" = set; then + if test x$ac_cv_func_copysignl = x"yes"; then + +for ac_func in __signbitl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -84963,12 +86643,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -struct iovec iov[2]; - writev(0, iov, 0); +return f != $ac_func; ; return 0; } @@ -84995,268 +86710,70 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_WRITEV=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_WRITEV=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - if test $glibcxx_cv_WRITEV = yes; then +else + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done -cat >>confdefs.h <<\_ACEOF -#define HAVE_WRITEV 1 -_ACEOF + fi + # Used in libmath/Makefile.am. + if test -n "$LIBMATHOBJS"; then + need_libmath=yes fi - echo "$as_me:$LINENO: result: $glibcxx_cv_WRITEV" >&5 -echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + cat >>confdefs.h <<\_ACEOF +#define HAVE_SETENV 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -sigjmp_buf env; - while (! sigsetjmp (env, 1)) - siglongjmp (env, 1); - ; - return 0; -} + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGN 1 _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGSETJMP 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGNF 1 _ACEOF -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 +#define HAVE_FINITEF 1 _ACEOF - ;; - - *djgpp) - - - - - - - - - - - - - - - - - - - - -for ac_header in float.h ieeefp.h inttypes.h locale.h \ - memory.h stdint.h stdlib.h strings.h string.h unistd.h \ - wchar.h wctype.h machine/endian.h sys/ioctl.h sys/param.h \ - sys/resource.h sys/stat.h sys/time.h sys/types.h sys/uio.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITE 1 _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> + cat >>confdefs.h <<\_ACEOF +#define HAVE_FREXPF 1 _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOT 1 _ACEOF -fi - -done - - # GLIBCXX_CHECK_MATH_SUPPORT cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBM 1 +#define HAVE_HYPOTF 1 _ACEOF cat >>confdefs.h <<\_ACEOF @@ -85268,108 +86785,122 @@ _ACEOF _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE 1 +#define HAVE_ISNANF 1 _ACEOF + cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 +#define HAVE_ACOSF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_SINCOS 1 +#define HAVE_ASINF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOT 1 +#define HAVE_ATAN2F 1 _ACEOF - # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_ABS 1 +#define HAVE_ATANF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSF 1 +#define HAVE_CEILF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABS 1 +#define HAVE_COPYSIGN 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSL 1 +#define HAVE_COPYSIGNF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_LABS 1 +#define HAVE_COSF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTF 1 +#define HAVE_COSHF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRT 1 +#define HAVE_EXPF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTL 1 +#define HAVE_FABSF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINF 1 +#define HAVE_FLOORF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SIN 1 +#define HAVE_FMODF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINL 1 +#define HAVE_FREXPF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSF 1 +#define HAVE_LDEXPF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COS 1 +#define HAVE_LOG10F 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSL 1 +#define HAVE_LOGF 1 _ACEOF - # GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT - # GLIBCXX_CHECK_STDLIB_SUPPORT cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 +#define HAVE_MODFF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNF 1 +#define HAVE_POWF 1 _ACEOF - # GLIBCXX_CHECK_S_ISREG_OR_S_IFREG cat >>confdefs.h <<\_ACEOF -#define HAVE_S_ISREG 1 +#define HAVE_SINF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_S_IFREG 1 +#define HAVE_SINHF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_WRITEV 1 +#define HAVE_SQRTF 1 _ACEOF - ;; + cat >>confdefs.h <<\_ACEOF +#define HAVE_TANF 1 +_ACEOF - *-freebsd*) + cat >>confdefs.h <<\_ACEOF +#define HAVE_TANHF 1 +_ACEOF + if test x"long_double_math_on_this_cpu" = x"yes"; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITEL 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINFL 1 +_ACEOF + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNANL 1 +_ACEOF + fi + ;; + *-hpux*) @@ -85384,8 +86915,7 @@ _ACEOF for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \ machine/endian.h machine/param.h sys/machine.h sys/types.h \ - fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \ - sys/time.h unistd.h + fp.h locale.h float.h inttypes.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -85562,12 +87092,16 @@ done # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + glibcxx_ld_is_gold=no if test x"$with_gnu_ld" = x"yes"; then echo "$as_me:$LINENO: checking for ld version" >&5 echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` glibcxx_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -85576,10 +87110,19 @@ echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then # Sufficiently young GNU ld it is! Joy and bunny rabbits! # NB: This flag only works reliably after 2.16.1. Configure tests # for this are difficult, so hard wire a value that should work. @@ -86215,22 +87758,6 @@ done cat >>confdefs.h <<\_ACEOF -#define HAVE_LC_MESSAGES 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SETENV 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGSETJMP 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF #define HAVE_COPYSIGN 1 _ACEOF @@ -86239,14 +87766,6 @@ _ACEOF _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF #define HAVE_FREXPF 1 _ACEOF @@ -86254,139 +87773,41 @@ _ACEOF #define HAVE_HYPOT 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOTF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANF 1 -_ACEOF - - - cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ACOSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ASINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATAN2F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATANF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_CEILF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_EXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FABSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FLOORF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FMODF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LDEXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOGF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_MODFF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_POWF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SQRTF 1 + case "$target" in + *-hpux10*) + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITE 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANF 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITEF 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANHF 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINF 1 _ACEOF - if test x"long_double_math_on_this_cpu" = x"yes"; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEL 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINFF 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINFL 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNAN 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANL 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNANF 1 _ACEOF - fi + ;; + esac ;; - *-hpux*) + *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) + + + + + @@ -86401,7 +87822,8 @@ _ACEOF for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \ machine/endian.h machine/param.h sys/machine.h sys/types.h \ - fp.h locale.h float.h inttypes.h + fp.h float.h endian.h inttypes.h locale.h float.h stdint.h \ + sys/ipc.h sys/sem.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -86553,6 +87975,98 @@ done SECTION_FLAGS='-ffunction-sections -fdata-sections' + # All these tests are for C++; save the language and the compiler flags. + # The CXXFLAGS thing is suspicious, but based on similar bits previously + # found in GLIBCXX_CONFIGURE. + + + ac_ext=cc +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_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + + # Check for maintainer-mode bits. + if test x"$USE_MAINTAINER_MODE" = xno; then + WERROR='' + else + WERROR='-Werror' + fi + + # Check for -ffunction-sections -fdata-sections + echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 +echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6 + CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections' + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +int foo; void bar() { }; +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_fdsections=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_fdsections=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" + else + # this is the suspicious part + CXXFLAGS='' + fi + if test x"$ac_fdsections" = x"yes"; then + SECTION_FLAGS='-ffunction-sections -fdata-sections' + fi + echo "$as_me:$LINENO: result: $ac_fdsections" >&5 +echo "${ECHO_T}$ac_fdsections" >&6 + + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + # If we're not using GNU ld, then there's no point in even trying these # tests. Check for that first. We should have already tested for gld # by now (in libtool), but require it now just to be safe... @@ -86578,12 +88092,16 @@ done # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + glibcxx_ld_is_gold=no if test x"$with_gnu_ld" = x"yes"; then echo "$as_me:$LINENO: checking for ld version" >&5 echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` glibcxx_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -86592,10 +88110,19 @@ echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then # Sufficiently young GNU ld it is! Joy and bunny rabbits! # NB: This flag only works reliably after 2.16.1. Configure tests # for this are difficult, so hard wire a value that should work. @@ -86709,10 +88236,13 @@ echo "${ECHO_T}$ac_ld_relro" >&6 + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-fno-builtin -D_GNU_SOURCE' -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then + echo "$as_me:$LINENO: checking for sin in -lm" >&5 +echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_sin+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS @@ -86729,11 +88259,17 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sin (); int main () { -main (); +sin (); ; return 0; } @@ -86760,30 +88296,295 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + ac_cv_lib_m_sin=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no +ac_cv_lib_m_sin=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then +echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 +echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 +if test $ac_cv_lib_m_sin = yes; then + libm="-lm" +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libm" + + + + echo "$as_me:$LINENO: checking for isinf declaration" >&5 +echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinf_use+set} != xset; then + if test "${glibcxx_cv_func_isinf_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + +int +main () +{ + isinf(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_isinf_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_isinf_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6 + + if test x$glibcxx_cv_func_isinf_use = x"yes"; then + +for ac_func in isinf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - LIBS="-lm $LIBS" +fi +done + + else + + echo "$as_me:$LINENO: checking for _isinf declaration" >&5 +echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinf_use+set} != xset; then + if test "${glibcxx_cv_func__isinf_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + +int +main () +{ + _isinf(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func__isinf_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func__isinf_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6 -for ac_func in copysignf + if test x$glibcxx_cv_func__isinf_use = x"yes"; then + +for ac_func in _isinf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -86879,21 +88680,104 @@ fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + fi + fi + + + + + + + echo "$as_me:$LINENO: checking for isnan declaration" >&5 +echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnan_use+set} != xset; then + if test "${glibcxx_cv_func_isnan_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + +int +main () +{ + isnan(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_isnan_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_isnan_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + -else - LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi -done + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6 + if test x$glibcxx_cv_func_isnan_use = x"yes"; then -for ac_func in __signbit +for ac_func in isnan do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -86996,125 +88880,91 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbit.lo" fi done + else - -for ac_func in __signbitf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: checking for _isnan declaration" >&5 +echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnan_use+set} != xset; then + if test "${glibcxx_cv_func__isnan_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif +#include + #ifdef HAVE_IEEEFP_H + #include + #endif int main () { -return f != $ac_func; + _isnan(0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func__isnan_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +glibcxx_cv_func__isnan_use=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + -else - LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi -done + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6 - if test x$ac_cv_func_copysignl = x"yes"; then + if test x$glibcxx_cv_func__isnan_use = x"yes"; then -for ac_func in __signbitl +for ac_func in _isnan do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -87217,274 +89067,47 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" fi done + fi fi - # Used in libmath/Makefile.am. - if test -n "$LIBMATHOBJS"; then - need_libmath=yes - fi - - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOT 1 -_ACEOF - - case "$target" in - *-hpux10*) - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINFF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANF 1 -_ACEOF - - ;; - esac - ;; - *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) - - - - - - - - - - - - - - - -for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \ - machine/endian.h machine/param.h sys/machine.h sys/types.h \ - fp.h float.h endian.h inttypes.h locale.h float.h stdint.h \ - sys/ipc.h sys/sem.h gconf.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for finite declaration" >&5 +echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finite_use+set} != xset; then + if test "${glibcxx_cv_func_finite_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - SECTION_FLAGS='-ffunction-sections -fdata-sections' - # All these tests are for C++; save the language and the compiler flags. - # The CXXFLAGS thing is suspicious, but based on similar bits previously - # found in GLIBCXX_CONFIGURE. - - ac_ext=cc + ac_ext=cc 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_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - - # Check for maintainer-mode bits. - if test x"$USE_MAINTAINER_MODE" = xno; then - WERROR='' - else - WERROR='-Werror' - fi - - # Check for -ffunction-sections -fdata-sections - echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 -echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6 - CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections' - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -int foo; void bar() { }; +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - + finite(0); ; return 0; } @@ -87511,91 +89134,38 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_fdsections=yes + glibcxx_cv_func_finite_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_fdsections=no +glibcxx_cv_func_finite_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" - else - # this is the suspicious part - CXXFLAGS='' - fi - if test x"$ac_fdsections" = x"yes"; then - SECTION_FLAGS='-ffunction-sections -fdata-sections' - fi - echo "$as_me:$LINENO: result: $ac_fdsections" >&5 -echo "${ECHO_T}$ac_fdsections" >&6 - - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu +fi - - - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - - - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld version" >&5 -echo $ECHO_N "checking for ld version... $ECHO_C" >&6 - - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - - glibcxx_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` - echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 -echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6 - # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && - test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - - # Sufficiently young GNU ld it is! Joy and bunny rabbits! - # NB: This flag only works reliably after 2.16.1. Configure tests - # for this are difficult, so hard wire a value that should work. - - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-Wl,--gc-sections' + if test x$glibcxx_cv_func_finite_use = x"yes"; then - # Check for -Wl,--gc-sections - echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 -echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 - if test x$gcc_no_link = xyes; then +for ac_func in finite +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -87606,13 +89176,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - int one(void) { return 1; } - int two(void) { return 2; } +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif int main () { - two(); +return f != $ac_func; ; return 0; } @@ -87639,76 +89243,116 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_gcsections=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_gcsections=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - if test "$ac_gcsections" = "yes"; then - rm -f conftest.c - touch conftest.c - if $CC -c conftest.c; then - if $LD --gc-sections -o conftest conftest.o 2>&1 | \ - grep "Warning: gc-sections option ignored" > /dev/null; then - ac_gcsections=no - fi - fi - rm -f conftest.c conftest.o conftest - fi - if test "$ac_gcsections" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - echo "$as_me:$LINENO: result: $ac_gcsections" >&5 -echo "${ECHO_T}$ac_gcsections" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi - fi +fi +done - # Set -z,relro. - # Note this is only for shared objects. - ac_ld_relro=no - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 -echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 - cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` - if test -n "$cxx_z_relo"; then - OPT_LDFLAGS="-Wl,-z,relro" - ac_ld_relro=yes - fi - echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 -echo "${ECHO_T}$ac_ld_relro" >&6 - fi + else - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" - fi + echo "$as_me:$LINENO: checking for _finite declaration" >&5 +echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finite_use+set} != xset; then + if test "${glibcxx_cv_func__finite_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + #ifdef HAVE_IEEEFP_H + #include + #endif + +int +main () +{ + _finite(0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func__finite_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +glibcxx_cv_func__finite_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6 - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS='-fno-builtin -D_GNU_SOURCE' + if test x$glibcxx_cv_func__finite_use = x"yes"; then - echo "$as_me:$LINENO: checking for sin in -lm" >&5 -echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_sin+set}" = set; then +for ac_func in _finite +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -87719,18 +89363,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" +{ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char sin (); +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -sin (); +return f != $ac_func; ; return 0; } @@ -87757,32 +89430,38 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_sin=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_sin=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 -echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 -if test $ac_cv_lib_m_sin = yes; then - libm="-lm" +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + fi +done - ac_save_LIBS="$LIBS" - LIBS="$LIBS $libm" + fi + fi - echo "$as_me:$LINENO: checking for isinf declaration" >&5 -echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinf_use+set} != xset; then - if test "${glibcxx_cv_func_isinf_use+set}" = set; then + + + + echo "$as_me:$LINENO: checking for copysign declaration" >&5 +echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_copysign_use+set} != xset; then + if test "${glibcxx_cv_func_copysign_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -87801,14 +89480,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isinf(0); + copysign(0, 0); ; return 0; } @@ -87835,12 +89510,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinf_use=yes + glibcxx_cv_func_copysign_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinf_use=no +glibcxx_cv_func_copysign_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -87853,12 +89528,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6 - if test x$glibcxx_cv_func_isinf_use = x"yes"; then + if test x$glibcxx_cv_func_copysign_use = x"yes"; then -for ac_func in isinf +for ac_func in copysign do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -87966,10 +89641,10 @@ done else - echo "$as_me:$LINENO: checking for _isinf declaration" >&5 -echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinf_use+set} != xset; then - if test "${glibcxx_cv_func__isinf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _copysign declaration" >&5 +echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__copysign_use+set} != xset; then + if test "${glibcxx_cv_func__copysign_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -87988,14 +89663,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isinf(0); + _copysign(0, 0); ; return 0; } @@ -88022,12 +89693,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinf_use=yes + glibcxx_cv_func__copysign_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinf_use=no +glibcxx_cv_func__copysign_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -88040,12 +89711,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6 - if test x$glibcxx_cv_func__isinf_use = x"yes"; then + if test x$glibcxx_cv_func__copysign_use = x"yes"; then -for ac_func in _isinf +for ac_func in _copysign do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -88159,10 +89830,10 @@ done - echo "$as_me:$LINENO: checking for isnan declaration" >&5 -echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnan_use+set} != xset; then - if test "${glibcxx_cv_func_isnan_use+set}" = set; then + echo "$as_me:$LINENO: checking for sincos declaration" >&5 +echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincos_use+set} != xset; then + if test "${glibcxx_cv_func_sincos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -88181,14 +89852,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isnan(0); + sincos(0, 0, 0); ; return 0; } @@ -88215,12 +89882,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnan_use=yes + glibcxx_cv_func_sincos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnan_use=no +glibcxx_cv_func_sincos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -88233,12 +89900,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6 - if test x$glibcxx_cv_func_isnan_use = x"yes"; then + if test x$glibcxx_cv_func_sincos_use = x"yes"; then -for ac_func in isnan +for ac_func in sincos do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -88346,10 +90013,10 @@ done else - echo "$as_me:$LINENO: checking for _isnan declaration" >&5 -echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnan_use+set} != xset; then - if test "${glibcxx_cv_func__isnan_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincos declaration" >&5 +echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincos_use+set} != xset; then + if test "${glibcxx_cv_func__sincos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -88368,14 +90035,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isnan(0); + _sincos(0, 0, 0); ; return 0; } @@ -88402,12 +90065,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnan_use=yes + glibcxx_cv_func__sincos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnan_use=no +glibcxx_cv_func__sincos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -88420,12 +90083,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6 - if test x$glibcxx_cv_func__isnan_use = x"yes"; then + if test x$glibcxx_cv_func__sincos_use = x"yes"; then -for ac_func in _isnan +for ac_func in _sincos do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -88539,10 +90202,10 @@ done - echo "$as_me:$LINENO: checking for finite declaration" >&5 -echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finite_use+set} != xset; then - if test "${glibcxx_cv_func_finite_use+set}" = set; then + echo "$as_me:$LINENO: checking for fpclass declaration" >&5 +echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fpclass_use+set} != xset; then + if test "${glibcxx_cv_func_fpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -88568,7 +90231,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - finite(0); + fpclass(0); ; return 0; } @@ -88595,12 +90258,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finite_use=yes + glibcxx_cv_func_fpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finite_use=no +glibcxx_cv_func_fpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -88613,12 +90276,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6 - if test x$glibcxx_cv_func_finite_use = x"yes"; then + if test x$glibcxx_cv_func_fpclass_use = x"yes"; then -for ac_func in finite +for ac_func in fpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -88726,10 +90389,10 @@ done else - echo "$as_me:$LINENO: checking for _finite declaration" >&5 -echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finite_use+set} != xset; then - if test "${glibcxx_cv_func__finite_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fpclass declaration" >&5 +echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fpclass_use+set} != xset; then + if test "${glibcxx_cv_func__fpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -88755,196 +90418,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _finite(0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - glibcxx_cv_func__finite_use=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -glibcxx_cv_func__finite_use=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6 - - if test x$glibcxx_cv_func__finite_use = x"yes"; then - -for ac_func in _finite -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - fi - fi - - - - - - - echo "$as_me:$LINENO: checking for copysign declaration" >&5 -echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_copysign_use+set} != xset; then - if test "${glibcxx_cv_func_copysign_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ - copysign(0, 0); + _fpclass(0); ; return 0; } @@ -88971,12 +90445,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_copysign_use=yes + glibcxx_cv_func__fpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_copysign_use=no +glibcxx_cv_func__fpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -88989,12 +90463,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6 - if test x$glibcxx_cv_func_copysign_use = x"yes"; then + if test x$glibcxx_cv_func__fpclass_use = x"yes"; then -for ac_func in copysign +for ac_func in _fpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -89100,12 +90574,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _copysign declaration" >&5 -echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__copysign_use+set} != xset; then - if test "${glibcxx_cv_func__copysign_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for qfpclass declaration" >&5 +echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then + if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -89124,10 +90604,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _copysign(0, 0); + qfpclass(0); ; return 0; } @@ -89154,12 +90638,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__copysign_use=yes + glibcxx_cv_func_qfpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__copysign_use=no +glibcxx_cv_func_qfpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -89172,12 +90656,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6 - if test x$glibcxx_cv_func__copysign_use = x"yes"; then + if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then -for ac_func in _copysign +for ac_func in qfpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -89283,18 +90767,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for sincos declaration" >&5 -echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincos_use+set} != xset; then - if test "${glibcxx_cv_func_sincos_use+set}" = set; then + echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5 +echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then + if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -89313,10 +90791,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - sincos(0, 0, 0); + _qfpclass(0); ; return 0; } @@ -89343,12 +90825,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincos_use=yes + glibcxx_cv_func__qfpclass_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincos_use=no +glibcxx_cv_func__qfpclass_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -89361,12 +90843,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6 - if test x$glibcxx_cv_func_sincos_use = x"yes"; then + if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then -for ac_func in sincos +for ac_func in _qfpclass do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -89472,12 +90954,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _sincos declaration" >&5 -echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincos_use+set} != xset; then - if test "${glibcxx_cv_func__sincos_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for hypot declaration" >&5 +echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypot_use+set} != xset; then + if test "${glibcxx_cv_func_hypot_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -89499,7 +90987,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _sincos(0, 0, 0); + hypot(0, 0); ; return 0; } @@ -89526,12 +91014,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincos_use=yes + glibcxx_cv_func_hypot_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincos_use=no +glibcxx_cv_func_hypot_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -89544,12 +91032,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6 - if test x$glibcxx_cv_func__sincos_use = x"yes"; then + if test x$glibcxx_cv_func_hypot_use = x"yes"; then -for ac_func in _sincos +for ac_func in hypot do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -89655,18 +91143,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for fpclass declaration" >&5 -echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fpclass_use+set} != xset; then - if test "${glibcxx_cv_func_fpclass_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypot declaration" >&5 +echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypot_use+set} != xset; then + if test "${glibcxx_cv_func__hypot_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -89685,14 +91167,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - fpclass(0); + _hypot(0, 0); ; return 0; } @@ -89719,12 +91197,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fpclass_use=yes + glibcxx_cv_func__hypot_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fpclass_use=no +glibcxx_cv_func__hypot_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -89737,12 +91215,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6 - if test x$glibcxx_cv_func_fpclass_use = x"yes"; then + if test x$glibcxx_cv_func__hypot_use = x"yes"; then -for ac_func in fpclass +for ac_func in _hypot do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -89848,38 +91326,39 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _fpclass declaration" >&5 -echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fpclass_use+set} != xset; then - if test "${glibcxx_cv_func__fpclass_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for float trig functions" >&5 +echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_float_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _fpclass(0); +acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); ; return 0; } @@ -89906,30 +91385,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fpclass_use=yes + glibcxx_cv_func_float_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fpclass_use=no +glibcxx_cv_func_float_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6 + if test x$glibcxx_cv_func_float_trig_use = x"yes"; then - if test x$glibcxx_cv_func__fpclass_use = x"yes"; then -for ac_func in _fpclass + + + + + + + +for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -90035,18 +91519,10 @@ _ACEOF fi done - fi - fi - - - - - - - echo "$as_me:$LINENO: checking for qfpclass declaration" >&5 -echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then - if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then + else + echo "$as_me:$LINENO: checking for _float trig functions" >&5 +echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__float_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -90065,14 +91541,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - qfpclass(0); +_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); ; return 0; } @@ -90099,12 +91571,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_qfpclass_use=yes + glibcxx_cv_func__float_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_qfpclass_use=no +glibcxx_cv_func__float_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -90113,16 +91585,21 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6 + if test x$glibcxx_cv_func__float_trig_use = x"yes"; then - if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then -for ac_func in qfpclass + + + + + + + +for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -90228,38 +91705,47 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5 -echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then - if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then + + + + + + + + + + + + + + echo "$as_me:$LINENO: checking for float round functions" >&5 +echo $ECHO_N "checking for float round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_float_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _qfpclass(0); +ceilf (0); floorf (0); ; return 0; } @@ -90286,30 +91772,28 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__qfpclass_use=yes + glibcxx_cv_func_float_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__qfpclass_use=no +glibcxx_cv_func_float_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6 + if test x$glibcxx_cv_func_float_round_use = x"yes"; then - if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then -for ac_func in _qfpclass +for ac_func in ceilf floorf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -90415,18 +91899,10 @@ _ACEOF fi done - fi - fi - - - - - - - echo "$as_me:$LINENO: checking for hypot declaration" >&5 -echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypot_use+set} != xset; then - if test "${glibcxx_cv_func_hypot_use+set}" = set; then + else + echo "$as_me:$LINENO: checking for _float round functions" >&5 +echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__float_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -90448,7 +91924,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - hypot(0, 0); +_ceilf (0); _floorf (0); ; return 0; } @@ -90475,12 +91951,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypot_use=yes + glibcxx_cv_func__float_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypot_use=no +glibcxx_cv_func__float_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -90489,16 +91965,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6 + if test x$glibcxx_cv_func__float_round_use = x"yes"; then - if test x$glibcxx_cv_func_hypot_use = x"yes"; then -for ac_func in hypot +for ac_func in _ceilf _floorf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -90604,12 +92078,20 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _hypot declaration" >&5 -echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypot_use+set} != xset; then - if test "${glibcxx_cv_func__hypot_use+set}" = set; then + + + + + + + + echo "$as_me:$LINENO: checking for expf declaration" >&5 +echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_expf_use+set} != xset; then + if test "${glibcxx_cv_func_expf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -90628,10 +92110,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _hypot(0, 0); + expf(0); ; return 0; } @@ -90658,12 +92144,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypot_use=yes + glibcxx_cv_func_expf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypot_use=no +glibcxx_cv_func_expf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -90676,12 +92162,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6 - if test x$glibcxx_cv_func__hypot_use = x"yes"; then + if test x$glibcxx_cv_func_expf_use = x"yes"; then -for ac_func in _hypot +for ac_func in expf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -90787,39 +92273,38 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for float trig functions" >&5 -echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_float_trig_use+set}" = set; then + echo "$as_me:$LINENO: checking for _expf declaration" >&5 +echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__expf_use+set} != xset; then + if test "${glibcxx_cv_func__expf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); + _expf(0); ; return 0; } @@ -90846,35 +92331,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_float_trig_use=yes + glibcxx_cv_func__expf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_float_trig_use=no +glibcxx_cv_func__expf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6 - if test x$glibcxx_cv_func_float_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6 + if test x$glibcxx_cv_func__expf_use = x"yes"; then -for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf +for ac_func in _expf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -90980,10 +92460,18 @@ _ACEOF fi done - else - echo "$as_me:$LINENO: checking for _float trig functions" >&5 -echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__float_trig_use+set}" = set; then + fi + fi + + + + + + + echo "$as_me:$LINENO: checking for isnanf declaration" >&5 +echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnanf_use+set} != xset; then + if test "${glibcxx_cv_func_isnanf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -91002,10 +92490,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); + isnanf(0); ; return 0; } @@ -91032,12 +92524,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__float_trig_use=yes + glibcxx_cv_func_isnanf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__float_trig_use=no +glibcxx_cv_func_isnanf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -91046,21 +92538,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6 - if test x$glibcxx_cv_func__float_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6 + if test x$glibcxx_cv_func_isnanf_use = x"yes"; then -for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf +for ac_func in isnanf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -91166,47 +92653,38 @@ _ACEOF fi done - fi - fi - - - - - - - - - - - - - + else - echo "$as_me:$LINENO: checking for float round functions" >&5 -echo $ECHO_N "checking for float round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_float_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isnanf declaration" >&5 +echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnanf_use+set} != xset; then + if test "${glibcxx_cv_func__isnanf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -ceilf (0); floorf (0); + _isnanf(0); ; return 0; } @@ -91233,28 +92711,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_float_round_use=yes + glibcxx_cv_func__isnanf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_float_round_use=no +glibcxx_cv_func__isnanf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6 - if test x$glibcxx_cv_func_float_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6 + if test x$glibcxx_cv_func__isnanf_use = x"yes"; then -for ac_func in ceilf floorf +for ac_func in _isnanf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -91360,10 +92840,18 @@ _ACEOF fi done - else - echo "$as_me:$LINENO: checking for _float round functions" >&5 -echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__float_round_use+set}" = set; then + fi + fi + + + + + + + echo "$as_me:$LINENO: checking for isinff declaration" >&5 +echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinff_use+set} != xset; then + if test "${glibcxx_cv_func_isinff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -91382,10 +92870,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_ceilf (0); _floorf (0); + isinff(0); ; return 0; } @@ -91412,12 +92904,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__float_round_use=yes + glibcxx_cv_func_isinff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__float_round_use=no +glibcxx_cv_func_isinff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -91426,14 +92918,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6 - if test x$glibcxx_cv_func__float_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6 + if test x$glibcxx_cv_func_isinff_use = x"yes"; then -for ac_func in _ceilf _floorf +for ac_func in isinff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -91539,20 +93033,12 @@ _ACEOF fi done - fi - fi - - - - - - - + else - echo "$as_me:$LINENO: checking for expf declaration" >&5 -echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_expf_use+set} != xset; then - if test "${glibcxx_cv_func_expf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isinff declaration" >&5 +echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinff_use+set} != xset; then + if test "${glibcxx_cv_func__isinff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -91578,7 +93064,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - expf(0); + _isinff(0); ; return 0; } @@ -91605,12 +93091,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_expf_use=yes + glibcxx_cv_func__isinff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_expf_use=no +glibcxx_cv_func__isinff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -91623,12 +93109,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6 - if test x$glibcxx_cv_func_expf_use = x"yes"; then + if test x$glibcxx_cv_func__isinff_use = x"yes"; then -for ac_func in expf +for ac_func in _isinff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -91734,12 +93220,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _expf declaration" >&5 -echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__expf_use+set} != xset; then - if test "${glibcxx_cv_func__expf_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for atan2f declaration" >&5 +echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_atan2f_use+set} != xset; then + if test "${glibcxx_cv_func_atan2f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -91758,14 +93250,193 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif +int +main () +{ + atan2f(0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_func_atan2f_use=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_func_atan2f_use=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +fi + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6 + + if test x$glibcxx_cv_func_atan2f_use = x"yes"; then + +for ac_func in atan2f +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif int main () { - _expf(0); +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + else + + echo "$as_me:$LINENO: checking for _atan2f declaration" >&5 +echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__atan2f_use+set} != xset; then + if test "${glibcxx_cv_func__atan2f_use+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + + + ac_ext=cc +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 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ + _atan2f(0, 0); ; return 0; } @@ -91792,12 +93463,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__expf_use=yes + glibcxx_cv_func__atan2f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__expf_use=no +glibcxx_cv_func__atan2f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -91810,12 +93481,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6 - if test x$glibcxx_cv_func__expf_use = x"yes"; then + if test x$glibcxx_cv_func__atan2f_use = x"yes"; then -for ac_func in _expf +for ac_func in _atan2f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -91929,10 +93600,10 @@ done - echo "$as_me:$LINENO: checking for isnanf declaration" >&5 -echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnanf_use+set} != xset; then - if test "${glibcxx_cv_func_isnanf_use+set}" = set; then + echo "$as_me:$LINENO: checking for fabsf declaration" >&5 +echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fabsf_use+set} != xset; then + if test "${glibcxx_cv_func_fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -91958,7 +93629,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - isnanf(0); + fabsf(0); ; return 0; } @@ -91985,12 +93656,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnanf_use=yes + glibcxx_cv_func_fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnanf_use=no +glibcxx_cv_func_fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -92003,12 +93674,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6 - if test x$glibcxx_cv_func_isnanf_use = x"yes"; then + if test x$glibcxx_cv_func_fabsf_use = x"yes"; then -for ac_func in isnanf +for ac_func in fabsf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -92116,10 +93787,10 @@ done else - echo "$as_me:$LINENO: checking for _isnanf declaration" >&5 -echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnanf_use+set} != xset; then - if test "${glibcxx_cv_func__isnanf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fabsf declaration" >&5 +echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fabsf_use+set} != xset; then + if test "${glibcxx_cv_func__fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -92145,7 +93816,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _isnanf(0); + _fabsf(0); ; return 0; } @@ -92172,12 +93843,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnanf_use=yes + glibcxx_cv_func__fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnanf_use=no +glibcxx_cv_func__fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -92190,12 +93861,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6 - if test x$glibcxx_cv_func__isnanf_use = x"yes"; then + if test x$glibcxx_cv_func__fabsf_use = x"yes"; then -for ac_func in _isnanf +for ac_func in _fabsf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -92309,10 +93980,10 @@ done - echo "$as_me:$LINENO: checking for isinff declaration" >&5 -echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinff_use+set} != xset; then - if test "${glibcxx_cv_func_isinff_use+set}" = set; then + echo "$as_me:$LINENO: checking for fmodf declaration" >&5 +echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fmodf_use+set} != xset; then + if test "${glibcxx_cv_func_fmodf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -92331,14 +94002,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isinff(0); + fmodf(0, 0); ; return 0; } @@ -92365,12 +94032,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinff_use=yes + glibcxx_cv_func_fmodf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinff_use=no +glibcxx_cv_func_fmodf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -92383,12 +94050,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6 - if test x$glibcxx_cv_func_isinff_use = x"yes"; then + if test x$glibcxx_cv_func_fmodf_use = x"yes"; then -for ac_func in isinff +for ac_func in fmodf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -92496,10 +94163,10 @@ done else - echo "$as_me:$LINENO: checking for _isinff declaration" >&5 -echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinff_use+set} != xset; then - if test "${glibcxx_cv_func__isinff_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fmodf declaration" >&5 +echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fmodf_use+set} != xset; then + if test "${glibcxx_cv_func__fmodf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -92518,14 +94185,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isinff(0); + _fmodf(0, 0); ; return 0; } @@ -92552,12 +94215,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinff_use=yes + glibcxx_cv_func__fmodf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinff_use=no +glibcxx_cv_func__fmodf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -92570,12 +94233,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6 - if test x$glibcxx_cv_func__isinff_use = x"yes"; then + if test x$glibcxx_cv_func__fmodf_use = x"yes"; then -for ac_func in _isinff +for ac_func in _fmodf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -92689,10 +94352,10 @@ done - echo "$as_me:$LINENO: checking for atan2f declaration" >&5 -echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_atan2f_use+set} != xset; then - if test "${glibcxx_cv_func_atan2f_use+set}" = set; then + echo "$as_me:$LINENO: checking for frexpf declaration" >&5 +echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_frexpf_use+set} != xset; then + if test "${glibcxx_cv_func_frexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -92714,7 +94377,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - atan2f(0, 0); + frexpf(0, 0); ; return 0; } @@ -92741,12 +94404,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_atan2f_use=yes + glibcxx_cv_func_frexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_atan2f_use=no +glibcxx_cv_func_frexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -92759,12 +94422,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6 - if test x$glibcxx_cv_func_atan2f_use = x"yes"; then + if test x$glibcxx_cv_func_frexpf_use = x"yes"; then -for ac_func in atan2f +for ac_func in frexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -92872,10 +94535,10 @@ done else - echo "$as_me:$LINENO: checking for _atan2f declaration" >&5 -echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__atan2f_use+set} != xset; then - if test "${glibcxx_cv_func__atan2f_use+set}" = set; then + echo "$as_me:$LINENO: checking for _frexpf declaration" >&5 +echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__frexpf_use+set} != xset; then + if test "${glibcxx_cv_func__frexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -92897,7 +94560,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _atan2f(0, 0); + _frexpf(0, 0); ; return 0; } @@ -92924,12 +94587,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__atan2f_use=yes + glibcxx_cv_func__frexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__atan2f_use=no +glibcxx_cv_func__frexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -92942,12 +94605,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6 - if test x$glibcxx_cv_func__atan2f_use = x"yes"; then + if test x$glibcxx_cv_func__frexpf_use = x"yes"; then -for ac_func in _atan2f +for ac_func in _frexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -93061,10 +94724,10 @@ done - echo "$as_me:$LINENO: checking for fabsf declaration" >&5 -echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fabsf_use+set} != xset; then - if test "${glibcxx_cv_func_fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypotf declaration" >&5 +echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypotf_use+set} != xset; then + if test "${glibcxx_cv_func_hypotf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -93083,14 +94746,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - fabsf(0); + hypotf(0, 0); ; return 0; } @@ -93117,12 +94776,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fabsf_use=yes + glibcxx_cv_func_hypotf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fabsf_use=no +glibcxx_cv_func_hypotf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -93135,12 +94794,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6 - if test x$glibcxx_cv_func_fabsf_use = x"yes"; then + if test x$glibcxx_cv_func_hypotf_use = x"yes"; then -for ac_func in fabsf +for ac_func in hypotf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -93248,10 +94907,10 @@ done else - echo "$as_me:$LINENO: checking for _fabsf declaration" >&5 -echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fabsf_use+set} != xset; then - if test "${glibcxx_cv_func__fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypotf declaration" >&5 +echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypotf_use+set} != xset; then + if test "${glibcxx_cv_func__hypotf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -93270,14 +94929,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _fabsf(0); + _hypotf(0, 0); ; return 0; } @@ -93304,12 +94959,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fabsf_use=yes + glibcxx_cv_func__hypotf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fabsf_use=no +glibcxx_cv_func__hypotf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -93322,12 +94977,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6 - if test x$glibcxx_cv_func__fabsf_use = x"yes"; then + if test x$glibcxx_cv_func__hypotf_use = x"yes"; then -for ac_func in _fabsf +for ac_func in _hypotf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -93441,10 +95096,10 @@ done - echo "$as_me:$LINENO: checking for fmodf declaration" >&5 -echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fmodf_use+set} != xset; then - if test "${glibcxx_cv_func_fmodf_use+set}" = set; then + echo "$as_me:$LINENO: checking for ldexpf declaration" >&5 +echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then + if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -93466,7 +95121,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fmodf(0, 0); + ldexpf(0, 0); ; return 0; } @@ -93493,12 +95148,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fmodf_use=yes + glibcxx_cv_func_ldexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fmodf_use=no +glibcxx_cv_func_ldexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -93511,12 +95166,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6 - if test x$glibcxx_cv_func_fmodf_use = x"yes"; then + if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then -for ac_func in fmodf +for ac_func in ldexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -93624,10 +95279,10 @@ done else - echo "$as_me:$LINENO: checking for _fmodf declaration" >&5 -echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fmodf_use+set} != xset; then - if test "${glibcxx_cv_func__fmodf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5 +echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then + if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -93649,7 +95304,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fmodf(0, 0); + _ldexpf(0, 0); ; return 0; } @@ -93676,12 +95331,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fmodf_use=yes + glibcxx_cv_func__ldexpf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fmodf_use=no +glibcxx_cv_func__ldexpf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -93694,12 +95349,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6 - if test x$glibcxx_cv_func__fmodf_use = x"yes"; then + if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then -for ac_func in _fmodf +for ac_func in _ldexpf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -93813,10 +95468,10 @@ done - echo "$as_me:$LINENO: checking for frexpf declaration" >&5 -echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_frexpf_use+set} != xset; then - if test "${glibcxx_cv_func_frexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for logf declaration" >&5 +echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_logf_use+set} != xset; then + if test "${glibcxx_cv_func_logf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -93835,10 +95490,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - frexpf(0, 0); + logf(0); ; return 0; } @@ -93865,12 +95524,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_frexpf_use=yes + glibcxx_cv_func_logf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_frexpf_use=no +glibcxx_cv_func_logf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -93883,12 +95542,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6 - if test x$glibcxx_cv_func_frexpf_use = x"yes"; then + if test x$glibcxx_cv_func_logf_use = x"yes"; then -for ac_func in frexpf +for ac_func in logf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -93996,10 +95655,10 @@ done else - echo "$as_me:$LINENO: checking for _frexpf declaration" >&5 -echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__frexpf_use+set} != xset; then - if test "${glibcxx_cv_func__frexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _logf declaration" >&5 +echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__logf_use+set} != xset; then + if test "${glibcxx_cv_func__logf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -94018,10 +95677,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _frexpf(0, 0); + _logf(0); ; return 0; } @@ -94048,12 +95711,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__frexpf_use=yes + glibcxx_cv_func__logf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__frexpf_use=no +glibcxx_cv_func__logf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -94066,12 +95729,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6 - if test x$glibcxx_cv_func__frexpf_use = x"yes"; then + if test x$glibcxx_cv_func__logf_use = x"yes"; then -for ac_func in _frexpf +for ac_func in _logf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -94185,10 +95848,10 @@ done - echo "$as_me:$LINENO: checking for hypotf declaration" >&5 -echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypotf_use+set} != xset; then - if test "${glibcxx_cv_func_hypotf_use+set}" = set; then + echo "$as_me:$LINENO: checking for log10f declaration" >&5 +echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_log10f_use+set} != xset; then + if test "${glibcxx_cv_func_log10f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -94207,10 +95870,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - hypotf(0, 0); + log10f(0); ; return 0; } @@ -94237,12 +95904,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypotf_use=yes + glibcxx_cv_func_log10f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypotf_use=no +glibcxx_cv_func_log10f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -94255,12 +95922,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6 - if test x$glibcxx_cv_func_hypotf_use = x"yes"; then + if test x$glibcxx_cv_func_log10f_use = x"yes"; then -for ac_func in hypotf +for ac_func in log10f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -94368,10 +96035,10 @@ done else - echo "$as_me:$LINENO: checking for _hypotf declaration" >&5 -echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypotf_use+set} != xset; then - if test "${glibcxx_cv_func__hypotf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _log10f declaration" >&5 +echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__log10f_use+set} != xset; then + if test "${glibcxx_cv_func__log10f_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -94390,10 +96057,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _hypotf(0, 0); + _log10f(0); ; return 0; } @@ -94420,12 +96091,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypotf_use=yes + glibcxx_cv_func__log10f_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypotf_use=no +glibcxx_cv_func__log10f_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -94438,12 +96109,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6 - if test x$glibcxx_cv_func__hypotf_use = x"yes"; then + if test x$glibcxx_cv_func__log10f_use = x"yes"; then -for ac_func in _hypotf +for ac_func in _log10f do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -94557,10 +96228,10 @@ done - echo "$as_me:$LINENO: checking for ldexpf declaration" >&5 -echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then - if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for modff declaration" >&5 +echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modff_use+set} != xset; then + if test "${glibcxx_cv_func_modff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -94582,7 +96253,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - ldexpf(0, 0); + modff(0, 0); ; return 0; } @@ -94609,12 +96280,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_ldexpf_use=yes + glibcxx_cv_func_modff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_ldexpf_use=no +glibcxx_cv_func_modff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -94627,12 +96298,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6 - if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then + if test x$glibcxx_cv_func_modff_use = x"yes"; then -for ac_func in ldexpf +for ac_func in modff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -94740,10 +96411,10 @@ done else - echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5 -echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then - if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modff declaration" >&5 +echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modff_use+set} != xset; then + if test "${glibcxx_cv_func__modff_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -94765,7 +96436,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _ldexpf(0, 0); + _modff(0, 0); ; return 0; } @@ -94792,12 +96463,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__ldexpf_use=yes + glibcxx_cv_func__modff_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__ldexpf_use=no +glibcxx_cv_func__modff_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -94810,12 +96481,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6 - if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then + if test x$glibcxx_cv_func__modff_use = x"yes"; then -for ac_func in _ldexpf +for ac_func in _modff do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -94929,10 +96600,10 @@ done - echo "$as_me:$LINENO: checking for logf declaration" >&5 -echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_logf_use+set} != xset; then - if test "${glibcxx_cv_func_logf_use+set}" = set; then + echo "$as_me:$LINENO: checking for modf declaration" >&5 +echo $ECHO_N "checking for modf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modf_use+set} != xset; then + if test "${glibcxx_cv_func_modf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -94951,14 +96622,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - logf(0); + modf(0, 0); ; return 0; } @@ -94985,12 +96652,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_logf_use=yes + glibcxx_cv_func_modf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_logf_use=no +glibcxx_cv_func_modf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -95003,12 +96670,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modf_use" >&6 - if test x$glibcxx_cv_func_logf_use = x"yes"; then + if test x$glibcxx_cv_func_modf_use = x"yes"; then -for ac_func in logf +for ac_func in modf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -95116,10 +96783,10 @@ done else - echo "$as_me:$LINENO: checking for _logf declaration" >&5 -echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__logf_use+set} != xset; then - if test "${glibcxx_cv_func__logf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modf declaration" >&5 +echo $ECHO_N "checking for _modf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modf_use+set} != xset; then + if test "${glibcxx_cv_func__modf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -95138,14 +96805,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _logf(0); + _modf(0, 0); ; return 0; } @@ -95172,12 +96835,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__logf_use=yes + glibcxx_cv_func__modf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__logf_use=no +glibcxx_cv_func__modf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -95190,12 +96853,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modf_use" >&6 - if test x$glibcxx_cv_func__logf_use = x"yes"; then + if test x$glibcxx_cv_func__modf_use = x"yes"; then -for ac_func in _logf +for ac_func in _modf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -95309,10 +96972,10 @@ done - echo "$as_me:$LINENO: checking for log10f declaration" >&5 -echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_log10f_use+set} != xset; then - if test "${glibcxx_cv_func_log10f_use+set}" = set; then + echo "$as_me:$LINENO: checking for powf declaration" >&5 +echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_powf_use+set} != xset; then + if test "${glibcxx_cv_func_powf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -95331,14 +96994,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - log10f(0); + powf(0, 0); ; return 0; } @@ -95365,12 +97024,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_log10f_use=yes + glibcxx_cv_func_powf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_log10f_use=no +glibcxx_cv_func_powf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -95383,12 +97042,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6 - if test x$glibcxx_cv_func_log10f_use = x"yes"; then + if test x$glibcxx_cv_func_powf_use = x"yes"; then -for ac_func in log10f +for ac_func in powf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -95496,10 +97155,10 @@ done else - echo "$as_me:$LINENO: checking for _log10f declaration" >&5 -echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__log10f_use+set} != xset; then - if test "${glibcxx_cv_func__log10f_use+set}" = set; then + echo "$as_me:$LINENO: checking for _powf declaration" >&5 +echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__powf_use+set} != xset; then + if test "${glibcxx_cv_func__powf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -95518,14 +97177,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _log10f(0); + _powf(0, 0); ; return 0; } @@ -95552,12 +97207,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__log10f_use=yes + glibcxx_cv_func__powf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__log10f_use=no +glibcxx_cv_func__powf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -95570,12 +97225,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6 - if test x$glibcxx_cv_func__log10f_use = x"yes"; then + if test x$glibcxx_cv_func__powf_use = x"yes"; then -for ac_func in _log10f +for ac_func in _powf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -95689,10 +97344,10 @@ done - echo "$as_me:$LINENO: checking for modff declaration" >&5 -echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modff_use+set} != xset; then - if test "${glibcxx_cv_func_modff_use+set}" = set; then + echo "$as_me:$LINENO: checking for sqrtf declaration" >&5 +echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -95711,10 +97366,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - modff(0, 0); + sqrtf(0); ; return 0; } @@ -95741,12 +97400,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modff_use=yes + glibcxx_cv_func_sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modff_use=no +glibcxx_cv_func_sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -95759,12 +97418,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6 - if test x$glibcxx_cv_func_modff_use = x"yes"; then + if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then -for ac_func in modff +for ac_func in sqrtf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -95872,10 +97531,10 @@ done else - echo "$as_me:$LINENO: checking for _modff declaration" >&5 -echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modff_use+set} != xset; then - if test "${glibcxx_cv_func__modff_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5 +echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -95894,10 +97553,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _modff(0, 0); + _sqrtf(0); ; return 0; } @@ -95924,12 +97587,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modff_use=yes + glibcxx_cv_func__sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modff_use=no +glibcxx_cv_func__sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -95942,12 +97605,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6 - if test x$glibcxx_cv_func__modff_use = x"yes"; then + if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then -for ac_func in _modff +for ac_func in _sqrtf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -96061,10 +97724,10 @@ done - echo "$as_me:$LINENO: checking for modf declaration" >&5 -echo $ECHO_N "checking for modf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modf_use+set} != xset; then - if test "${glibcxx_cv_func_modf_use+set}" = set; then + echo "$as_me:$LINENO: checking for sincosf declaration" >&5 +echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincosf_use+set} != xset; then + if test "${glibcxx_cv_func_sincosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -96086,7 +97749,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - modf(0, 0); + sincosf(0, 0, 0); ; return 0; } @@ -96113,12 +97776,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modf_use=yes + glibcxx_cv_func_sincosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modf_use=no +glibcxx_cv_func_sincosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -96131,12 +97794,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6 - if test x$glibcxx_cv_func_modf_use = x"yes"; then + if test x$glibcxx_cv_func_sincosf_use = x"yes"; then -for ac_func in modf +for ac_func in sincosf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -96244,10 +97907,10 @@ done else - echo "$as_me:$LINENO: checking for _modf declaration" >&5 -echo $ECHO_N "checking for _modf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modf_use+set} != xset; then - if test "${glibcxx_cv_func__modf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincosf declaration" >&5 +echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincosf_use+set} != xset; then + if test "${glibcxx_cv_func__sincosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -96269,7 +97932,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _modf(0, 0); + _sincosf(0, 0, 0); ; return 0; } @@ -96296,12 +97959,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modf_use=yes + glibcxx_cv_func__sincosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modf_use=no +glibcxx_cv_func__sincosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -96314,12 +97977,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6 - if test x$glibcxx_cv_func__modf_use = x"yes"; then + if test x$glibcxx_cv_func__sincosf_use = x"yes"; then -for ac_func in _modf +for ac_func in _sincosf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -96433,10 +98096,10 @@ done - echo "$as_me:$LINENO: checking for powf declaration" >&5 -echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_powf_use+set} != xset; then - if test "${glibcxx_cv_func_powf_use+set}" = set; then + echo "$as_me:$LINENO: checking for finitef declaration" >&5 +echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finitef_use+set} != xset; then + if test "${glibcxx_cv_func_finitef_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -96455,10 +98118,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - powf(0, 0); + finitef(0); ; return 0; } @@ -96485,12 +98152,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_powf_use=yes + glibcxx_cv_func_finitef_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_powf_use=no +glibcxx_cv_func_finitef_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -96503,12 +98170,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6 - if test x$glibcxx_cv_func_powf_use = x"yes"; then + if test x$glibcxx_cv_func_finitef_use = x"yes"; then -for ac_func in powf +for ac_func in finitef do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -96616,10 +98283,10 @@ done else - echo "$as_me:$LINENO: checking for _powf declaration" >&5 -echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__powf_use+set} != xset; then - if test "${glibcxx_cv_func__powf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _finitef declaration" >&5 +echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finitef_use+set} != xset; then + if test "${glibcxx_cv_func__finitef_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -96638,10 +98305,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _powf(0, 0); + _finitef(0); ; return 0; } @@ -96668,12 +98339,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__powf_use=yes + glibcxx_cv_func__finitef_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__powf_use=no +glibcxx_cv_func__finitef_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -96686,12 +98357,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6 - if test x$glibcxx_cv_func__powf_use = x"yes"; then + if test x$glibcxx_cv_func__finitef_use = x"yes"; then -for ac_func in _powf +for ac_func in _finitef do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -96805,36 +98476,31 @@ done - echo "$as_me:$LINENO: checking for sqrtf declaration" >&5 -echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for long double trig functions" >&5 +echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - sqrtf(0); +acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); ; return 0; } @@ -96861,30 +98527,35 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sqrtf_use=yes + glibcxx_cv_func_long_double_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sqrtf_use=no +glibcxx_cv_func_long_double_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6 + if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then - if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then -for ac_func in sqrtf + + + + + + + +for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -96991,11 +98662,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5 -echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _long double trig functions" >&5 +echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -97014,14 +98683,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _sqrtf(0); +_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); ; return 0; } @@ -97048,12 +98713,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sqrtf_use=yes + glibcxx_cv_func__long_double_trig_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sqrtf_use=no +glibcxx_cv_func__long_double_trig_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -97062,16 +98727,21 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6 + if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then - if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then -for ac_func in _sqrtf + + + + + + + +for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -97185,22 +98855,29 @@ done - echo "$as_me:$LINENO: checking for sincosf declaration" >&5 -echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincosf_use+set} != xset; then - if test "${glibcxx_cv_func_sincosf_use+set}" = set; then + + + + + + + + + echo "$as_me:$LINENO: checking for long double round functions" >&5 +echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -97210,7 +98887,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - sincosf(0, 0, 0); +ceill (0); floorl (0); ; return 0; } @@ -97237,30 +98914,28 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincosf_use=yes + glibcxx_cv_func_long_double_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincosf_use=no +glibcxx_cv_func_long_double_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6 + if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then - if test x$glibcxx_cv_func_sincosf_use = x"yes"; then -for ac_func in sincosf +for ac_func in ceill floorl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -97367,11 +99042,9 @@ fi done else - - echo "$as_me:$LINENO: checking for _sincosf declaration" >&5 -echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincosf_use+set} != xset; then - if test "${glibcxx_cv_func__sincosf_use+set}" = set; then + echo "$as_me:$LINENO: checking for _long double round functions" >&5 +echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6 + if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -97393,7 +99066,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _sincosf(0, 0, 0); +_ceill (0); _floorl (0); ; return 0; } @@ -97420,12 +99093,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincosf_use=yes + glibcxx_cv_func__long_double_round_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincosf_use=no +glibcxx_cv_func__long_double_round_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -97434,16 +99107,14 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6 + if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then - if test x$glibcxx_cv_func__sincosf_use = x"yes"; then -for ac_func in _sincosf +for ac_func in _ceill _floorl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -97557,10 +99228,12 @@ done - echo "$as_me:$LINENO: checking for finitef declaration" >&5 -echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finitef_use+set} != xset; then - if test "${glibcxx_cv_func_finitef_use+set}" = set; then + + + echo "$as_me:$LINENO: checking for isnanl declaration" >&5 +echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isnanl_use+set} != xset; then + if test "${glibcxx_cv_func_isnanl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -97586,7 +99259,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - finitef(0); + isnanl(0); ; return 0; } @@ -97613,12 +99286,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finitef_use=yes + glibcxx_cv_func_isnanl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finitef_use=no +glibcxx_cv_func_isnanl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -97631,12 +99304,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6 - if test x$glibcxx_cv_func_finitef_use = x"yes"; then + if test x$glibcxx_cv_func_isnanl_use = x"yes"; then -for ac_func in finitef +for ac_func in isnanl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -97744,10 +99417,10 @@ done else - echo "$as_me:$LINENO: checking for _finitef declaration" >&5 -echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finitef_use+set} != xset; then - if test "${glibcxx_cv_func__finitef_use+set}" = set; then + echo "$as_me:$LINENO: checking for _isnanl declaration" >&5 +echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isnanl_use+set} != xset; then + if test "${glibcxx_cv_func__isnanl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -97773,7 +99446,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _finitef(0); + _isnanl(0); ; return 0; } @@ -97800,12 +99473,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finitef_use=yes + glibcxx_cv_func__isnanl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finitef_use=no +glibcxx_cv_func__isnanl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -97818,12 +99491,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6 - if test x$glibcxx_cv_func__finitef_use = x"yes"; then + if test x$glibcxx_cv_func__isnanl_use = x"yes"; then -for ac_func in _finitef +for ac_func in _isnanl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -97937,31 +99610,36 @@ done - echo "$as_me:$LINENO: checking for long double trig functions" >&5 -echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then + echo "$as_me:$LINENO: checking for isinfl declaration" >&5 +echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_isinfl_use+set} != xset; then + if test "${glibcxx_cv_func_isinfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); + isinfl(0); ; return 0; } @@ -97988,35 +99666,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_long_double_trig_use=yes + glibcxx_cv_func_isinfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_long_double_trig_use=no +glibcxx_cv_func_isinfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6 - if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6 + if test x$glibcxx_cv_func_isinfl_use = x"yes"; then -for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl +for ac_func in isinfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -98123,9 +99796,11 @@ fi done else - echo "$as_me:$LINENO: checking for _long double trig functions" >&5 -echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then + + echo "$as_me:$LINENO: checking for _isinfl declaration" >&5 +echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__isinfl_use+set} != xset; then + if test "${glibcxx_cv_func__isinfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -98144,10 +99819,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { -_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); + _isinfl(0); ; return 0; } @@ -98174,12 +99853,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__long_double_trig_use=yes + glibcxx_cv_func__isinfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__long_double_trig_use=no +glibcxx_cv_func__isinfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -98188,21 +99867,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - - echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6 - if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then - - - - - +fi + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6 + if test x$glibcxx_cv_func__isinfl_use = x"yes"; then -for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl +for ac_func in _isinfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -98316,29 +99990,22 @@ done - - - - - - - - - echo "$as_me:$LINENO: checking for long double round functions" >&5 -echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then + echo "$as_me:$LINENO: checking for copysignl declaration" >&5 +echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_copysignl_use+set} != xset; then + if test "${glibcxx_cv_func_copysignl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -98348,7 +100015,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -ceill (0); floorl (0); + copysignl(0, 0); ; return 0; } @@ -98375,28 +100042,30 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_long_double_round_use=yes + glibcxx_cv_func_copysignl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_long_double_round_use=no +glibcxx_cv_func_copysignl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6 - if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6 + if test x$glibcxx_cv_func_copysignl_use = x"yes"; then -for ac_func in ceill floorl +for ac_func in copysignl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -98503,9 +100172,11 @@ fi done else - echo "$as_me:$LINENO: checking for _long double round functions" >&5 -echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6 - if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then + + echo "$as_me:$LINENO: checking for _copysignl declaration" >&5 +echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__copysignl_use+set} != xset; then + if test "${glibcxx_cv_func__copysignl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -98527,7 +100198,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -_ceill (0); _floorl (0); + _copysignl(0, 0); ; return 0; } @@ -98554,12 +100225,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__long_double_round_use=yes + glibcxx_cv_func__copysignl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__long_double_round_use=no +glibcxx_cv_func__copysignl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -98568,14 +100239,16 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6 - if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6 + if test x$glibcxx_cv_func__copysignl_use = x"yes"; then -for ac_func in _ceill _floorl +for ac_func in _copysignl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -98689,12 +100362,10 @@ done - - - echo "$as_me:$LINENO: checking for isnanl declaration" >&5 -echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isnanl_use+set} != xset; then - if test "${glibcxx_cv_func_isnanl_use+set}" = set; then + echo "$as_me:$LINENO: checking for atan2l declaration" >&5 +echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_atan2l_use+set} != xset; then + if test "${glibcxx_cv_func_atan2l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -98713,14 +100384,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - isnanl(0); + atan2l(0, 0); ; return 0; } @@ -98747,12 +100414,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isnanl_use=yes + glibcxx_cv_func_atan2l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isnanl_use=no +glibcxx_cv_func_atan2l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -98765,12 +100432,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6 - if test x$glibcxx_cv_func_isnanl_use = x"yes"; then + if test x$glibcxx_cv_func_atan2l_use = x"yes"; then -for ac_func in isnanl +for ac_func in atan2l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -98878,10 +100545,10 @@ done else - echo "$as_me:$LINENO: checking for _isnanl declaration" >&5 -echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isnanl_use+set} != xset; then - if test "${glibcxx_cv_func__isnanl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _atan2l declaration" >&5 +echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__atan2l_use+set} != xset; then + if test "${glibcxx_cv_func__atan2l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -98900,14 +100567,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _isnanl(0); + _atan2l(0, 0); ; return 0; } @@ -98934,12 +100597,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isnanl_use=yes + glibcxx_cv_func__atan2l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isnanl_use=no +glibcxx_cv_func__atan2l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -98952,12 +100615,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6 - if test x$glibcxx_cv_func__isnanl_use = x"yes"; then + if test x$glibcxx_cv_func__atan2l_use = x"yes"; then -for ac_func in _isnanl +for ac_func in _atan2l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -99071,10 +100734,10 @@ done - echo "$as_me:$LINENO: checking for isinfl declaration" >&5 -echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_isinfl_use+set} != xset; then - if test "${glibcxx_cv_func_isinfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for expl declaration" >&5 +echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_expl_use+set} != xset; then + if test "${glibcxx_cv_func_expl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -99100,7 +100763,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - isinfl(0); + expl(0); ; return 0; } @@ -99127,12 +100790,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_isinfl_use=yes + glibcxx_cv_func_expl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_isinfl_use=no +glibcxx_cv_func_expl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -99145,12 +100808,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6 - if test x$glibcxx_cv_func_isinfl_use = x"yes"; then + if test x$glibcxx_cv_func_expl_use = x"yes"; then -for ac_func in isinfl +for ac_func in expl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -99258,10 +100921,10 @@ done else - echo "$as_me:$LINENO: checking for _isinfl declaration" >&5 -echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__isinfl_use+set} != xset; then - if test "${glibcxx_cv_func__isinfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _expl declaration" >&5 +echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__expl_use+set} != xset; then + if test "${glibcxx_cv_func__expl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -99287,7 +100950,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _isinfl(0); + _expl(0); ; return 0; } @@ -99314,12 +100977,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__isinfl_use=yes + glibcxx_cv_func__expl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__isinfl_use=no +glibcxx_cv_func__expl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -99332,12 +100995,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6 - if test x$glibcxx_cv_func__isinfl_use = x"yes"; then + if test x$glibcxx_cv_func__expl_use = x"yes"; then -for ac_func in _isinfl +for ac_func in _expl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -99451,10 +101114,10 @@ done - echo "$as_me:$LINENO: checking for copysignl declaration" >&5 -echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_copysignl_use+set} != xset; then - if test "${glibcxx_cv_func_copysignl_use+set}" = set; then + echo "$as_me:$LINENO: checking for fabsl declaration" >&5 +echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fabsl_use+set} != xset; then + if test "${glibcxx_cv_func_fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -99473,10 +101136,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - copysignl(0, 0); + fabsl(0); ; return 0; } @@ -99503,12 +101170,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_copysignl_use=yes + glibcxx_cv_func_fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_copysignl_use=no +glibcxx_cv_func_fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -99521,12 +101188,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6 - if test x$glibcxx_cv_func_copysignl_use = x"yes"; then + if test x$glibcxx_cv_func_fabsl_use = x"yes"; then -for ac_func in copysignl +for ac_func in fabsl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -99634,10 +101301,10 @@ done else - echo "$as_me:$LINENO: checking for _copysignl declaration" >&5 -echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__copysignl_use+set} != xset; then - if test "${glibcxx_cv_func__copysignl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fabsl declaration" >&5 +echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fabsl_use+set} != xset; then + if test "${glibcxx_cv_func__fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -99656,10 +101323,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _copysignl(0, 0); + _fabsl(0); ; return 0; } @@ -99686,12 +101357,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__copysignl_use=yes + glibcxx_cv_func__fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__copysignl_use=no +glibcxx_cv_func__fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -99704,12 +101375,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6 - if test x$glibcxx_cv_func__copysignl_use = x"yes"; then + if test x$glibcxx_cv_func__fabsl_use = x"yes"; then -for ac_func in _copysignl +for ac_func in _fabsl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -99823,10 +101494,10 @@ done - echo "$as_me:$LINENO: checking for atan2l declaration" >&5 -echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_atan2l_use+set} != xset; then - if test "${glibcxx_cv_func_atan2l_use+set}" = set; then + echo "$as_me:$LINENO: checking for fmodl declaration" >&5 +echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_fmodl_use+set} != xset; then + if test "${glibcxx_cv_func_fmodl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -99848,7 +101519,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - atan2l(0, 0); + fmodl(0, 0); ; return 0; } @@ -99875,12 +101546,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_atan2l_use=yes + glibcxx_cv_func_fmodl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_atan2l_use=no +glibcxx_cv_func_fmodl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -99893,12 +101564,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6 - if test x$glibcxx_cv_func_atan2l_use = x"yes"; then + if test x$glibcxx_cv_func_fmodl_use = x"yes"; then -for ac_func in atan2l +for ac_func in fmodl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -100006,10 +101677,10 @@ done else - echo "$as_me:$LINENO: checking for _atan2l declaration" >&5 -echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__atan2l_use+set} != xset; then - if test "${glibcxx_cv_func__atan2l_use+set}" = set; then + echo "$as_me:$LINENO: checking for _fmodl declaration" >&5 +echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__fmodl_use+set} != xset; then + if test "${glibcxx_cv_func__fmodl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -100031,7 +101702,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _atan2l(0, 0); + _fmodl(0, 0); ; return 0; } @@ -100058,12 +101729,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__atan2l_use=yes + glibcxx_cv_func__fmodl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__atan2l_use=no +glibcxx_cv_func__fmodl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -100076,12 +101747,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6 - if test x$glibcxx_cv_func__atan2l_use = x"yes"; then + if test x$glibcxx_cv_func__fmodl_use = x"yes"; then -for ac_func in _atan2l +for ac_func in _fmodl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -100195,10 +101866,10 @@ done - echo "$as_me:$LINENO: checking for expl declaration" >&5 -echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_expl_use+set} != xset; then - if test "${glibcxx_cv_func_expl_use+set}" = set; then + echo "$as_me:$LINENO: checking for frexpl declaration" >&5 +echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_frexpl_use+set} != xset; then + if test "${glibcxx_cv_func_frexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -100217,14 +101888,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - expl(0); + frexpl(0, 0); ; return 0; } @@ -100251,12 +101918,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_expl_use=yes + glibcxx_cv_func_frexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_expl_use=no +glibcxx_cv_func_frexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -100269,12 +101936,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6 - if test x$glibcxx_cv_func_expl_use = x"yes"; then + if test x$glibcxx_cv_func_frexpl_use = x"yes"; then -for ac_func in expl +for ac_func in frexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -100382,10 +102049,10 @@ done else - echo "$as_me:$LINENO: checking for _expl declaration" >&5 -echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__expl_use+set} != xset; then - if test "${glibcxx_cv_func__expl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _frexpl declaration" >&5 +echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__frexpl_use+set} != xset; then + if test "${glibcxx_cv_func__frexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -100404,14 +102071,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _expl(0); + _frexpl(0, 0); ; return 0; } @@ -100438,12 +102101,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__expl_use=yes + glibcxx_cv_func__frexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__expl_use=no +glibcxx_cv_func__frexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -100456,12 +102119,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6 - if test x$glibcxx_cv_func__expl_use = x"yes"; then + if test x$glibcxx_cv_func__frexpl_use = x"yes"; then -for ac_func in _expl +for ac_func in _frexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -100575,10 +102238,10 @@ done - echo "$as_me:$LINENO: checking for fabsl declaration" >&5 -echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fabsl_use+set} != xset; then - if test "${glibcxx_cv_func_fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for hypotl declaration" >&5 +echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_hypotl_use+set} != xset; then + if test "${glibcxx_cv_func_hypotl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -100597,14 +102260,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - fabsl(0); + hypotl(0, 0); ; return 0; } @@ -100631,12 +102290,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fabsl_use=yes + glibcxx_cv_func_hypotl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fabsl_use=no +glibcxx_cv_func_hypotl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -100649,12 +102308,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6 - if test x$glibcxx_cv_func_fabsl_use = x"yes"; then + if test x$glibcxx_cv_func_hypotl_use = x"yes"; then -for ac_func in fabsl +for ac_func in hypotl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -100762,10 +102421,10 @@ done else - echo "$as_me:$LINENO: checking for _fabsl declaration" >&5 -echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fabsl_use+set} != xset; then - if test "${glibcxx_cv_func__fabsl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _hypotl declaration" >&5 +echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__hypotl_use+set} != xset; then + if test "${glibcxx_cv_func__hypotl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -100784,14 +102443,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _fabsl(0); + _hypotl(0, 0); ; return 0; } @@ -100818,12 +102473,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fabsl_use=yes + glibcxx_cv_func__hypotl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fabsl_use=no +glibcxx_cv_func__hypotl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -100836,12 +102491,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6 - if test x$glibcxx_cv_func__fabsl_use = x"yes"; then + if test x$glibcxx_cv_func__hypotl_use = x"yes"; then -for ac_func in _fabsl +for ac_func in _hypotl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -100955,10 +102610,10 @@ done - echo "$as_me:$LINENO: checking for fmodl declaration" >&5 -echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_fmodl_use+set} != xset; then - if test "${glibcxx_cv_func_fmodl_use+set}" = set; then + echo "$as_me:$LINENO: checking for ldexpl declaration" >&5 +echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then + if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -100980,7 +102635,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - fmodl(0, 0); + ldexpl(0, 0); ; return 0; } @@ -101007,12 +102662,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_fmodl_use=yes + glibcxx_cv_func_ldexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_fmodl_use=no +glibcxx_cv_func_ldexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -101025,12 +102680,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6 - if test x$glibcxx_cv_func_fmodl_use = x"yes"; then + if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then -for ac_func in fmodl +for ac_func in ldexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -101138,10 +102793,10 @@ done else - echo "$as_me:$LINENO: checking for _fmodl declaration" >&5 -echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__fmodl_use+set} != xset; then - if test "${glibcxx_cv_func__fmodl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5 +echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then + if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -101163,7 +102818,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _fmodl(0, 0); + _ldexpl(0, 0); ; return 0; } @@ -101190,12 +102845,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__fmodl_use=yes + glibcxx_cv_func__ldexpl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__fmodl_use=no +glibcxx_cv_func__ldexpl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -101208,12 +102863,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6 - if test x$glibcxx_cv_func__fmodl_use = x"yes"; then + if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then -for ac_func in _fmodl +for ac_func in _ldexpl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -101327,10 +102982,10 @@ done - echo "$as_me:$LINENO: checking for frexpl declaration" >&5 -echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_frexpl_use+set} != xset; then - if test "${glibcxx_cv_func_frexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for logl declaration" >&5 +echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_logl_use+set} != xset; then + if test "${glibcxx_cv_func_logl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -101349,10 +103004,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - frexpl(0, 0); + logl(0); ; return 0; } @@ -101379,12 +103038,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_frexpl_use=yes + glibcxx_cv_func_logl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_frexpl_use=no +glibcxx_cv_func_logl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -101397,12 +103056,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6 - if test x$glibcxx_cv_func_frexpl_use = x"yes"; then + if test x$glibcxx_cv_func_logl_use = x"yes"; then -for ac_func in frexpl +for ac_func in logl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -101510,10 +103169,10 @@ done else - echo "$as_me:$LINENO: checking for _frexpl declaration" >&5 -echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__frexpl_use+set} != xset; then - if test "${glibcxx_cv_func__frexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _logl declaration" >&5 +echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__logl_use+set} != xset; then + if test "${glibcxx_cv_func__logl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -101532,10 +103191,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _frexpl(0, 0); + _logl(0); ; return 0; } @@ -101562,12 +103225,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__frexpl_use=yes + glibcxx_cv_func__logl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__frexpl_use=no +glibcxx_cv_func__logl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -101580,12 +103243,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6 - if test x$glibcxx_cv_func__frexpl_use = x"yes"; then + if test x$glibcxx_cv_func__logl_use = x"yes"; then -for ac_func in _frexpl +for ac_func in _logl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -101699,10 +103362,10 @@ done - echo "$as_me:$LINENO: checking for hypotl declaration" >&5 -echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_hypotl_use+set} != xset; then - if test "${glibcxx_cv_func_hypotl_use+set}" = set; then + echo "$as_me:$LINENO: checking for log10l declaration" >&5 +echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_log10l_use+set} != xset; then + if test "${glibcxx_cv_func_log10l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -101721,10 +103384,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - hypotl(0, 0); + log10l(0); ; return 0; } @@ -101751,12 +103418,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_hypotl_use=yes + glibcxx_cv_func_log10l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_hypotl_use=no +glibcxx_cv_func_log10l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -101769,12 +103436,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6 - if test x$glibcxx_cv_func_hypotl_use = x"yes"; then + if test x$glibcxx_cv_func_log10l_use = x"yes"; then -for ac_func in hypotl +for ac_func in log10l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -101882,10 +103549,10 @@ done else - echo "$as_me:$LINENO: checking for _hypotl declaration" >&5 -echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__hypotl_use+set} != xset; then - if test "${glibcxx_cv_func__hypotl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _log10l declaration" >&5 +echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__log10l_use+set} != xset; then + if test "${glibcxx_cv_func__log10l_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -101904,10 +103571,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _hypotl(0, 0); + _log10l(0); ; return 0; } @@ -101934,12 +103605,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__hypotl_use=yes + glibcxx_cv_func__log10l_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__hypotl_use=no +glibcxx_cv_func__log10l_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -101952,12 +103623,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6 - if test x$glibcxx_cv_func__hypotl_use = x"yes"; then + if test x$glibcxx_cv_func__log10l_use = x"yes"; then -for ac_func in _hypotl +for ac_func in _log10l do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -102071,193 +103742,10 @@ done - echo "$as_me:$LINENO: checking for ldexpl declaration" >&5 -echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then - if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ - ldexpl(0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - glibcxx_cv_func_ldexpl_use=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -glibcxx_cv_func_ldexpl_use=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6 - - if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then - -for ac_func in ldexpl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - else - - echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5 -echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then - if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then + echo "$as_me:$LINENO: checking for modfl declaration" >&5 +echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_modfl_use+set} != xset; then + if test "${glibcxx_cv_func_modfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -102279,7 +103767,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _ldexpl(0, 0); + modfl(0, 0); ; return 0; } @@ -102306,12 +103794,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__ldexpl_use=yes + glibcxx_cv_func_modfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__ldexpl_use=no +glibcxx_cv_func_modfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -102324,12 +103812,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6 - if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then + if test x$glibcxx_cv_func_modfl_use = x"yes"; then -for ac_func in _ldexpl +for ac_func in modfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -102435,18 +103923,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for logl declaration" >&5 -echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_logl_use+set} != xset; then - if test "${glibcxx_cv_func_logl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _modfl declaration" >&5 +echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__modfl_use+set} != xset; then + if test "${glibcxx_cv_func__modfl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -102465,14 +103947,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - logl(0); + _modfl(0, 0); ; return 0; } @@ -102499,12 +103977,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_logl_use=yes + glibcxx_cv_func__modfl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_logl_use=no +glibcxx_cv_func__modfl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -102517,12 +103995,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6 - if test x$glibcxx_cv_func_logl_use = x"yes"; then + if test x$glibcxx_cv_func__modfl_use = x"yes"; then -for ac_func in logl +for ac_func in _modfl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -102628,12 +104106,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _logl declaration" >&5 -echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__logl_use+set} != xset; then - if test "${glibcxx_cv_func__logl_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for powl declaration" >&5 +echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_powl_use+set} != xset; then + if test "${glibcxx_cv_func_powl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -102652,14 +104136,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _logl(0); + powl(0, 0); ; return 0; } @@ -102686,12 +104166,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__logl_use=yes + glibcxx_cv_func_powl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__logl_use=no +glibcxx_cv_func_powl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -102704,12 +104184,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6 - if test x$glibcxx_cv_func__logl_use = x"yes"; then + if test x$glibcxx_cv_func_powl_use = x"yes"; then -for ac_func in _logl +for ac_func in powl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -102815,18 +104295,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for log10l declaration" >&5 -echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_log10l_use+set} != xset; then - if test "${glibcxx_cv_func_log10l_use+set}" = set; then + echo "$as_me:$LINENO: checking for _powl declaration" >&5 +echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__powl_use+set} != xset; then + if test "${glibcxx_cv_func__powl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -102845,14 +104319,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - log10l(0); + _powl(0, 0); ; return 0; } @@ -102879,12 +104349,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_log10l_use=yes + glibcxx_cv_func__powl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_log10l_use=no +glibcxx_cv_func__powl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -102897,12 +104367,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6 - if test x$glibcxx_cv_func_log10l_use = x"yes"; then + if test x$glibcxx_cv_func__powl_use = x"yes"; then -for ac_func in log10l +for ac_func in _powl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -103008,12 +104478,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _log10l declaration" >&5 -echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__log10l_use+set} != xset; then - if test "${glibcxx_cv_func__log10l_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sqrtl declaration" >&5 +echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -103039,7 +104515,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _log10l(0); + sqrtl(0); ; return 0; } @@ -103066,12 +104542,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__log10l_use=yes + glibcxx_cv_func_sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__log10l_use=no +glibcxx_cv_func_sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -103084,12 +104560,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6 - if test x$glibcxx_cv_func__log10l_use = x"yes"; then + if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then -for ac_func in _log10l +for ac_func in sqrtl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -103195,18 +104671,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for modfl declaration" >&5 -echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_modfl_use+set} != xset; then - if test "${glibcxx_cv_func_modfl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5 +echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -103225,10 +104695,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - modfl(0, 0); + _sqrtl(0); ; return 0; } @@ -103255,12 +104729,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_modfl_use=yes + glibcxx_cv_func__sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_modfl_use=no +glibcxx_cv_func__sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -103273,12 +104747,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6 - if test x$glibcxx_cv_func_modfl_use = x"yes"; then + if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then -for ac_func in modfl +for ac_func in _sqrtl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -103384,12 +104858,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _modfl declaration" >&5 -echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__modfl_use+set} != xset; then - if test "${glibcxx_cv_func__modfl_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for sincosl declaration" >&5 +echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_sincosl_use+set} != xset; then + if test "${glibcxx_cv_func_sincosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -103411,7 +104891,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _modfl(0, 0); + sincosl(0, 0, 0); ; return 0; } @@ -103438,12 +104918,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__modfl_use=yes + glibcxx_cv_func_sincosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__modfl_use=no +glibcxx_cv_func_sincosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -103456,12 +104936,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6 - if test x$glibcxx_cv_func__modfl_use = x"yes"; then + if test x$glibcxx_cv_func_sincosl_use = x"yes"; then -for ac_func in _modfl +for ac_func in sincosl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -103567,18 +105047,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for powl declaration" >&5 -echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_powl_use+set} != xset; then - if test "${glibcxx_cv_func_powl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _sincosl declaration" >&5 +echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__sincosl_use+set} != xset; then + if test "${glibcxx_cv_func__sincosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -103600,7 +105074,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - powl(0, 0); + _sincosl(0, 0, 0); ; return 0; } @@ -103627,12 +105101,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_powl_use=yes + glibcxx_cv_func__sincosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_powl_use=no +glibcxx_cv_func__sincosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -103645,12 +105119,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6 - if test x$glibcxx_cv_func_powl_use = x"yes"; then + if test x$glibcxx_cv_func__sincosl_use = x"yes"; then -for ac_func in powl +for ac_func in _sincosl do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -103756,12 +105230,18 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _powl declaration" >&5 -echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__powl_use+set} != xset; then - if test "${glibcxx_cv_func__powl_use+set}" = set; then + + + + + + echo "$as_me:$LINENO: checking for finitel declaration" >&5 +echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_finitel_use+set} != xset; then + if test "${glibcxx_cv_func_finitel_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -103780,10 +105260,14 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include + #ifdef HAVE_IEEEFP_H + #include + #endif + int main () { - _powl(0, 0); + finitel(0); ; return 0; } @@ -103810,12 +105294,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__powl_use=yes + glibcxx_cv_func_finitel_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__powl_use=no +glibcxx_cv_func_finitel_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -103828,12 +105312,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6 - if test x$glibcxx_cv_func__powl_use = x"yes"; then + if test x$glibcxx_cv_func_finitel_use = x"yes"; then -for ac_func in _powl +for ac_func in finitel do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -103939,18 +105423,12 @@ _ACEOF fi done - fi - fi - - - - - + else - echo "$as_me:$LINENO: checking for sqrtl declaration" >&5 -echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for _finitel declaration" >&5 +echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func__finitel_use+set} != xset; then + if test "${glibcxx_cv_func__finitel_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -103976,7 +105454,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - sqrtl(0); + _finitel(0); ; return 0; } @@ -104003,12 +105481,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sqrtl_use=yes + glibcxx_cv_func__finitel_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sqrtl_use=no +glibcxx_cv_func__finitel_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -104021,12 +105499,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6 - if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then + if test x$glibcxx_cv_func__finitel_use = x"yes"; then -for ac_func in sqrtl +for ac_func in _finitel do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -104132,12 +105610,22 @@ _ACEOF fi done - else + fi + fi - echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5 -echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then + + + + + LIBS="$ac_save_LIBS" + CXXFLAGS="$ac_save_CXXFLAGS" + + + + echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5 +echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -104156,14 +105644,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _sqrtl(0); + __builtin_abs(0); ; return 0; } @@ -104190,12 +105674,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sqrtl_use=yes + glibcxx_cv_func___builtin_abs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sqrtl_use=no +glibcxx_cv_func___builtin_abs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -104208,20 +105692,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6 - - if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then - -for ac_func in _sqrtl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6 + if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5 +echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -104232,47 +105713,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_abs(0); ; return 0; } @@ -104299,38 +105744,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_abs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_abs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done fi - fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6 + if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_ABS 1 +_ACEOF + fi + fi - echo "$as_me:$LINENO: checking for sincosl declaration" >&5 -echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_sincosl_use+set} != xset; then - if test "${glibcxx_cv_func_sincosl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5 +echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -104352,7 +105796,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - sincosl(0, 0, 0); + __builtin_fabsf(0); ; return 0; } @@ -104379,12 +105823,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_sincosl_use=yes + glibcxx_cv_func___builtin_fabsf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_sincosl_use=no +glibcxx_cv_func___builtin_fabsf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -104397,20 +105841,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6 - - if test x$glibcxx_cv_func_sincosl_use = x"yes"; then - -for ac_func in sincosl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6 + if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5 +echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -104421,47 +105862,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_fabsf(0); ; return 0; } @@ -104488,32 +105893,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_fabsf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_fabsf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6 + + if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSF 1 _ACEOF -fi -done + fi - else + fi - echo "$as_me:$LINENO: checking for _sincosl declaration" >&5 -echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__sincosl_use+set} != xset; then - if test "${glibcxx_cv_func__sincosl_use+set}" = set; then + + echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5 +echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -104535,7 +105945,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - _sincosl(0, 0, 0); + __builtin_fabs(0); ; return 0; } @@ -104562,12 +105972,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__sincosl_use=yes + glibcxx_cv_func___builtin_fabs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__sincosl_use=no +glibcxx_cv_func___builtin_fabs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -104580,20 +105990,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6 - - if test x$glibcxx_cv_func__sincosl_use = x"yes"; then - -for ac_func in _sincosl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6 + if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5 +echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -104604,47 +106011,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_fabs(0); ; return 0; } @@ -104671,38 +106042,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_fabs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_fabs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done fi - fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6 + if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABS 1 +_ACEOF + fi + fi - echo "$as_me:$LINENO: checking for finitel declaration" >&5 -echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_finitel_use+set} != xset; then - if test "${glibcxx_cv_func_finitel_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5 +echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -104721,14 +106091,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - finitel(0); + __builtin_fabsl(0); ; return 0; } @@ -104755,12 +106121,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_finitel_use=yes + glibcxx_cv_func___builtin_fabsl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_finitel_use=no +glibcxx_cv_func___builtin_fabsl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -104773,20 +106139,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6 - - if test x$glibcxx_cv_func_finitel_use = x"yes"; then - -for ac_func in finitel -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6 + if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5 +echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -104797,47 +106160,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_fabsl(0); ; return 0; } @@ -104864,32 +106191,37 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_fabsl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_fabsl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6 + + if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSL 1 _ACEOF -fi -done + fi - else + fi - echo "$as_me:$LINENO: checking for _finitel declaration" >&5 -echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func__finitel_use+set} != xset; then - if test "${glibcxx_cv_func__finitel_use+set}" = set; then + + echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5 +echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -104908,14 +106240,10 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include - #ifdef HAVE_IEEEFP_H - #include - #endif - int main () { - _finitel(0); + __builtin_labs(0); ; return 0; } @@ -104942,12 +106270,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func__finitel_use=yes + glibcxx_cv_func___builtin_labs_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func__finitel_use=no +glibcxx_cv_func___builtin_labs_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -104960,20 +106288,17 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6 - - if test x$glibcxx_cv_func__finitel_use = x"yes"; then - -for ac_func in _finitel -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6 + if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5 +echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -104984,47 +106309,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; + __builtin_labs(0); ; return 0; } @@ -105051,42 +106340,38 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_func___builtin_labs_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_func___builtin_labs_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done fi - fi - + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6 + if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then +cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_LABS 1 +_ACEOF + fi - LIBS="$ac_save_LIBS" - CXXFLAGS="$ac_save_CXXFLAGS" + fi - echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5 -echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105108,7 +106393,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_abs(0); + __builtin_sqrtf(0); ; return 0; } @@ -105135,12 +106420,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_abs_use=yes + glibcxx_cv_func___builtin_sqrtf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_abs_use=no +glibcxx_cv_func___builtin_sqrtf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -105153,13 +106438,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6 - if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5 -echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105178,7 +106463,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_abs(0); + __builtin_sqrtf(0); ; return 0; } @@ -105205,12 +106490,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_abs_link=yes + glibcxx_cv_func___builtin_sqrtf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_abs_link=no +glibcxx_cv_func___builtin_sqrtf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -105218,13 +106503,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6 - if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_ABS 1 +#define HAVE___BUILTIN_SQRTF 1 _ACEOF fi @@ -105232,10 +106517,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5 -echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105257,7 +106542,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsf(0); + __builtin_sqrt(0); ; return 0; } @@ -105284,12 +106569,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsf_use=yes + glibcxx_cv_func___builtin_sqrt_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsf_use=no +glibcxx_cv_func___builtin_sqrt_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -105302,13 +106587,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6 - if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5 -echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105327,7 +106612,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsf(0); + __builtin_sqrt(0); ; return 0; } @@ -105354,12 +106639,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsf_link=yes + glibcxx_cv_func___builtin_sqrt_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsf_link=no +glibcxx_cv_func___builtin_sqrt_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -105367,13 +106652,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6 - if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSF 1 +#define HAVE___BUILTIN_SQRT 1 _ACEOF fi @@ -105381,10 +106666,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5 -echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5 +echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105406,7 +106691,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabs(0); + __builtin_sqrtl(0); ; return 0; } @@ -105433,12 +106718,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabs_use=yes + glibcxx_cv_func___builtin_sqrtl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabs_use=no +glibcxx_cv_func___builtin_sqrtl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -105451,13 +106736,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6 - if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5 -echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6 + if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5 +echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105476,7 +106761,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabs(0); + __builtin_sqrtl(0); ; return 0; } @@ -105503,12 +106788,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabs_link=yes + glibcxx_cv_func___builtin_sqrtl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabs_link=no +glibcxx_cv_func___builtin_sqrtl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -105516,13 +106801,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6 - if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABS 1 +#define HAVE___BUILTIN_SQRTL 1 _ACEOF fi @@ -105530,10 +106815,11 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5 -echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then + + echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5 +echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105555,7 +106841,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsl(0); + __builtin_sinf(0); ; return 0; } @@ -105582,12 +106868,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsl_use=yes + glibcxx_cv_func___builtin_sinf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsl_use=no +glibcxx_cv_func___builtin_sinf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -105600,13 +106886,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6 - if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5 -echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6 + if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5 +echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105625,7 +106911,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_fabsl(0); + __builtin_sinf(0); ; return 0; } @@ -105652,12 +106938,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_fabsl_link=yes + glibcxx_cv_func___builtin_sinf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_fabsl_link=no +glibcxx_cv_func___builtin_sinf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -105665,13 +106951,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6 - if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSL 1 +#define HAVE___BUILTIN_SINF 1 _ACEOF fi @@ -105679,10 +106965,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5 -echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5 +echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105704,7 +106990,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_labs(0); + __builtin_sin(0); ; return 0; } @@ -105731,12 +107017,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_labs_use=yes + glibcxx_cv_func___builtin_sin_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_labs_use=no +glibcxx_cv_func___builtin_sin_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -105749,13 +107035,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6 - if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5 -echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6 + if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5 +echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105774,7 +107060,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_labs(0); + __builtin_sin(0); ; return 0; } @@ -105801,12 +107087,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_labs_link=yes + glibcxx_cv_func___builtin_sin_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_labs_link=no +glibcxx_cv_func___builtin_sin_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -105814,13 +107100,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6 - if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_LABS 1 +#define HAVE___BUILTIN_SIN 1 _ACEOF fi @@ -105828,11 +107114,10 @@ _ACEOF fi - - echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5 +echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105854,7 +107139,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtf(0); + __builtin_sinl(0); ; return 0; } @@ -105881,12 +107166,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtf_use=yes + glibcxx_cv_func___builtin_sinl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtf_use=no +glibcxx_cv_func___builtin_sinl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -105899,13 +107184,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6 + if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5 +echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -105924,7 +107209,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtf(0); + __builtin_sinl(0); ; return 0; } @@ -105951,12 +107236,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtf_link=yes + glibcxx_cv_func___builtin_sinl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtf_link=no +glibcxx_cv_func___builtin_sinl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -105964,13 +107249,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTF 1 +#define HAVE___BUILTIN_SINL 1 _ACEOF fi @@ -105978,10 +107263,11 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then + + echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5 +echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106003,7 +107289,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrt(0); + __builtin_cosf(0); ; return 0; } @@ -106030,12 +107316,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrt_use=yes + glibcxx_cv_func___builtin_cosf_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrt_use=no +glibcxx_cv_func___builtin_cosf_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -106048,13 +107334,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6 + if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5 +echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106073,7 +107359,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrt(0); + __builtin_cosf(0); ; return 0; } @@ -106100,12 +107386,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrt_link=yes + glibcxx_cv_func___builtin_cosf_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrt_link=no +glibcxx_cv_func___builtin_cosf_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -106113,13 +107399,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRT 1 +#define HAVE___BUILTIN_COSF 1 _ACEOF fi @@ -106127,10 +107413,10 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5 -echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5 +echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106152,7 +107438,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtl(0); + __builtin_cos(0); ; return 0; } @@ -106179,12 +107465,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtl_use=yes + glibcxx_cv_func___builtin_cos_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtl_use=no +glibcxx_cv_func___builtin_cos_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -106197,13 +107483,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6 - if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5 -echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6 + if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5 +echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106222,7 +107508,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sqrtl(0); + __builtin_cos(0); ; return 0; } @@ -106249,12 +107535,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sqrtl_link=yes + glibcxx_cv_func___builtin_cos_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sqrtl_link=no +glibcxx_cv_func___builtin_cos_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -106262,13 +107548,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6 - if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SQRTL 1 +#define HAVE___BUILTIN_COS 1 _ACEOF fi @@ -106276,11 +107562,10 @@ _ACEOF fi - - echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5 -echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then + echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5 +echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106302,7 +107587,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinf(0); + __builtin_cosl(0); ; return 0; } @@ -106329,12 +107614,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinf_use=yes + glibcxx_cv_func___builtin_cosl_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinf_use=no +glibcxx_cv_func___builtin_cosl_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -106347,13 +107632,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6 - if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5 -echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6 + if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then + echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5 +echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6 + if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then + if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106372,7 +107657,7 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { - __builtin_sinf(0); + __builtin_cosl(0); ; return 0; } @@ -106399,12 +107684,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinf_link=yes + glibcxx_cv_func___builtin_cosl_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinf_link=no +glibcxx_cv_func___builtin_cosl_link=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext @@ -106412,13 +107697,13 @@ rm -f conftest.err conftest.$ac_objext \ fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6 + echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5 +echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6 - if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then + if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINF 1 +#define HAVE___BUILTIN_COSL 1 _ACEOF fi @@ -106426,87 +107711,90 @@ _ACEOF fi - echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5 -echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - ac_ext=cc -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 - cat >conftest.$ac_ext <<_ACEOF +echo "$as_me:$LINENO: checking for main in -lm" >&5 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + + int main () { - __builtin_sin(0); +main (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sin_use=yes + ac_cv_lib_m_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sin_use=no +ac_cv_lib_m_main=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6 +if test $ac_cv_lib_m_main = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + LIBS="-lm $LIBS" fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6 - if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5 -echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then + +for ac_func in copysignf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -106517,11 +107805,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_sin(0); +return f != $ac_func; ; return 0; } @@ -106548,114 +107872,260 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sin_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sin_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi +done - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6 - if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SIN 1 +for ac_func in __signbit +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func - fi +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ - fi +#ifdef __STDC__ +# include +#else +# include +#endif +#undef $ac_func - echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5 -echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done - ac_ext=cc -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 - cat >conftest.$ac_ext <<_ACEOF +for ac_func in __signbitf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_sinl(0); +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinl_use=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinl_use=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi +done - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6 - if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5 -echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then + + if test x$ac_cv_func_copysignl = x"yes"; then + +for ac_func in __signbitl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -106666,11 +108136,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_sinl(0); +return f != $ac_func; ; return 0; } @@ -106697,38 +108203,46 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_sinl_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_sinl_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6 +else + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done - if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINL 1 -_ACEOF + # Used in libmath/Makefile.am. + if test -n "$LIBMATHOBJS"; then + need_libmath=yes + fi - fi - fi + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-fno-builtin -D_GNU_SOURCE' - echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5 -echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then + echo "$as_me:$LINENO: checking for strtold declaration" >&5 +echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_strtold_use+set} != xset; then + if test "${glibcxx_cv_func_strtold_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106746,11 +108260,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include int main () { - __builtin_cosf(0); + strtold(0, 0); ; return 0; } @@ -106777,12 +108291,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosf_use=yes + glibcxx_cv_func_strtold_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosf_use=no +glibcxx_cv_func_strtold_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -106795,17 +108309,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6 - if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5 -echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6 + if test x$glibcxx_cv_func_strtold_use = x"yes"; then + +for ac_func in strtold +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -106816,11 +108332,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cosf(0); +return f != $ac_func; ; return 0; } @@ -106847,37 +108399,36 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosf_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosf_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6 +fi +done - if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSF 1 -_ACEOF - fi - fi - echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5 -echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then + echo "$as_me:$LINENO: checking for strtof declaration" >&5 +echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6 + if test x${glibcxx_cv_func_strtof_use+set} != xset; then + if test "${glibcxx_cv_func_strtof_use+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -106895,11 +108446,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include int main () { - __builtin_cos(0); + strtof(0, 0); ; return 0; } @@ -106926,12 +108477,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cos_use=yes + glibcxx_cv_func_strtof_use=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cos_use=no +glibcxx_cv_func_strtof_use=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c @@ -106944,17 +108495,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6 - if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5 -echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then + echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5 +echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6 + if test x$glibcxx_cv_func_strtof_use = x"yes"; then + +for ac_func in strtof +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -106965,11 +108518,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { - __builtin_cos(0); +return f != $ac_func; ; return 0; } @@ -106996,66 +108585,85 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cos_link=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cos_link=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF fi +done - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6 + fi - if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COS 1 -_ACEOF - fi - fi + CXXFLAGS="$ac_save_CXXFLAGS" - echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5 -echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + + # For LFS. - ac_ext=cc + ac_ext=cc 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 - cat >conftest.$ac_ext <<_ACEOF + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -fno-exceptions" + echo "$as_me:$LINENO: checking for LFS support" >&5 +echo $ECHO_N "checking for LFS support... $ECHO_C" >&6 + if test "${glibcxx_cv_LFS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include + #include + #include + int main () { - __builtin_cosl(0); +FILE* fp; + fopen64("t", "w"); + fseeko64(fp, 0, SEEK_CUR); + ftello64(fp); + lseek64(1, 0, SEEK_CUR); + struct stat64 buf; + fstat64(1, &buf); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -107069,63 +108677,72 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosl_use=yes + glibcxx_cv_LFS=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosl_use=no +glibcxx_cv_LFS=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + if test $glibcxx_cv_LFS = yes; then + +cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_LFS 1 +_ACEOF + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5 +echo "${ECHO_T}$glibcxx_cv_LFS" >&6 + CXXFLAGS="$ac_save_CXXFLAGS" + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6 - if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then - echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5 -echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6 - if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then - if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + # For showmanyc_helper(). - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } + +for ac_header in sys/ioctl.h sys/filio.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -int -main () -{ - __builtin_cosl(0); - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -107139,49 +108756,123 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func___builtin_cosl_link=yes + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func___builtin_cosl_link=no +ac_header_compiler=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5 -echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6 + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 - if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSL 1 +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - fi - - fi - +fi +done -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then + echo "$as_me:$LINENO: checking for poll" >&5 +echo $ECHO_N "checking for poll... $ECHO_C" >&6 + if test "${glibcxx_cv_POLL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -107192,12 +108883,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - - +#include int main () { -main (); +struct pollfd pfd[1]; + pfd[0].events = POLLIN; + poll(pfd, 1, 0); ; return 0; } @@ -107224,38 +108916,36 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + glibcxx_cv_POLL=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no +glibcxx_cv_POLL=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF - LIBS="-lm $LIBS" + if test $glibcxx_cv_POLL = yes; then -fi +cat >>confdefs.h <<\_ACEOF +#define HAVE_POLL 1 +_ACEOF + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_POLL" >&5 +echo "${ECHO_T}$glibcxx_cv_POLL" >&6 -for ac_func in copysignf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: checking for S_ISREG or S_IFREG" >&5 +echo $ECHO_N "checking for S_ISREG or S_IFREG... $ECHO_C" >&6 + if test "${glibcxx_cv_S_ISREG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -107266,47 +108956,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +struct stat buffer; + fstat(0, &buffer); + S_ISREG(buffer.st_mode); ; return 0; } @@ -107333,39 +108989,23 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_S_ISREG=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_S_ISREG=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi -done - - -for ac_func in __signbit -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + if test "${glibcxx_cv_S_IFREG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -107376,47 +109016,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +struct stat buffer; + fstat(0, &buffer); + S_IFREG & buffer.st_mode; ; return 0; } @@ -107443,97 +109049,67 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_S_IFREG=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_S_IFREG=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + + res=no + if test $glibcxx_cv_S_ISREG = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_S_ISREG 1 _ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbit.lo" -fi -done + res=S_ISREG + elif test $glibcxx_cv_S_IFREG = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_S_IFREG 1 +_ACEOF + + res=S_IFREG + fi + echo "$as_me:$LINENO: result: $res" >&5 +echo "${ECHO_T}$res" >&6 + # For xsputn_2(). -for ac_func in __signbitf +for ac_header in sys/uio.h do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} +$ac_includes_default +#include <$ac_header> _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -107547,46 +109123,123 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +ac_header_compiler=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi -done +done - if test x$ac_cv_func_copysignl = x"yes"; then -for ac_func in __signbitl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then + echo "$as_me:$LINENO: checking for writev" >&5 +echo $ECHO_N "checking for writev... $ECHO_C" >&6 + if test "${glibcxx_cv_WRITEV+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then + + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -107597,47 +109250,12 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +struct iovec iov[2]; + writev(0, iov, 0); ; return 0; } @@ -107664,71 +109282,55 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + glibcxx_cv_WRITEV=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +glibcxx_cv_WRITEV=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" fi -done - fi + if test $glibcxx_cv_WRITEV = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_WRITEV 1 +_ACEOF - # Used in libmath/Makefile.am. - if test -n "$LIBMATHOBJS"; then - need_libmath=yes fi + echo "$as_me:$LINENO: result: $glibcxx_cv_WRITEV" >&5 +echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 + cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_RANDOM_TR1 1 +_ACEOF - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS='-fno-builtin -D_GNU_SOURCE' - echo "$as_me:$LINENO: checking for strtold declaration" >&5 -echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_strtold_use+set} != xset; then - if test "${glibcxx_cv_func_strtold_use+set}" = set; then + if test "${ac_cv_header_locale_h+set}" = set; then + echo "$as_me:$LINENO: checking for locale.h" >&5 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 +if test "${ac_cv_header_locale_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6 else - - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + # Is the header compilable? +echo "$as_me:$LINENO: checking locale.h usability" >&5 +echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -int -main () -{ - strtold(0, 0); - ; - return 0; -} +$ac_includes_default +#include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -107739,7 +109341,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -107752,34 +109354,105 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_strtold_use=yes + ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_strtold_use=no +ac_header_compiler=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 +# Is the header present? +echo "$as_me:$LINENO: checking locale.h presence" >&5 +echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_header_preproc=no fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6 - if test x$glibcxx_cv_func_strtold_use = x"yes"; then +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 +echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for locale.h" >&5 +echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 +if test "${ac_cv_header_locale_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_header_locale_h=$ac_header_preproc +fi +echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 +echo "${ECHO_T}$ac_cv_header_locale_h" >&6 -for ac_func in strtold -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +fi +if test $ac_cv_header_locale_h = yes; then + + echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 +echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 +if test "${ac_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test x$gcc_no_link = xyes; then @@ -107793,47 +109466,11 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include int main () { -return f != $ac_func; +return LC_MESSAGES ; return 0; } @@ -107860,115 +109497,127 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +ac_cv_val_LC_MESSAGES=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5 +echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6 + if test $ac_cv_val_LC_MESSAGES = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LC_MESSAGES 1 _ACEOF + fi + fi -done - fi + # For iconv support. + + + + + + am_save_CPPFLAGS="$CPPFLAGS" + + for element in $INCICONV; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - echo "$as_me:$LINENO: checking for strtof declaration" >&5 -echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6 - if test x${glibcxx_cv_func_strtof_use+set} != xset; then - if test "${glibcxx_cv_func_strtof_use+set}" = set; then + echo "$as_me:$LINENO: checking for iconv" >&5 +echo $ECHO_N "checking for iconv... $ECHO_C" >&6 +if test "${am_cv_func_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - - ac_ext=cc -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 - - cat >conftest.$ac_ext <<_ACEOF + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include int main () { - strtof(0, 0); +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_func_strtof_use=yes + am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_func_strtof_use=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - fi - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5 -echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6 - if test x$glibcxx_cv_func_strtof_use = x"yes"; then - -for ac_func in strtof -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -107979,47 +109628,14 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +#include +#include int main () { -return f != $ac_func; +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); ; return 0; } @@ -108046,142 +109662,126 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + am_cv_lib_iconv=yes + am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + LIBS="$am_save_LIBS" + fi fi -done - - fi - - - - - - CXXFLAGS="$ac_save_CXXFLAGS" - +echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 +echo "${ECHO_T}$am_cv_func_iconv" >&6 + if test "$am_cv_func_iconv" = yes; then - # For LFS. - cat >>confdefs.h <<\_ACEOF -#define HAVE_INT64_T 1 +cat >>confdefs.h <<\_ACEOF +#define HAVE_ICONV 1 _ACEOF + fi + if test "$am_cv_lib_iconv" = yes; then + echo "$as_me:$LINENO: checking how to link with libiconv" >&5 +echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 + echo "$as_me:$LINENO: result: $LIBICONV" >&5 +echo "${ECHO_T}$LIBICONV" >&6 + else + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi - ac_ext=cc -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_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fno-exceptions" - echo "$as_me:$LINENO: checking for LFS support" >&5 -echo $ECHO_N "checking for LFS support... $ECHO_C" >&6 - if test "${glibcxx_cv_LFS+set}" = set; then + if test "$am_cv_func_iconv" = yes; then + echo "$as_me:$LINENO: checking for iconv declaration" >&5 +echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 + if test "${am_cv_proto_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - #include - #include + +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif int main () { -FILE* fp; - fopen64("t", "w"); - fseeko64(fp, 0, SEEK_CUR); - ftello64(fp); - lseek64(1, 0, SEEK_CUR); - struct stat64 buf; - fstat64(1, &buf); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_LFS=yes + am_cv_proto_iconv_arg1="" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_LFS=no +am_cv_proto_iconv_arg1="const" fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi - if test $glibcxx_cv_LFS = yes; then + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + echo "$as_me:$LINENO: result: ${ac_t:- + }$am_cv_proto_iconv" >&5 +echo "${ECHO_T}${ac_t:- + }$am_cv_proto_iconv" >&6 -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_LFS 1 +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi - echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5 -echo "${ECHO_T}$glibcxx_cv_LFS" >&6 - CXXFLAGS="$ac_save_CXXFLAGS" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - + ;; + *-mingw32*) - # For showmanyc_helper(). -for ac_header in sys/ioctl.h sys/filio.h +for ac_header in sys/types.h locale.h float.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -108330,146 +109930,82 @@ fi done - - echo "$as_me:$LINENO: checking for poll" >&5 -echo $ECHO_N "checking for poll... $ECHO_C" >&6 - if test "${glibcxx_cv_POLL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + cat >>confdefs.h <<\_ACEOF +#define HAVE_STRTOF 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -struct pollfd pfd[1]; - pfd[0].events = POLLIN; - poll(pfd, 1, 0); - ; - return 0; -} + + cat >>confdefs.h <<\_ACEOF +#define HAVE_STRTOLD 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - glibcxx_cv_POLL=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_POLL=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi + # If we're not using GNU ld, then there's no point in even trying these + # tests. Check for that first. We should have already tested for gld + # by now (in libtool), but require it now just to be safe... + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - if test $glibcxx_cv_POLL = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_POLL 1 -_ACEOF + # The name set by libtool depends on the version of libtool. Shame on us + # for depending on an impl detail, but c'est la vie. Older versions used + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't + # set (hence we're using an older libtool), then set it. + if test x${with_gnu_ld+set} != xset; then + if test x${ac_cv_prog_gnu_ld+set} != xset; then + # We got through "ac_require(ac_prog_ld)" and still not set? Huh? + with_gnu_ld=no + else + with_gnu_ld=$ac_cv_prog_gnu_ld + fi fi - echo "$as_me:$LINENO: result: $glibcxx_cv_POLL" >&5 -echo "${ECHO_T}$glibcxx_cv_POLL" >&6 - - echo "$as_me:$LINENO: checking for S_ISREG or S_IFREG" >&5 -echo $ECHO_N "checking for S_ISREG or S_IFREG... $ECHO_C" >&6 - if test "${glibcxx_cv_S_ISREG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + glibcxx_ld_is_gold=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld version" >&5 +echo $ECHO_N "checking for ld version... $ECHO_C" >&6 - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -struct stat buffer; - fstat(0, &buffer); - S_ISREG(buffer.st_mode); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - glibcxx_cv_S_ISREG=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` -glibcxx_cv_S_ISREG=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext + glibcxx_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 +echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 + fi -fi + # Set --gc-sections. + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && + test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then + # Sufficiently young GNU ld it is! Joy and bunny rabbits! + # NB: This flag only works reliably after 2.16.1. Configure tests + # for this are difficult, so hard wire a value that should work. - if test "${glibcxx_cv_S_IFREG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-Wl,--gc-sections' + # Check for -Wl,--gc-sections + echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 +echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} @@ -108481,13 +110017,13 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + int one(void) { return 1; } + int two(void) { return 2; } + int main () { -struct stat buffer; - fstat(0, &buffer); - S_IFREG & buffer.st_mode; + two(); ; return 0; } @@ -108514,67 +110050,96 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_S_IFREG=yes + ac_gcsections=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_S_IFREG=no +ac_gcsections=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + if test "$ac_gcsections" = "yes"; then + rm -f conftest.c + touch conftest.c + if $CC -c conftest.c; then + if $LD --gc-sections -o conftest conftest.o 2>&1 | \ + grep "Warning: gc-sections option ignored" > /dev/null; then + ac_gcsections=no + fi + fi + rm -f conftest.c conftest.o conftest + fi + if test "$ac_gcsections" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$as_me:$LINENO: result: $ac_gcsections" >&5 +echo "${ECHO_T}$ac_gcsections" >&6 -fi + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + fi - res=no - if test $glibcxx_cv_S_ISREG = yes; then + # Set -z,relro. + # Note this is only for shared objects. + ac_ld_relro=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 +echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 + cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` + if test -n "$cxx_z_relo"; then + OPT_LDFLAGS="-Wl,-z,relro" + ac_ld_relro=yes + fi + echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 +echo "${ECHO_T}$ac_ld_relro" >&6 + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE_S_ISREG 1 -_ACEOF + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi - res=S_ISREG - elif test $glibcxx_cv_S_IFREG = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_S_IFREG 1 -_ACEOF - res=S_IFREG - fi - echo "$as_me:$LINENO: result: $res" >&5 -echo "${ECHO_T}$res" >&6 - # For xsputn_2(). -for ac_header in sys/uio.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +echo "$as_me:$LINENO: checking for main in -lm" >&5 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + + +int +main () +{ +main (); + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -108588,123 +110153,44 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes + ac_cv_lib_m_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" +ac_cv_lib_m_main=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6 +if test $ac_cv_lib_m_main = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_LIBM 1 _ACEOF -fi + LIBS="-lm $LIBS" -done +fi - echo "$as_me:$LINENO: checking for writev" >&5 -echo $ECHO_N "checking for writev... $ECHO_C" >&6 - if test "${glibcxx_cv_WRITEV+set}" = set; then +for ac_func in copysignf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then + if test x$gcc_no_link = xyes; then { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} { (exit 1); exit 1; }; } @@ -108715,12 +110201,47 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -struct iovec iov[2]; - writev(0, iov, 0); +return f != $ac_func; ; return 0; } @@ -108747,352 +110268,384 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_WRITEV=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_WRITEV=no +eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext - fi - - if test $glibcxx_cv_WRITEV = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_WRITEV 1 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_WRITEV" >&5 -echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 - - - # For C99 support to TR1. - - - - - ac_ext=cc -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 - +else + LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done - # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__ - # undefined and fake C99 facilities may be spuriously enabled. - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -std=c++98" - # Check for the existence of complex math functions used - # by tr1/complex. -for ac_header in complex.h +for ac_func in __signbit do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_header_compiler=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_cxx_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag - else - ac_cpp_err= - fi + else - ac_cpp_err=yes + LIBMATHOBJS="$LIBMATHOBJS signbit.lo" fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +done - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - ac_has_complex_h=yes +for ac_func in __signbitf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_has_complex_h=no + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } fi - -done - - ac_c99_complex_tr1=no; - if test x"$ac_has_complex_h" = x"yes"; then - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -typedef __complex__ float float_type; float_type tmpf; - cacosf(tmpf); - casinf(tmpf); - catanf(tmpf); - cacoshf(tmpf); - casinhf(tmpf); - catanhf(tmpf); - typedef __complex__ double double_type; double_type tmpd; - cacos(tmpd); - casin(tmpd); - catan(tmpd); - cacosh(tmpd); - casinh(tmpd); - catanh(tmpd); - typedef __complex__ long double ld_type; ld_type tmpld; - cacosl(tmpld); - casinl(tmpld); - catanl(tmpld); - cacoshl(tmpld); - casinhl(tmpld); - catanhl(tmpld); - +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_complex_tr1=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_complex_tr1=no +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +else + LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_c99_complex_tr1" >&5 -echo "${ECHO_T}$ac_c99_complex_tr1" >&6 - if test x"$ac_c99_complex_tr1" = x"yes"; then +done -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_COMPLEX_TR1 1 -_ACEOF - fi + if test x$ac_cv_func_copysignl = x"yes"; then - # Check for the existence of functions. - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - if test "${ac_c99_ctype_tr1+set}" = set; then +for ac_func in __signbitl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - cat >conftest.$ac_ext <<_ACEOF + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -int ch; - int ret; - ret = isblank(ch); - +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_ctype_tr1=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_ctype_tr1=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - echo "$as_me:$LINENO: result: $ac_c99_ctype_tr1" >&5 -echo "${ECHO_T}$ac_c99_ctype_tr1" >&6 - if test x"$ac_c99_ctype_tr1" = x"yes"; then +else + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_CTYPE_TR1 1 -_ACEOF + fi + # Used in libmath/Makefile.am. + if test -n "$LIBMATHOBJS"; then + need_libmath=yes fi - # Check for the existence of functions. -for ac_header in fenv.h + ;; + *-netbsd*) + + + + + + + + + + + + +for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \ + machine/endian.h machine/param.h sys/machine.h sys/types.h \ + fp.h locale.h float.h inttypes.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -109125,7 +110678,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 @@ -109169,8 +110722,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then - ac_cpp_err=$ac_cxx_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -109190,7 +110743,7 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} @@ -109236,605 +110789,655 @@ if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - ac_has_fenv_h=yes -else - ac_has_fenv_h=no + fi done - ac_c99_fenv_tr1=no; - if test x"$ac_has_fenv_h" = x"yes"; then - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF + SECTION_FLAGS='-ffunction-sections -fdata-sections' + + + # If we're not using GNU ld, then there's no point in even trying these + # tests. Check for that first. We should have already tested for gld + # by now (in libtool), but require it now just to be safe... + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' + + + + # The name set by libtool depends on the version of libtool. Shame on us + # for depending on an impl detail, but c'est la vie. Older versions used + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't + # set (hence we're using an older libtool), then set it. + if test x${with_gnu_ld+set} != xset; then + if test x${ac_cv_prog_gnu_ld+set} != xset; then + # We got through "ac_require(ac_prog_ld)" and still not set? Huh? + with_gnu_ld=no + else + with_gnu_ld=$ac_cv_prog_gnu_ld + fi + fi + + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + glibcxx_ld_is_gold=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld version" >&5 +echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 +echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 + fi + + # Set --gc-sections. + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && + test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then + # Sufficiently young GNU ld it is! Joy and bunny rabbits! + # NB: This flag only works reliably after 2.16.1. Configure tests + # for this are difficult, so hard wire a value that should work. + + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-Wl,--gc-sections' + + # Check for -Wl,--gc-sections + echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 +echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + int one(void) { return 1; } + int two(void) { return 2; } + int main () { -int except, mode; - fexcept_t* pflag; - fenv_t* penv; - int ret; - ret = feclearexcept(except); - ret = fegetexceptflag(pflag, except); - ret = feraiseexcept(except); - ret = fesetexceptflag(pflag, except); - ret = fetestexcept(except); - ret = fegetround(); - ret = fesetround(mode); - ret = fegetenv(penv); - ret = feholdexcept(penv); - ret = fesetenv(penv); - ret = feupdateenv(penv); - + two(); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_fenv_tr1=yes + ac_gcsections=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_fenv_tr1=no +ac_gcsections=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_gcsections" = "yes"; then + rm -f conftest.c + touch conftest.c + if $CC -c conftest.c; then + if $LD --gc-sections -o conftest conftest.o 2>&1 | \ + grep "Warning: gc-sections option ignored" > /dev/null; then + ac_gcsections=no + fi + fi + rm -f conftest.c conftest.o conftest + fi + if test "$ac_gcsections" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$as_me:$LINENO: result: $ac_gcsections" >&5 +echo "${ECHO_T}$ac_gcsections" >&6 + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi fi - echo "$as_me:$LINENO: result: $ac_c99_fenv_tr1" >&5 -echo "${ECHO_T}$ac_c99_fenv_tr1" >&6 - if test x"$ac_c99_fenv_tr1" = x"yes"; then -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_FENV_TR1 1 -_ACEOF + # Set -z,relro. + # Note this is only for shared objects. + ac_ld_relro=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 +echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 + cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` + if test -n "$cxx_z_relo"; then + OPT_LDFLAGS="-Wl,-z,relro" + ac_ld_relro=yes + fi + echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 +echo "${ECHO_T}$ac_ld_relro" >&6 + fi + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" fi - # Check for the existence of types. - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - if test "${ac_c99_stdint_tr1+set}" = set; then + + + + + +echo "$as_me:$LINENO: checking for main in -lm" >&5 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 +if test "${ac_cv_lib_m_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - cat >conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $LIBS" +if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include + + int main () { -typedef int8_t my_int8_t; - typedef int16_t my_int16_t; - typedef int32_t my_int32_t; - typedef int64_t my_int64_t; - typedef int_fast8_t my_int_fast8_t; - typedef int_fast16_t my_int_fast16_t; - typedef int_fast32_t my_int_fast32_t; - typedef int_fast64_t my_int_fast64_t; - typedef int_least8_t my_int_least8_t; - typedef int_least16_t my_int_least16_t; - typedef int_least32_t my_int_least32_t; - typedef int_least64_t my_int_least64_t; - typedef intmax_t my_intmax_t; - typedef intptr_t my_intptr_t; - typedef uint8_t my_uint8_t; - typedef uint16_t my_uint16_t; - typedef uint32_t my_uint32_t; - typedef uint64_t my_uint64_t; - typedef uint_fast8_t my_uint_fast8_t; - typedef uint_fast16_t my_uint_fast16_t; - typedef uint_fast32_t my_uint_fast32_t; - typedef uint_fast64_t my_uint_fast64_t; - typedef uint_least8_t my_uint_least8_t; - typedef uint_least16_t my_uint_least16_t; - typedef uint_least32_t my_uint_least32_t; - typedef uint_least64_t my_uint_least64_t; - typedef uintmax_t my_uintmax_t; - typedef uintptr_t my_uintptr_t; - +main (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_stdint_tr1=yes + ac_cv_lib_m_main=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_stdint_tr1=no +ac_cv_lib_m_main=no fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6 +if test $ac_cv_lib_m_main = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF - echo "$as_me:$LINENO: result: $ac_c99_stdint_tr1" >&5 -echo "${ECHO_T}$ac_c99_stdint_tr1" >&6 - if test x"$ac_c99_stdint_tr1" = x"yes"; then + LIBS="-lm $LIBS" -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_STDINT_TR1 1 -_ACEOF +fi - fi - # Check for the existence of functions. - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - if test "${ac_c99_math_tr1+set}" = set; then +for ac_func in copysignf +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - cat >conftest.$ac_ext <<_ACEOF + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -int -main () -{ -typedef double_t my_double_t; - typedef float_t my_float_t; - acosh(0.0); - acoshf(0.0f); - acoshl(0.0l); - asinh(0.0); - asinhf(0.0f); - asinhl(0.0l); - atanh(0.0); - atanhf(0.0f); - atanhl(0.0l); - cbrt(0.0); - cbrtf(0.0f); - cbrtl(0.0l); - copysign(0.0, 0.0); - copysignf(0.0f, 0.0f); - copysignl(0.0l, 0.0l); - erf(0.0); - erff(0.0f); - erfl(0.0l); - erfc(0.0); - erfcf(0.0f); - erfcl(0.0l); - exp2(0.0); - exp2f(0.0f); - exp2l(0.0l); - expm1(0.0); - expm1f(0.0f); - expm1l(0.0l); - fdim(0.0, 0.0); - fdimf(0.0f, 0.0f); - fdiml(0.0l, 0.0l); - fma(0.0, 0.0, 0.0); - fmaf(0.0f, 0.0f, 0.0f); - fmal(0.0l, 0.0l, 0.0l); - fmax(0.0, 0.0); - fmaxf(0.0f, 0.0f); - fmaxl(0.0l, 0.0l); - fmin(0.0, 0.0); - fminf(0.0f, 0.0f); - fminl(0.0l, 0.0l); - hypot(0.0, 0.0); - hypotf(0.0f, 0.0f); - hypotl(0.0l, 0.0l); - ilogb(0.0); - ilogbf(0.0f); - ilogbl(0.0l); - lgamma(0.0); - lgammaf(0.0f); - lgammal(0.0l); - llrint(0.0); - llrintf(0.0f); - llrintl(0.0l); - llround(0.0); - llroundf(0.0f); - llroundl(0.0l); - log1p(0.0); - log1pf(0.0f); - log1pl(0.0l); - log2(0.0); - log2f(0.0f); - log2l(0.0l); - logb(0.0); - logbf(0.0f); - logbl(0.0l); - lrint(0.0); - lrintf(0.0f); - lrintl(0.0l); - lround(0.0); - lroundf(0.0f); - lroundl(0.0l); - nan(0); - nanf(0); - nanl(0); - nearbyint(0.0); - nearbyintf(0.0f); - nearbyintl(0.0l); - nextafter(0.0, 0.0); - nextafterf(0.0f, 0.0f); - nextafterl(0.0l, 0.0l); - nexttoward(0.0, 0.0); - nexttowardf(0.0f, 0.0f); - nexttowardl(0.0l, 0.0l); - remainder(0.0, 0.0); - remainderf(0.0f, 0.0f); - remainderl(0.0l, 0.0l); - remquo(0.0, 0.0, 0); - remquo(0.0f, 0.0f, 0); - remquo(0.0l, 0.0l, 0); - rint(0.0); - rintf(0.0f); - rintl(0.0l); - round(0.0); - roundf(0.0f); - roundl(0.0l); - scalbln(0.0, 0l); - scalblnf(0.0f, 0l); - scalblnl(0.0l, 0l); - scalbn(0.0, 0); - scalbnf(0.0f, 0); - scalbnl(0.0l, 0); - tgamma(0.0); - tgammaf(0.0f); - tgammal(0.0l); - trunc(0.0); - truncf(0.0f); - truncl(0.0l); +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif +int +main () +{ +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_math_tr1=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_math_tr1=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - echo "$as_me:$LINENO: result: $ac_c99_math_tr1" >&5 -echo "${ECHO_T}$ac_c99_math_tr1" >&6 - if test x"$ac_c99_math_tr1" = x"yes"; then +else + LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_MATH_TR1 1 -_ACEOF - fi - # Check for the existence of functions (NB: doesn't make - # sense if the previous check fails, per C99, 7.8/1). - ac_c99_inttypes_tr1=no; - if test x"$ac_c99_stdint_tr1" = x"yes"; then - echo "$as_me:$LINENO: checking for ISO C99 support to TR1 in " >&5 -echo $ECHO_N "checking for ISO C99 support to TR1 in ... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF +for ac_func in __signbit +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -intmax_t i, numer, denom, base; - const char* s; - char** endptr; - intmax_t ret = imaxabs(i); - imaxdiv_t dret = imaxdiv(numer, denom); - ret = strtoimax(s, endptr, base); - uintmax_t uret = strtoumax(s, endptr, base); - +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_c99_inttypes_tr1=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_c99_inttypes_tr1=no +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_c99_inttypes_tr1" >&5 -echo "${ECHO_T}$ac_c99_inttypes_tr1" >&6 - if test x"$ac_c99_inttypes_tr1" = x"yes"; then - -cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_C99_INTTYPES_TR1 1 +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi +else + LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done - # Check for the existence of the header. -for ac_header in stdbool.h + +for ac_func in __signbitf do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != $ac_func; + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_cxx_werror_flag" + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_cxx_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" +eval "$as_ac_var=no" fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF +else + LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi - done - CXXFLAGS="$ac_save_CXXFLAGS" - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - + if test x$ac_cv_func_copysignl = x"yes"; then - # Check for sigsetjmp - cat >conftest.$ac_ext <<_ACEOF +for ac_func in __signbitl +do +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` +echo "$as_me:$LINENO: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$as_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $ac_func + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +char (*f) () = $ac_func; +#endif +#ifdef __cplusplus +} +#endif + int main () { -sigjmp_buf env; - while (! sigsetjmp (env, 1)) - siglongjmp (env, 1); - +return f != $ac_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -109848,29 +111451,108 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGSETJMP 1 -_ACEOF - + eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 +eval "$as_ac_var=no" fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +else + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + # Used in libmath/Makefile.am. + if test -n "$LIBMATHOBJS"; then + need_libmath=yes + fi + + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGNF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITEF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITE 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FREXPF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOTF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINFF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNAN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNANF 1 +_ACEOF + + if test x"long_double_math_on_this_cpu" = x"yes"; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITEL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINFL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNANL 1 +_ACEOF + + fi ;; - *-mingw32*) + *-netware) -for ac_header in sys/types.h locale.h float.h + + + + + +for ac_header in nan.h ieeefp.h sys/isa_defs.h sys/machine.h \ + sys/types.h locale.h float.h inttypes.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -110019,13 +111701,7 @@ fi done - cat >>confdefs.h <<\_ACEOF -#define HAVE_STRTOF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_STRTOLD 1 -_ACEOF + SECTION_FLAGS='-ffunction-sections -fdata-sections' # If we're not using GNU ld, then there's no point in even trying these @@ -110053,12 +111729,16 @@ _ACEOF # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + glibcxx_ld_is_gold=no if test x"$with_gnu_ld" = x"yes"; then echo "$as_me:$LINENO: checking for ld version" >&5 echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` glibcxx_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -110067,10 +111747,19 @@ echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then # Sufficiently young GNU ld it is! Joy and bunny rabbits! # NB: This flag only works reliably after 2.16.1. Configure tests # for this are difficult, so hard wire a value that should work. @@ -110705,23 +112394,390 @@ done fi + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOT 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNAN 1 +_ACEOF + + + # For showmanyc_helper(). + + +for ac_header in sys/ioctl.h sys/filio.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +else + # Is the header compilable? +echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_header_compiler=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6 + +# Is the header present? +echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6 + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes ;; - *-netbsd*) + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ( + cat <<\_ASBOX +## ----------------------------------------- ## +## Report this to the package-unused lists. ## +## ----------------------------------------- ## +_ASBOX + ) | + sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac +echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$as_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF +fi +done + echo "$as_me:$LINENO: checking for poll" >&5 +echo $ECHO_N "checking for poll... $ECHO_C" >&6 + if test "${glibcxx_cv_POLL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +struct pollfd pfd[1]; + pfd[0].events = POLLIN; + poll(pfd, 1, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_POLL=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +glibcxx_cv_POLL=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + if test $glibcxx_cv_POLL = yes; then +cat >>confdefs.h <<\_ACEOF +#define HAVE_POLL 1 +_ACEOF + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_POLL" >&5 +echo "${ECHO_T}$glibcxx_cv_POLL" >&6 -for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \ - machine/endian.h machine/param.h sys/machine.h sys/types.h \ - fp.h locale.h float.h inttypes.h + + echo "$as_me:$LINENO: checking for S_ISREG or S_IFREG" >&5 +echo $ECHO_N "checking for S_ISREG or S_IFREG... $ECHO_C" >&6 + if test "${glibcxx_cv_S_ISREG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +struct stat buffer; + fstat(0, &buffer); + S_ISREG(buffer.st_mode); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_S_ISREG=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_S_ISREG=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + if test "${glibcxx_cv_S_IFREG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +struct stat buffer; + fstat(0, &buffer); + S_IFREG & buffer.st_mode; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_S_IFREG=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_S_IFREG=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + res=no + if test $glibcxx_cv_S_ISREG = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_S_ISREG 1 +_ACEOF + + res=S_ISREG + elif test $glibcxx_cv_S_IFREG = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_S_IFREG 1 +_ACEOF + + res=S_IFREG + fi + echo "$as_me:$LINENO: result: $res" >&5 +echo "${ECHO_T}$res" >&6 + + + # For xsputn_2(). + +for ac_header in sys/uio.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -110870,6 +112926,80 @@ fi done + + echo "$as_me:$LINENO: checking for writev" >&5 +echo $ECHO_N "checking for writev... $ECHO_C" >&6 + if test "${glibcxx_cv_WRITEV+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +struct iovec iov[2]; + writev(0, iov, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + glibcxx_cv_WRITEV=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +glibcxx_cv_WRITEV=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi + + if test $glibcxx_cv_WRITEV = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_WRITEV 1 +_ACEOF + + fi + echo "$as_me:$LINENO: result: $glibcxx_cv_WRITEV" >&5 +echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 + + ;; + *-qnx6.1* | *-qnx6.2*) SECTION_FLAGS='-ffunction-sections -fdata-sections' @@ -110898,12 +113028,16 @@ done # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + glibcxx_ld_is_gold=no if test x"$with_gnu_ld" = x"yes"; then echo "$as_me:$LINENO: checking for ld version" >&5 echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` glibcxx_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -110912,10 +113046,19 @@ echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then # Sufficiently young GNU ld it is! Joy and bunny rabbits! # NB: This flag only works reliably after 2.16.1. Configure tests # for this are difficult, so hard wire a value that should work. @@ -111551,35 +113694,375 @@ done cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 +#define HAVE_COSF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNF 1 +#define HAVE_COSL 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEF 1 +#define HAVE_COSHF 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE 1 +#define HAVE_COSHL 1 _ACEOF cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPF 1 +#define HAVE_LOGF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOGL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOG10F 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOG10L 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINHF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINHL 1 +_ACEOF + + ;; + *-solaris*) + case "$target" in + *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10) + + # If we're not using GNU ld, then there's no point in even trying these + # tests. Check for that first. We should have already tested for gld + # by now (in libtool), but require it now just to be safe... + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' + + + + # The name set by libtool depends on the version of libtool. Shame on us + # for depending on an impl detail, but c'est la vie. Older versions used + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't + # set (hence we're using an older libtool), then set it. + if test x${with_gnu_ld+set} != xset; then + if test x${ac_cv_prog_gnu_ld+set} != xset; then + # We got through "ac_require(ac_prog_ld)" and still not set? Huh? + with_gnu_ld=no + else + with_gnu_ld=$ac_cv_prog_gnu_ld + fi + fi + + # Start by getting the version number. I think the libtool test already + # does some of this, but throws away the result. + glibcxx_ld_is_gold=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld version" >&5 +echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` + + glibcxx_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 +echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 + fi + + # Set --gc-sections. + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && + test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then + # Sufficiently young GNU ld it is! Joy and bunny rabbits! + # NB: This flag only works reliably after 2.16.1. Configure tests + # for this are difficult, so hard wire a value that should work. + + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-Wl,--gc-sections' + + # Check for -Wl,--gc-sections + echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 +echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + int one(void) { return 1; } + int two(void) { return 2; } + +int +main () +{ + two(); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_gcsections=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_gcsections=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$ac_gcsections" = "yes"; then + rm -f conftest.c + touch conftest.c + if $CC -c conftest.c; then + if $LD --gc-sections -o conftest conftest.o 2>&1 | \ + grep "Warning: gc-sections option ignored" > /dev/null; then + ac_gcsections=no + fi + fi + rm -f conftest.c conftest.o conftest + fi + if test "$ac_gcsections" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$as_me:$LINENO: result: $ac_gcsections" >&5 +echo "${ECHO_T}$ac_gcsections" >&6 + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + fi + + # Set -z,relro. + # Note this is only for shared objects. + ac_ld_relro=no + if test x"$with_gnu_ld" = x"yes"; then + echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 +echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 + cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` + if test -n "$cxx_z_relo"; then + OPT_LDFLAGS="-Wl,-z,relro" + ac_ld_relro=yes + fi + echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 +echo "${ECHO_T}$ac_ld_relro" >&6 + fi + + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi + + + + + cat >>confdefs.h <<\_ACEOF +#define HAVE_MBSTATE_T 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_POLL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_S_ISREG 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LC_MESSAGES 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITE 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FPCLASS 1 +_ACEOF + + # All of the dependencies for wide character support are here, so + # turn it on. + cat >>confdefs.h <<\_ACEOF +#define _GLIBCXX_USE_WCHAR_T 1 +_ACEOF + + # Are these tested for even when cross? + cat >>confdefs.h <<\_ACEOF +#define HAVE_FLOAT_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_IEEEFP_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_INTTYPES_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOCALE_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_NAN_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SYS_FILIO_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SYS_IOCTL_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SYS_ISA_DEFS_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SYS_RESOURCE_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SYS_TIME_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SYS_TYPES_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_UNISTD_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_WCHAR_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_WCTYPE_H 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + ;; + esac + case "$target" in + sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10) + # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386 + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_ABS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_LABS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_FABSL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_COS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_COSF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SIN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE___BUILTIN_SINF 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOTF 1 + ;; + esac + case "$target" in + *-*-solaris2.10) + # These two C99 functions are present only in Solaris >= 10 + cat >>confdefs.h <<\_ACEOF +#define HAVE_STRTOF 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_STRTOLD 1 _ACEOF + ;; + esac cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINFF 1 +#define HAVE_COPYSIGN 1 _ACEOF cat >>confdefs.h <<\_ACEOF @@ -111590,22 +114073,16 @@ _ACEOF #define HAVE_ISNANF 1 _ACEOF - if test x"long_double_math_on_this_cpu" = x"yes"; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINFL 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_MODFF 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANL 1 + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOT 1 _ACEOF - fi ;; - *-netware) + *-tpf) @@ -111614,8 +114091,8 @@ _ACEOF -for ac_header in nan.h ieeefp.h sys/isa_defs.h sys/machine.h \ - sys/types.h locale.h float.h inttypes.h +for ac_header in nan.h endian.h machine/endian.h \ + sys/param.h sys/types.h locale.h float.h inttypes.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -111792,12 +114269,16 @@ done # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. + glibcxx_ld_is_gold=no if test x"$with_gnu_ld" = x"yes"; then echo "$as_me:$LINENO: checking for ld version" >&5 echo $ECHO_N "checking for ld version... $ECHO_C" >&6 + if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then + glibcxx_ld_is_gold=yes + fi ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` + sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'` glibcxx_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` @@ -111806,10 +114287,19 @@ echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 fi # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && + glibcxx_have_gc_sections=no + if test "$glibcxx_ld_is_gold" = "yes"; then + if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then + glibcxx_have_gc_sections=yes + fi + else + glibcxx_gcsections_min_ld=21602 + if test x"$with_gnu_ld" = x"yes" && test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - + glibcxx_have_gc_sections=yes + fi + fi + if test "$glibcxx_have_gc_sections" = "yes"; then # Sufficiently young GNU ld it is! Joy and bunny rabbits! # NB: This flag only works reliably after 2.16.1. Configure tests # for this are difficult, so hard wire a value that should work. @@ -112387,7 +114877,492 @@ char (*f) () = $ac_func; int main () { -return f != $ac_func; +return f != $ac_func; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$as_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +eval "$as_ac_var=no" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 +if test `eval echo '${'$as_ac_var'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +else + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + # Used in libmath/Makefile.am. + if test -n "$LIBMATHOBJS"; then + need_libmath=yes + fi + + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGNF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITE 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITEF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FREXPF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOTF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINFF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNAN 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNANF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINCOS 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINCOSF 1 +_ACEOF + + if test x"long_double_math_on_this_cpu" = x"yes"; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_FINITEL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOTL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISINFL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ISNANL 1 +_ACEOF + + fi + ;; + *-vxworks) + cat >>confdefs.h <<\_ACEOF +#define HAVE_ACOSF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ASINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ATAN2F 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ATANF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_CEILF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COSF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COSHF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_EXPF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FABSF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FLOORF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FMODF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_HYPOT 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOG10F 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOGF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_POWF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINHF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SQRTF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_TANF 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_TANHF 1 +_ACEOF + + ;; + *) + { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5 +echo "$as_me: error: No support for this host/target combination." >&2;} + { (exit 1); exit 1; }; } + ;; +esac + + fi + + # At some point, we should differentiate between architectures + # like x86, which have long double versions, and alpha/powerpc/etc., + # which don't. For the time being, punt. + if test x"long_double_math_on_this_cpu" = x"yes"; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_ACOSL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ASINL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ATAN2L 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_ATANL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_CEILL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COPYSIGNL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COSL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_COSHL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_EXPL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FABSL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FLOORL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FMODL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_FREXPL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LDEXPL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOG10L 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_LOGL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_MODFL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_POWL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINCOSL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SINHL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_SQRTL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_TANL 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define HAVE_TANHL 1 +_ACEOF + + fi + + # Assume we have _Unwind_GetIPInfo for cross-compiles. + cat >>confdefs.h <<\_ACEOF +#define HAVE_GETIPINFO 1 +_ACEOF + +fi + + # Check whether --enable-linux-futex or --disable-linux-futex was given. +if test "${enable_linux_futex+set}" = set; then + enableval="$enable_linux_futex" + + case "$enableval" in + yes|no|default) ;; + *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 +echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} + { (exit 1); exit 1; }; } ;; + esac + +else + enable_linux_futex=default +fi; + +case "$target" in + *-linux*) + case "$enable_linux_futex" in + default) + # If headers don't have gettid/futex syscalls definition, then + # default to no, otherwise there will be compile time failures. + # Otherwise, default to yes. If we don't detect we are + # compiled/linked against NPTL and not cross-compiling, check + # if programs are run by default against NPTL and if not, issue + # a warning. + enable_linux_futex=no + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + int lk; +int +main () +{ +syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + save_LIBS="$LIBS" + LIBS="-lpthread $LIBS" + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifndef _GNU_SOURCE + #define _GNU_SOURCE 1 + #endif + #include + pthread_t th; void *status; +int +main () +{ +pthread_tryjoin_np (th, &status); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + enable_linux_futex=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +if test x$cross_compiling = xno; then + if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ + | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else + { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. +If so, please configure with --disable-linux-futex" >&5 +echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. +If so, please configure with --disable-linux-futex" >&2;} + fi + fi + enable_linux_futex=yes +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$save_LIBS" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ;; + yes) + if test x$gcc_no_link = xyes; then + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} + { (exit 1); exit 1; }; } +fi +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + int lk; +int +main () +{ +syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); ; return 0; } @@ -112414,75 +115389,70 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 +echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} + { (exit 1); exit 1; }; } fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" -fi -done - - fi - - # Used in libmath/Makefile.am. - if test -n "$LIBMATHOBJS"; then - need_libmath=yes - fi - + ;; + esac + ;; + *) + enable_linux_futex=no + ;; +esac +if test x$enable_linux_futex = xyes; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOT 1 +cat >>confdefs.h <<\_ACEOF +#define HAVE_LINUX_FUTEX 1 _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF 1 -_ACEOF +fi - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN 1 -_ACEOF - # For showmanyc_helper(). +inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` -for ac_header in sys/ioctl.h sys/filio.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +acx_cv_header_stdint=stddef.h +acx_cv_header_stdint_kind="(already complete)" +for i in stdint.h $inttype_headers; do + unset ac_cv_type_uintptr_t + unset ac_cv_type_uintmax_t + unset ac_cv_type_int_least32_t + unset ac_cv_type_int_fast32_t + unset ac_cv_type_uint64_t + echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for uintmax_t" >&5 +echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 +if test "${ac_cv_type_uintmax_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include +#include <$i> + +int +main () +{ +if ((uintmax_t *) 0) + return 0; +if (sizeof (uintmax_t)) + return 0; + ; + return 0; +} _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -112506,141 +115476,115 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes + ac_cv_type_uintmax_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_header_compiler=no +ac_cv_type_uintmax_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 +echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 +if test $ac_cv_type_uintmax_t = yes; then + acx_cv_header_stdint=$i +else + continue +fi -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF + echo "$as_me:$LINENO: checking for uintptr_t" >&5 +echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 +if test "${ac_cv_type_uintptr_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <$ac_header> +#include +#include <$i> + +int +main () +{ +if ((uintptr_t *) 0) + return 0; +if (sizeof (uintptr_t)) + return 0; + ; + return 0; +} _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_uintptr_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" +ac_cv_type_uintptr_t=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - +echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 +echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 +if test $ac_cv_type_uintptr_t = yes; then + : +else + acx_cv_header_stdint_kind="(mostly complete)" fi -done - - - echo "$as_me:$LINENO: checking for poll" >&5 -echo $ECHO_N "checking for poll... $ECHO_C" >&6 - if test "${glibcxx_cv_POLL+set}" = set; then + echo "$as_me:$LINENO: checking for int_least32_t" >&5 +echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 +if test "${ac_cv_type_int_least32_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include +#include <$i> + int main () { -struct pollfd pfd[1]; - pfd[0].events = POLLIN; - poll(pfd, 1, 0); +if ((int_least32_t *) 0) + return 0; +if (sizeof (int_least32_t)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -112654,66 +115598,57 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_POLL=yes + ac_cv_type_int_least32_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_POLL=no +ac_cv_type_int_least32_t=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 +echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 +if test $ac_cv_type_int_least32_t = yes; then + : +else + acx_cv_header_stdint_kind="(mostly complete)" fi - if test $glibcxx_cv_POLL = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_POLL 1 -_ACEOF - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_POLL" >&5 -echo "${ECHO_T}$glibcxx_cv_POLL" >&6 - - - echo "$as_me:$LINENO: checking for S_ISREG or S_IFREG" >&5 -echo $ECHO_N "checking for S_ISREG or S_IFREG... $ECHO_C" >&6 - if test "${glibcxx_cv_S_ISREG+set}" = set; then + echo "$as_me:$LINENO: checking for int_fast32_t" >&5 +echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 +if test "${ac_cv_type_int_fast32_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include +#include <$i> + int main () { -struct stat buffer; - fstat(0, &buffer); - S_ISREG(buffer.st_mode); +if ((int_fast32_t *) 0) + return 0; +if (sizeof (int_fast32_t)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -112727,53 +115662,57 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_S_ISREG=yes + ac_cv_type_int_fast32_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_S_ISREG=no +ac_cv_type_int_fast32_t=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 +echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 +if test $ac_cv_type_int_fast32_t = yes; then + : +else + acx_cv_header_stdint_kind="(mostly complete)" fi - if test "${glibcxx_cv_S_IFREG+set}" = set; then + echo "$as_me:$LINENO: checking for uint64_t" >&5 +echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 +if test "${ac_cv_type_uint64_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include +#include <$i> + int main () { -struct stat buffer; - fstat(0, &buffer); - S_IFREG & buffer.st_mode; +if ((uint64_t *) 0) + return 0; +if (sizeof (uint64_t)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -112787,69 +115726,62 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_S_IFREG=yes + ac_cv_type_uint64_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_S_IFREG=no +ac_cv_type_uint64_t=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 +echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 +if test $ac_cv_type_uint64_t = yes; then + : +else + acx_cv_header_stdint_kind="(lacks uint64_t)" fi - res=no - if test $glibcxx_cv_S_ISREG = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_S_ISREG 1 -_ACEOF - - res=S_ISREG - elif test $glibcxx_cv_S_IFREG = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_S_IFREG 1 -_ACEOF - - res=S_IFREG - fi - echo "$as_me:$LINENO: result: $res" >&5 -echo "${ECHO_T}$res" >&6 - - - # For xsputn_2(). - -for ac_header in sys/uio.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then + break +done +if test "$acx_cv_header_stdint" = stddef.h; then + acx_cv_header_stdint_kind="(lacks uintmax_t)" + for i in stdint.h $inttype_headers; do + unset ac_cv_type_uintptr_t + unset ac_cv_type_uint32_t + unset ac_cv_type_uint64_t + echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for uint32_t" >&5 +echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 +if test "${ac_cv_type_uint32_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include +#include <$i> + +int +main () +{ +if ((uint32_t *) 0) + return 0; +if (sizeof (uint32_t)) + return 0; + ; + return 0; +} _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -112873,140 +115805,110 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes + ac_cv_type_uint32_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_header_compiler=no +ac_cv_type_uint32_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 +fi +echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 +echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 +if test $ac_cv_type_uint32_t = yes; then + acx_cv_header_stdint=$i +else + continue +fi -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF + echo "$as_me:$LINENO: checking for uint64_t" >&5 +echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 +if test "${ac_cv_type_uint64_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <$ac_header> +#include +#include <$i> + +int +main () +{ +if ((uint64_t *) 0) + return 0; +if (sizeof (uint64_t)) + return 0; + ; + return 0; +} _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_uint64_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - +ac_cv_type_uint64_t=no fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi +echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 +echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 -done - - - echo "$as_me:$LINENO: checking for writev" >&5 -echo $ECHO_N "checking for writev... $ECHO_C" >&6 - if test "${glibcxx_cv_WRITEV+set}" = set; then + echo "$as_me:$LINENO: checking for uintptr_t" >&5 +echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 +if test "${ac_cv_type_uintptr_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include +#include +#include <$i> + int main () { -struct iovec iov[2]; - writev(0, iov, 0); +if ((uintptr_t *) 0) + return 0; +if (sizeof (uintptr_t)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113020,118 +115922,61 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - glibcxx_cv_WRITEV=yes + ac_cv_type_uintptr_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -glibcxx_cv_WRITEV=no +ac_cv_type_uintptr_t=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi +echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 +echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 - if test $glibcxx_cv_WRITEV = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_WRITEV 1 -_ACEOF - - fi - echo "$as_me:$LINENO: result: $glibcxx_cv_WRITEV" >&5 -echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6 - - ;; - *-qnx6.1* | *-qnx6.2*) - SECTION_FLAGS='-ffunction-sections -fdata-sections' - - - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - - - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld version" >&5 -echo $ECHO_N "checking for ld version... $ECHO_C" >&6 - - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - - glibcxx_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` - echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 -echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 - fi - - # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && - test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - - # Sufficiently young GNU ld it is! Joy and bunny rabbits! - # NB: This flag only works reliably after 2.16.1. Configure tests - # for this are difficult, so hard wire a value that should work. - - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-Wl,--gc-sections' - - # Check for -Wl,--gc-sections - echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 -echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } + break + done fi -cat >conftest.$ac_ext <<_ACEOF +if test "$acx_cv_header_stdint" = stddef.h; then + acx_cv_header_stdint_kind="(u_intXX_t style)" + for i in sys/types.h $inttype_headers; do + unset ac_cv_type_u_int32_t + unset ac_cv_type_u_int64_t + echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for u_int32_t" >&5 +echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 +if test "${ac_cv_type_u_int32_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - int one(void) { return 1; } - int two(void) { return 2; } +#include +#include <$i> int main () { - two(); +if ((u_int32_t *) 0) + return 0; +if (sizeof (u_int32_t)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113145,102 +115990,57 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_gcsections=yes + ac_cv_type_u_int32_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_gcsections=no +ac_cv_type_u_int32_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 +echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 +if test $ac_cv_type_u_int32_t = yes; then + acx_cv_header_stdint=$i +else + continue fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$ac_gcsections" = "yes"; then - rm -f conftest.c - touch conftest.c - if $CC -c conftest.c; then - if $LD --gc-sections -o conftest conftest.o 2>&1 | \ - grep "Warning: gc-sections option ignored" > /dev/null; then - ac_gcsections=no - fi - fi - rm -f conftest.c conftest.o conftest - fi - if test "$ac_gcsections" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - echo "$as_me:$LINENO: result: $ac_gcsections" >&5 -echo "${ECHO_T}$ac_gcsections" >&6 - - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi - fi - - # Set -z,relro. - # Note this is only for shared objects. - ac_ld_relro=no - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 -echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 - cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` - if test -n "$cxx_z_relo"; then - OPT_LDFLAGS="-Wl,-z,relro" - ac_ld_relro=yes - fi - echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 -echo "${ECHO_T}$ac_ld_relro" >&6 - fi - - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" - fi - - - - - -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then + echo "$as_me:$LINENO: checking for u_int64_t" >&5 +echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 +if test "${ac_cv_type_u_int64_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - +#include +#include <$i> int main () { -main (); +if ((u_int64_t *) 0) + return 0; +if (sizeof (u_int64_t)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113254,102 +116054,92 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + ac_cv_type_u_int64_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no +ac_cv_type_u_int64_t=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" +echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 +echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 + break + done +fi +if test "$acx_cv_header_stdint" = stddef.h; then + acx_cv_header_stdint_kind="(using manual detection)" fi +test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no +test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no +test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no +test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no +test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no -for ac_func in copysignf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +# ----------------- Summarize what we found so far + +echo "$as_me:$LINENO: checking what to include in include/gstdint.h" >&5 +echo $ECHO_N "checking what to include in include/gstdint.h... $ECHO_C" >&6 + +case `$as_basename include/gstdint.h || +$as_expr X/include/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ + Xinclude/gstdint.h : 'X\(//\)$' \| \ + Xinclude/gstdint.h : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/include/gstdint.h | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` in + stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 +echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; + inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 +echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; + *) ;; +esac + +echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 +echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 + +# ----------------- done included file, check C basic types -------- + +# Lacking an uintptr_t? Test size of void * +case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in + stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 +echo $ECHO_N "checking for void *... $ECHO_C" >&6 +if test "${ac_cv_type_void_p+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +$ac_includes_default int main () { -return f != $ac_func; +if ((void * *) 0) + return 0; +if (sizeof (void *)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113363,103 +116153,56 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_cv_type_void_p=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" +ac_cv_type_void_p=no fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -done - - +echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 +echo "${ECHO_T}$ac_cv_type_void_p" >&6 -for ac_func in __signbit -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +echo "$as_me:$LINENO: checking size of void *" >&5 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6 +if test "${ac_cv_sizeof_void_p+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi + if test "$ac_cv_type_void_p" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +$ac_includes_default int main () { -return f != $ac_func; +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113473,103 +116216,34 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBMATHOBJS="$LIBMATHOBJS signbit.lo" -fi -done - - - -for ac_func in __signbitf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +$ac_includes_default int main () { -return f != $ac_func; +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113583,104 +116257,91 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done else - LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" -fi -done - - - if test x$ac_cv_func_copysignl = x"yes"; then + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -for ac_func in __signbitl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" +$ac_includes_default +int +main () { -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif +static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default int main () { -return f != $ac_func; +static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113694,180 +116355,58 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done else - LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" -fi -done - - fi - - # Used in libmath/Makefile.am. - if test -n "$LIBMATHOBJS"; then - need_libmath=yes - fi - - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOGF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOGL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10L 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHL 1 -_ACEOF - - ;; - *-solaris*) - case "$target" in - # *-solaris2.5) - # os_include_dir="os/solaris/solaris2.5" - # ;; - # *-solaris2.6) - # os_include_dir="os/solaris/solaris2.6" - # ;; - *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10) - - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - - - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld version" >&5 -echo $ECHO_N "checking for ld version... $ECHO_C" >&6 - - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - - glibcxx_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` - echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 -echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 - fi - - # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && - test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - - # Sufficiently young GNU ld it is! Joy and bunny rabbits! - # NB: This flag only works reliably after 2.16.1. Configure tests - # for this are difficult, so hard wire a value that should work. - - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-Wl,--gc-sections' + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - # Check for -Wl,--gc-sections - echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 -echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } +ac_lo= ac_hi= fi -cat >conftest.$ac_ext <<_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - int one(void) { return 1; } - int two(void) { return 2; } - +$ac_includes_default int main () { - two(); +static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -113881,278 +116420,193 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_gcsections=yes + ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_gcsections=no +ac_lo=`expr '(' $ac_mid ')' + 1` fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$ac_gcsections" = "yes"; then - rm -f conftest.c - touch conftest.c - if $CC -c conftest.c; then - if $LD --gc-sections -o conftest conftest.o 2>&1 | \ - grep "Warning: gc-sections option ignored" > /dev/null; then - ac_gcsections=no - fi - fi - rm -f conftest.c conftest.o conftest - fi - if test "$ac_gcsections" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - echo "$as_me:$LINENO: result: $ac_gcsections" >&5 -echo "${ECHO_T}$ac_gcsections" >&6 - - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi - fi - - # Set -z,relro. - # Note this is only for shared objects. - ac_ld_relro=no - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 -echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 - cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` - if test -n "$cxx_z_relo"; then - OPT_LDFLAGS="-Wl,-z,relro" - ac_ld_relro=yes - fi - echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 -echo "${ECHO_T}$ac_ld_relro" >&6 - fi - - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" - fi - - - - - cat >>confdefs.h <<\_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGSETJMP 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_POLL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_S_ISREG 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LC_MESSAGES 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FPCLASS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_GETPAGESIZE 1 -_ACEOF - - # All of the dependencies for wide character support are here, so - # turn it on. - cat >>confdefs.h <<\_ACEOF -#define _GLIBCXX_USE_WCHAR_T 1 -_ACEOF - - # Are these tested for even when cross? - cat >>confdefs.h <<\_ACEOF -#define HAVE_FLOAT_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_IEEEFP_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_INTTYPES_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOCALE_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_NAN_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_FILIO_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_IOCTL_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_ISA_DEFS_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_RESOURCE_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_TIME_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SYS_TYPES_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_UNISTD_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_WCHAR_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_WCTYPE_H 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBM 1 -_ACEOF - - ;; - esac - case "$target" in - sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10) - # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386 - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_ABS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_LABS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_FABSL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_COSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SIN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE___BUILTIN_SINF 1 -_ACEOF - - ;; - esac - case "$target" in - *-*-solaris2.10) - # These two C99 functions are present only in Solaris >= 10 - cat >>confdefs.h <<\_ACEOF -#define HAVE_STRTOF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_STRTOLD 1 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_void_p=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (void *), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (void *)); } +unsigned long ulongval () { return (long) (sizeof (void *)); } +#include +#include +int +main () +{ - ;; - esac - cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (void *))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (void *)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (void *)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 + ; + return 0; +} _ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_void_p=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN 1 +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (void *), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_void_p=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANF 1 -_ACEOF + ;; +esac - cat >>confdefs.h <<\_ACEOF -#define HAVE_MODFF 1 +# Lacking an uint64_t? Test size of long +case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in + stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 +echo $ECHO_N "checking for long... $ECHO_C" >&6 +if test "${ac_cv_type_long+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOT 1 +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((long *) 0) + return 0; +if (sizeof (long)) + return 0; + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_long=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - ;; - *-tpf) - - - - - - - +ac_cv_type_long=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 +echo "${ECHO_T}$ac_cv_type_long" >&6 -for ac_header in nan.h endian.h machine/endian.h \ - sys/param.h sys/types.h locale.h float.h inttypes.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then +echo "$as_me:$LINENO: checking size of long" >&5 +echo $ECHO_N "checking size of long... $ECHO_C" >&6 +if test "${ac_cv_sizeof_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 + if test "$ac_cv_type_long" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -114160,7 +116614,15 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default -#include <$ac_header> +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 @@ -114184,191 +116646,85 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include <$ac_header> +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} _ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------- ## -## Report this to the package-unused lists. ## -## ----------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - SECTION_FLAGS='-ffunction-sections -fdata-sections' - - - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - - - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld version" >&5 -echo $ECHO_N "checking for ld version... $ECHO_C" >&6 - - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - - glibcxx_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` - echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5 -echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6 - fi - - # Set --gc-sections. - glibcxx_gcsections_min_ld=21602 - if test x"$with_gnu_ld" = x"yes" && - test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then - - # Sufficiently young GNU ld it is! Joy and bunny rabbits! - # NB: This flag only works reliably after 2.16.1. Configure tests - # for this are difficult, so hard wire a value that should work. - - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-Wl,--gc-sections' + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - # Check for -Wl,--gc-sections - echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 -echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - int one(void) { return 1; } - int two(void) { return 2; } - +$ac_includes_default int main () { - two(); +static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -114382,102 +116738,34 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_gcsections=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_gcsections=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test "$ac_gcsections" = "yes"; then - rm -f conftest.c - touch conftest.c - if $CC -c conftest.c; then - if $LD --gc-sections -o conftest conftest.o 2>&1 | \ - grep "Warning: gc-sections option ignored" > /dev/null; then - ac_gcsections=no - fi - fi - rm -f conftest.c conftest.o conftest - fi - if test "$ac_gcsections" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - echo "$as_me:$LINENO: result: $ac_gcsections" >&5 -echo "${ECHO_T}$ac_gcsections" >&6 - - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi - fi - - # Set -z,relro. - # Note this is only for shared objects. - ac_ld_relro=no - if test x"$with_gnu_ld" = x"yes"; then - echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5 -echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6 - cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` - if test -n "$cxx_z_relo"; then - OPT_LDFLAGS="-Wl,-z,relro" - ac_ld_relro=yes - fi - echo "$as_me:$LINENO: result: $ac_ld_relro" >&5 -echo "${ECHO_T}$ac_ld_relro" >&6 - fi - - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" - fi - - - - - - -echo "$as_me:$LINENO: checking for main in -lm" >&5 -echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 -if test "${ac_cv_lib_m_main+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lm $LIBS" -if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - - +$ac_includes_default int main () { -main (); +static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -114491,102 +116779,58 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_m_main=yes + ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_m_main=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` fi -echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 -echo "${ECHO_T}$ac_cv_lib_m_main" >&6 -if test $ac_cv_lib_m_main = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBM 1 -_ACEOF - - LIBS="-lm $LIBS" +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +ac_lo= ac_hi= fi - - -for ac_func in copysignf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -cat >conftest.$ac_ext <<_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +$ac_includes_default int main () { -return f != $ac_func; +static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -114600,103 +116844,150 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +ac_lo=`expr '(' $ac_mid ')' + 1` fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done - - - -for ac_func in __signbit -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +case $ac_lo in +?*) ac_cv_sizeof_long=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (long), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } ;; +esac else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif +$ac_includes_default +long longval () { return (long) (sizeof (long)); } +unsigned long ulongval () { return (long) (sizeof (long)); } +#include +#include +int +main () +{ -#undef $ac_func + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (long))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (long)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (long)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus + ; + return 0; } -#endif +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_long=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (long), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_long=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 +echo "${ECHO_T}$ac_cv_sizeof_long" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + ;; +esac + +if test $acx_cv_header_stdint = stddef.h; then + # Lacking a good header? Test size of everything and deduce all types. + echo "$as_me:$LINENO: checking for int" >&5 +echo $ECHO_N "checking for int... $ECHO_C" >&6 +if test "${ac_cv_type_int+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default int main () { -return f != $ac_func; +if ((int *) 0) + return 0; +if (sizeof (int)) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -114710,103 +117001,56 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_cv_type_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +ac_cv_type_int=no fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -done - +echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 +echo "${ECHO_T}$ac_cv_type_int" >&6 - -for ac_func in __signbitf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then +echo "$as_me:$LINENO: checking size of int" >&5 +echo $ECHO_N "checking size of int... $ECHO_C" >&6 +if test "${ac_cv_sizeof_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi + if test "$ac_cv_type_int" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +$ac_includes_default int main () { -return f != $ac_func; +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -114820,104 +117064,34 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" -fi -done - - - if test x$ac_cv_func_copysignl = x"yes"; then - -for ac_func in __signbitl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - +$ac_includes_default int main () { -return f != $ac_func; +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -114931,545 +117105,890 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - eval "$as_ac_var=yes" + ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done else - LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" -fi -done - - fi - - # Used in libmath/Makefile.am. - if test -n "$LIBMATHOBJS"; then - need_libmath=yes - fi - - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOTF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINFF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNAN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINCOS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINCOSF 1 -_ACEOF - - if test x"long_double_math_on_this_cpu" = x"yes"; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_FINITEL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOTL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISINFL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ISNANL 1 -_ACEOF - - fi - ;; - *-vxworks) - cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ACOSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ASINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATAN2F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATANF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_CEILF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_EXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FABSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FLOORF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FMODF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_HYPOT 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOGF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_POWF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SQRTF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANHF 1 -_ACEOF - - ;; - *-windiss*) - cat >>confdefs.h <<\_ACEOF -#define HAVE_ACOSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ACOSL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ASINF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ASINL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATAN2F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATAN2L 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATANF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATANL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_CEILF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_CEILL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGN 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_EXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_EXPL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FABSF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FABSL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FLOORF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FLOORL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FMODF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FMODL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LDEXPF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LDEXPL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10F 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10L 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOGF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_MODFF 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_MODFL 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_POWF 1 -_ACEOF + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_POWL 1 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINF 1 + ; + return 0; +} _ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINL 1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHF 1 + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHL 1 -_ACEOF +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SQRTF 1 +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SQRTL 1 + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANF 1 +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_int=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (int), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (int)); } +unsigned long ulongval () { return (long) (sizeof (int)); } +#include +#include +int +main () +{ - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANL 1 -_ACEOF + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (int))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (int)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (int)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANHF 1 + ; + return 0; +} _ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_int=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANHL 1 +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (int), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_int=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 +echo "${ECHO_T}$ac_cv_sizeof_int" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_INT $ac_cv_sizeof_int _ACEOF - ;; - *) - { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5 -echo "$as_me: error: No support for this host/target combination." >&2;} - { (exit 1); exit 1; }; } - ;; -esac - - fi - # At some point, we should differentiate between architectures - # like x86, which have long double versions, and alpha/powerpc/etc., - # which don't. For the time being, punt. - if test x"long_double_math_on_this_cpu" = x"yes"; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_ACOSL 1 + echo "$as_me:$LINENO: checking for short" >&5 +echo $ECHO_N "checking for short... $ECHO_C" >&6 +if test "${ac_cv_type_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_ASINL 1 +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((short *) 0) + return 0; +if (sizeof (short)) + return 0; + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_short=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATAN2L 1 -_ACEOF +ac_cv_type_short=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 +echo "${ECHO_T}$ac_cv_type_short" >&6 - cat >>confdefs.h <<\_ACEOF -#define HAVE_ATANL 1 +echo "$as_me:$LINENO: checking size of short" >&5 +echo $ECHO_N "checking size of short... $ECHO_C" >&6 +if test "${ac_cv_sizeof_short+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_short" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_CEILL 1 + ; + return 0; +} _ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_COPYSIGNL 1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSL 1 + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_COSHL 1 -_ACEOF +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_EXPL 1 +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_FABSL 1 + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_FLOORL 1 + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_FMODL 1 +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_lo= ac_hi= +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_FREXPL 1 + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_LDEXPL 1 +ac_lo=`expr '(' $ac_mid ')' + 1` +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_short=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (short), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } ;; +esac +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (short)); } +unsigned long ulongval () { return (long) (sizeof (short)); } +#include +#include +int +main () +{ - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOG10L 1 -_ACEOF + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (short))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (short)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (short)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); - cat >>confdefs.h <<\_ACEOF -#define HAVE_LOGL 1 + ; + return 0; +} _ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_short=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_MODFL 1 +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (short), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_short=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 +echo "${ECHO_T}$ac_cv_sizeof_short" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_POWL 1 -_ACEOF - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINCOSL 1 + echo "$as_me:$LINENO: checking for char" >&5 +echo $ECHO_N "checking for char... $ECHO_C" >&6 +if test "${ac_cv_type_char+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINL 1 +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +if ((char *) 0) + return 0; +if (sizeof (char)) + return 0; + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_char=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SINHL 1 -_ACEOF +ac_cv_type_char=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 +echo "${ECHO_T}$ac_cv_type_char" >&6 - cat >>confdefs.h <<\_ACEOF -#define HAVE_SQRTL 1 +echo "$as_me:$LINENO: checking size of char" >&5 +echo $ECHO_N "checking size of char... $ECHO_C" >&6 +if test "${ac_cv_sizeof_char+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$ac_cv_type_char" = yes; then + # The cast to unsigned long works around a bug in the HP C Compiler + # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects + # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. + # This bug is HP SR number 8606223364. + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; +test_array [0] = 0 - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANL 1 + ; + return 0; +} _ACEOF - - cat >>confdefs.h <<\_ACEOF -#define HAVE_TANHL 1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_lo=0 ac_mid=0 + while :; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ _ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; +test_array [0] = 0 - fi - - # Assume we have _Unwind_GetIPInfo for cross-compiles. - cat >>confdefs.h <<\_ACEOF -#define HAVE_GETIPINFO 1 + ; + return 0; +} _ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_hi=$ac_mid; break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +ac_lo=`expr $ac_mid + 1` + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid + 1` fi - - # Check whether --enable-linux-futex or --disable-linux-futex was given. -if test "${enable_linux_futex+set}" = set; then - enableval="$enable_linux_futex" - - case "$enableval" in - yes|no|default) ;; - *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 -echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} - { (exit 1); exit 1; }; } ;; - esac - +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done else - enable_linux_futex=default -fi; + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -case "$target" in - *-linux*) - case "$enable_linux_futex" in - default) - # If headers don't have gettid/futex syscalls definition, then - # default to no, otherwise there will be compile time failures. - # Otherwise, default to yes. If we don't detect we are - # compiled/linked against NPTL and not cross-compiling, check - # if programs are run by default against NPTL and if not, issue - # a warning. - enable_linux_futex=no - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - int lk; +$ac_includes_default int main () { -syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); +static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -115483,41 +118002,34 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - save_LIBS="$LIBS" - LIBS="-lpthread $LIBS" - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF + ac_hi=-1 ac_mid=-1 + while :; do + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#ifndef _GNU_SOURCE - #define _GNU_SOURCE 1 - #endif - #include - pthread_t th; void *status; +$ac_includes_default int main () { -pthread_tryjoin_np (th, &status); +static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -115531,64 +118043,58 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - enable_linux_futex=yes + ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -if test x$cross_compiling = xno; then - if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ - | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else - { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. -If so, please configure with --disable-linux-futex" >&5 -echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. -If so, please configure with --disable-linux-futex" >&2;} - fi - fi - enable_linux_futex=yes +ac_hi=`expr '(' $ac_mid ')' - 1` + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + ac_mid=`expr 2 '*' $ac_mid` fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$save_LIBS" +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 +ac_lo= ac_hi= fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ;; - yes) - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -cat >conftest.$ac_ext <<_ACEOF +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include - int lk; +$ac_includes_default int main () { -syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); +static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; +test_array [0] = 0 + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -115602,38 +118108,191 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - : + ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 -echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} - { (exit 1); exit 1; }; } +ac_lo=`expr '(' $ac_mid ')' + 1` fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ;; - esac - ;; - *) - enable_linux_futex=no - ;; +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in +?*) ac_cv_sizeof_char=$ac_lo;; +'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (char), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } ;; esac -if test x$enable_linux_futex = xyes; then +else + if test "$cross_compiling" = yes; then + { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run test program while cross compiling +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +long longval () { return (long) (sizeof (char)); } +unsigned long ulongval () { return (long) (sizeof (char)); } +#include +#include +int +main () +{ -cat >>confdefs.h <<\_ACEOF -#define HAVE_LINUX_FUTEX 1 + FILE *f = fopen ("conftest.val", "w"); + if (! f) + exit (1); + if (((long) (sizeof (char))) < 0) + { + long i = longval (); + if (i != ((long) (sizeof (char)))) + exit (1); + fprintf (f, "%ld\n", i); + } + else + { + unsigned long i = ulongval (); + if (i != ((long) (sizeof (char)))) + exit (1); + fprintf (f, "%lu\n", i); + } + exit (ferror (f) || fclose (f) != 0); + + ; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_sizeof_char=`cat conftest.val` +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute sizeof (char), 77 +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi +fi +rm -f conftest.val +else + ac_cv_sizeof_char=0 +fi +fi +echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 +echo "${ECHO_T}$ac_cv_sizeof_char" >&6 +cat >>confdefs.h <<_ACEOF +#define SIZEOF_CHAR $ac_cv_sizeof_char _ACEOF + + + echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 +echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 + case "$ac_cv_sizeof_char" in + 1) acx_cv_type_int8_t=char ;; + *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 +echo "$as_me: error: no 8-bit type" >&2;} + { (exit please report a bug); exit please report a bug; }; } + esac + echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 +echo "${ECHO_T}$acx_cv_type_int8_t" >&6 + + echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 +echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 + case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in + 2:*) acx_cv_type_int16_t=int ;; + *:2) acx_cv_type_int16_t=short ;; + *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 +echo "$as_me: error: no 16-bit type" >&2;} + { (exit please report a bug); exit please report a bug; }; } + esac + echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 +echo "${ECHO_T}$acx_cv_type_int16_t" >&6 + + echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 +echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 + case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in + 4:*) acx_cv_type_int32_t=int ;; + *:4) acx_cv_type_int32_t=long ;; + *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 +echo "$as_me: error: no 32-bit type" >&2;} + { (exit please report a bug); exit please report a bug; }; } + esac + echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 +echo "${ECHO_T}$acx_cv_type_int32_t" >&6 +fi + +# These tests are here to make the output prettier + +if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then + case "$ac_cv_sizeof_long" in + 8) acx_cv_type_int64_t=long ;; + esac + echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 +echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 + echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 +echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 +fi + +# Now we can use the above types + +if test "$ac_cv_type_uintptr_t" != yes; then + echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 +echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 + case $ac_cv_sizeof_void_p in + 2) acx_cv_type_intptr_t=int16_t ;; + 4) acx_cv_type_intptr_t=int32_t ;; + 8) acx_cv_type_intptr_t=int64_t ;; + *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 +echo "$as_me: error: no equivalent for intptr_t" >&2;} + { (exit please report a bug); exit please report a bug; }; } + esac + echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 +echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 fi +# ----------------- done all checks, emit header ------------- + ac_config_commands="$ac_config_commands include/gstdint.h" + + + # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no. @@ -115829,6 +118488,8 @@ echo "$as_me: WARNING: === you are not using the GNU linker." >&2;} { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} enable_symvers=no + elif test $glibcxx_ld_is_gold = yes ; then + : All versions of gold support symbol versioning. elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then # The right tools, the right setup, but too old. Fallbacks? { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5 @@ -116037,7 +118698,7 @@ fi; if test x$enable_visibility = xyes ; then echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 -if test "${have_attribute_visibility+set}" = set; then +if test "${glibcxx_cv_have_attribute_visibility+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -116080,19 +118741,19 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - have_attribute_visibility=yes + glibcxx_cv_have_attribute_visibility=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -have_attribute_visibility=no +glibcxx_cv_have_attribute_visibility=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$save_CFLAGS" fi -echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 -echo "${ECHO_T}$have_attribute_visibility" >&6 - if test $have_attribute_visibility = no; then +echo "$as_me:$LINENO: result: $glibcxx_cv_have_attribute_visibility" >&5 +echo "${ECHO_T}$glibcxx_cv_have_attribute_visibility" >&6 + if test $glibcxx_cv_have_attribute_visibility = no; then enable_visibility=no fi fi @@ -116635,7 +119296,7 @@ echo "${ECHO_T}$res" >&6 # Check for rlimit, setrlimit. - if test "${ac_setrlimit+set}" = set; then + if test "${glibcxx_cv_setrlimit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -116680,12 +119341,12 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_setrlimit=yes + glibcxx_cv_setrlimit=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_setrlimit=no +glibcxx_cv_setrlimit=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext @@ -116695,7 +119356,7 @@ fi echo "$as_me:$LINENO: checking for testsuite resource limits support" >&5 echo $ECHO_N "checking for testsuite resource limits support... $ECHO_C" >&6 - if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then + if test $setrlimit_have_headers = yes && test $glibcxx_cv_setrlimit = yes; then ac_res_limits=yes cat >>confdefs.h <<\_ACEOF @@ -118289,6 +120950,24 @@ fi +GCC="$GCC" +CC="$CC" +acx_cv_header_stdint="$acx_cv_header_stdint" +acx_cv_type_int8_t="$acx_cv_type_int8_t" +acx_cv_type_int16_t="$acx_cv_type_int16_t" +acx_cv_type_int32_t="$acx_cv_type_int32_t" +acx_cv_type_int64_t="$acx_cv_type_int64_t" +acx_cv_type_intptr_t="$acx_cv_type_intptr_t" +ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" +ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" +ac_cv_type_uint64_t="$ac_cv_type_uint64_t" +ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" +ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" +ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" +ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" +ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" + + # Variables needed in config.status (file generation) which aren't already # passed by autoconf. SUBDIRS="$SUBDIRS" @@ -118314,6 +120993,7 @@ do "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;; "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "include/gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/gstdint.h" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 @@ -118479,6 +121159,9 @@ s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t +s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t +s,@WERROR@,$WERROR,;t t +s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t s,@CSTDIO_H@,$CSTDIO_H,;t t s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t @@ -118518,12 +121201,10 @@ s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t s,@ENABLE_PARALLEL_TRUE@,$ENABLE_PARALLEL_TRUE,;t t s,@ENABLE_PARALLEL_FALSE@,$ENABLE_PARALLEL_FALSE,;t t s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t -s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t -s,@WERROR@,$WERROR,;t t -s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t +s,@GLIBCXX_LIBS@,$GLIBCXX_LIBS,;t t s,@LIBICONV@,$LIBICONV,;t t s,@LTLIBICONV@,$LTLIBICONV,;t t s,@SYMVER_FILE@,$SYMVER_FILE,;t t @@ -119878,6 +122559,334 @@ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX _LT_EOF ;; + include/gstdint.h ) +if test "$GCC" = yes; then + echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h +else + echo "/* generated for $CC */" > tmp-stdint.h +fi + +sed 's/^ *//' >> tmp-stdint.h < +EOF + +if test "$acx_cv_header_stdint" != stdint.h; then + echo "#include " >> tmp-stdint.h +fi +if test "$acx_cv_header_stdint" != stddef.h; then + echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h +fi + +sed 's/^ *//' >> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <= 199901L + #ifndef _INT64_T + #define _INT64_T + #ifndef __int64_t_defined + typedef long long int64_t; + #endif + #endif + #ifndef _UINT64_T + #define _UINT64_T + typedef unsigned long long uint64_t; + #endif + + #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 + /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and + does not implement __extension__. But that compiler doesn't define + __GNUC_MINOR__. */ + # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) + # define __extension__ + # endif + + # ifndef _INT64_T + # define _INT64_T + __extension__ typedef long long int64_t; + # endif + # ifndef _UINT64_T + # define _UINT64_T + __extension__ typedef unsigned long long uint64_t; + # endif + + #elif !defined __STRICT_ANSI__ + # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ + + # ifndef _INT64_T + # define _INT64_T + typedef __int64 int64_t; + # endif + # ifndef _UINT64_T + # define _UINT64_T + typedef unsigned __int64 uint64_t; + # endif + # endif /* compiler */ + + #endif /* ANSI version */ +EOF +fi + +# ------------- done int64_t types, emit intptr types ------------ +if test "$ac_cv_type_uintptr_t" != yes; then + sed 's/^ *//' >> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <