X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libstdc%2B%2B-v3%2Fconfigure;h=96acd3829a695c7b22bb3f7d40ace35216aefa25;hp=ecbee17f88e099ede9723fd8868106fc82907779;hb=8400ab1cb30f9664de0eaa597f2c058dfd3e6f22;hpb=6883a6c6fb73d7498a6e0e07e8054e14c634ec26 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index ecbee17f88e..96acd3829a6 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -12,13 +12,13 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help + --enable-multilib build hella library versions (default)" +ac_help="$ac_help --with-target-subdir=SUBDIR - configuring in a subdirectory" + configuring in a subdirectory" ac_help="$ac_help --with-cross-host=HOST configuring with a cross compiler" ac_help="$ac_help - --enable-multilib build hella library versions (default)" -ac_help="$ac_help --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer" ac_help="$ac_help @@ -44,9 +44,11 @@ ac_help="$ac_help --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic] " ac_help="$ac_help + --enable-nls use Native Language Support (default)" +ac_help="$ac_help --enable-c-mbchar enable multibyte (wide) characters [default=yes]" ac_help="$ac_help - --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]" + --enable-c99 turns on 'ISO/IEC 9899:1999 support' [default=yes]" ac_help="$ac_help --enable-long-long turns on 'long long' [default=yes]" ac_help="$ac_help @@ -57,6 +59,12 @@ ac_help="$ac_help ac_help="$ac_help --enable-sjlj-exceptions force use of builtin_setjmp for exceptions" ac_help="$ac_help + --enable-libunwind-exceptions force use of libunwind for exceptions" +ac_help="$ac_help + --enable-concept-checks use Boost-derived template checks [default=no]" +ac_help="$ac_help + --enable-symvers=style enables symbol versioning of the shared library [default=yes]" +ac_help="$ac_help --with-gxx-include-dir the installation directory for include files" ac_help="$ac_help --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory " @@ -571,25 +579,53 @@ fi -# When building with srcdir == objdir, links to the source files will -# be created in directories within the target_subdir. We have to -# adjust toplevel_srcdir accordingly, so that configure finds -# install-sh and other auxiliary files that live in the top-level -# source directory. -if test "${srcdir}" = "."; then - if test -z "${with_target_subdir}"; then - toprel=".." - else - if test "${with_target_subdir}" != "."; then - toprel="${with_multisrctop}../.." +# This works around the fact that libtool configuration may change LD +# for this particular configuration, but some shells, instead of +# keeping the changes in LD private, export them just because LD is +# exported. Only used at the end of this file. +ORIGINAL_LD_FOR_MULTILIBS=$LD + +PACKAGE=libstdc++ + +# For typical GNU versioning info, format is MAJOR.MINOR.MICRO +release_VERSION=3.1.1 + +# For libtool versioning info, format is CURRENT:REVISION:AGE +libtool_VERSION=4:1:0 + + + + # Check whether --enable-multilib or --disable-multilib was given. +if test "${enable_multilib+set}" = set; then + enableval="$enable_multilib" + case "${enableval}" in + yes) multilib=yes ;; + no) multilib=no ;; + *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; + esac +else + multilib=yes +fi + + # When building with srcdir == objdir, links to the source files will + # be created in directories within the target_subdir. We have to + # adjust toplevel_srcdir accordingly, so that configure finds + # install-sh and other auxiliary files that live in the top-level + # source directory. + if test "${srcdir}" = "."; then + if test -z "${with_target_subdir}"; then + toprel=".." else - toprel="${with_multisrctop}.." + if test "${with_target_subdir}" != "."; then + toprel="${with_multisrctop}../.." + else + toprel="${with_multisrctop}.." + fi fi + else + toprel=".." fi -else - toprel=".." -fi -ac_aux_dir= + ac_aux_dir= for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir @@ -608,14 +644,25 @@ ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. -toplevel_srcdir=\${top_srcdir}/$toprel - - + toplevel_srcdir=\${top_srcdir}/$toprel + -# Gets and sets build, host, target, *_vendor, *_cpu, *_os, etc. -# AC 2.50 sets target_alias iff the user specified --target, but we use it -# everywhere, so we set it here just to be sure. +# Gets build, host, target, *_vendor, *_cpu, *_os, etc. +# +# You will slowly go insane if you do not grok the following fact: when +# building v3 as part of the compiler, the top-level /target/ becomes the +# library's /host/. `configure' then causes --target to default to --host, +# exactly like any other package using autoconf. Therefore, 'target' and +# 'host' will always be the same. This makes sense both for native and +# cross compilers, just think about it for a little while. :-) +# +# Also, if v3 is being configured as part of a cross compiler, the top-level +# configure script will pass the "real" host as $with_cross_host. +# +# AC 2.5x sets target_alias iff the user specified --target, but we use it +# everywhere, so we set it here just to be sure. In AC 2.13 +# AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM. # Do some error checking and defaulting for the host and target type. # The inputs are: @@ -644,7 +691,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:648: checking host system type" >&5 +echo "configure:695: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -665,7 +712,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:669: checking target system type" >&5 +echo "configure:716: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -683,7 +730,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:687: checking build system type" >&5 +echo "configure:734: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -708,22 +755,6 @@ test "$host_alias" != "$target_alias" && target_alias=${target_alias-$target} -# We use these options to decide which functions to include. -# Check whether --with-target-subdir or --without-target-subdir was given. -if test "${with_target_subdir+set}" = set; then - withval="$with_target_subdir" - : -fi - -# Check whether --with-cross-host or --without-cross-host was given. -if test "${with_cross_host+set}" = set; then - withval="$with_cross_host" - : -fi - - -# Runs configure.host and configure.target. Have to run this before -# the GLIBCPP_ENABLE_* macros below. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -736,7 +767,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:740: checking for a BSD compatible install" >&5 +echo "configure:771: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -789,7 +820,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:793: checking whether build environment is sane" >&5 +echo "configure:824: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile @@ -846,7 +877,7 @@ test "$program_suffix" != NONE && test "$program_transform_name" = "" && program_transform_name="s,x,x," echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:881: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -872,94 +903,10 @@ else SET_MAKE="MAKE=${MAKE-make}" fi -if test $host != $build; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:883: checking for Cygwin environment" >&5 -if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_cygwin=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_cygwin=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_cygwin" 1>&6 -CYGWIN= -test "$ac_cv_cygwin" = yes && CYGWIN=yes -echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:916: checking for mingw32 environment" >&5 -if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_mingw32=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_mingw32=no -fi -rm -f conftest* -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_mingw32" 1>&6 -MINGW32= -test "$ac_cv_mingw32" = yes && MINGW32=yes - - # Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "${enableval}" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; - esac -else - multilib=yes -fi - - glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3 - - -PACKAGE=libstdc++ +PACKAGE=$PACKAGE -VERSION=3.0.0 +VERSION=$release_VERSION if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } @@ -976,7 +923,7 @@ EOF missing_dir=`cd $ac_aux_dir && pwd` echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 -echo "configure:980: checking for working aclocal" >&5 +echo "configure:927: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -989,7 +936,7 @@ else fi echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:993: checking for working autoconf" >&5 +echo "configure:940: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -1002,7 +949,7 @@ else fi echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:1006: checking for working automake" >&5 +echo "configure:953: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -1015,7 +962,7 @@ else fi echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:1019: checking for working autoheader" >&5 +echo "configure:966: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -1028,7 +975,7 @@ else fi echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:1032: checking for working makeinfo" >&5 +echo "configure:979: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. @@ -1042,116 +989,282 @@ fi - # Never versions of autoconf add an underscore to these functions. - # Prevent future problems ... - - - - - -# AC_PROG_CC - -# FIXME: We temporarily define our own version of AC_PROG_CC. This is -# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -# are probably using a cross compiler, which will not be able to fully -# link an executable. This should really be fixed in autoconf -# itself. +# Runs configure.target, finds CC, CXX and assorted other critical bits. +# Must run this before the GLIBCPP_ENABLE_* macros below. +if test $host != $build; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi -# Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1067: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 +echo "configure:1005: checking for Cygwin environment" >&5 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_cygwin=yes else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_cygwin=no fi +rm -f conftest* +rm -f conftest* fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 + +echo "$ac_t""$ac_cv_cygwin" 1>&6 +CYGWIN= +test "$ac_cv_cygwin" = yes && CYGWIN=yes +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 +echo "configure:1038: checking for mingw32 environment" >&5 +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else - echo "$ac_t""no" 1>&6 + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_mingw32=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_mingw32=no +fi +rm -f conftest* +rm -f conftest* fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 +echo "$ac_t""$ac_cv_mingw32" 1>&6 +MINGW32= +test "$ac_cv_mingw32" = yes && MINGW32=yes + + +#possibly test for the presence of the compiler sources here? + + # Export build and source directories. + # These need to be absolute paths, yet at the same time need to + # canonicalize only relative paths, because then amd will not unmount + # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. + glibcpp_builddir=`${PWDCMD-pwd}` + case $srcdir in + \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; + *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; + esac + + + + + + for ac_prog in gawk mawk nawk awk +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1097: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then +echo "configure:1089: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" + ac_cv_prog_AWK="$ac_prog" break fi done IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi fi fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 +AWK="$ac_cv_prog_AWK" +if test -n "$AWK"; then + echo "$ac_t""$AWK" 1>&6 else echo "$ac_t""no" 1>&6 fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi +test -n "$AWK" && break +done -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1146: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + # Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.5x, can also + # be 'cp -p' if linking isn't available. Uncomment the next line to + # force a particular method. + #ac_cv_prog_LN_S='cp -p' + echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 +echo "configure:1123: checking whether ln -s works" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - cat > conftest.c </dev/null +then + rm -f conftestdata + ac_cv_prog_LN_S="ln -s" +else + ac_cv_prog_LN_S=ln +fi +fi +LN_S="$ac_cv_prog_LN_S" +if test "$ac_cv_prog_LN_S" = "ln -s"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + + # We use these options to decide which functions to include. + # Check whether --with-target-subdir or --without-target-subdir was given. +if test "${with_target_subdir+set}" = set; then + withval="$with_target_subdir" + : +fi + + # Check whether --with-cross-host or --without-cross-host was given. +if test "${with_cross_host+set}" = set; then + withval="$with_cross_host" + : +fi + + + glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3 + + + # Never versions of autoconf add an underscore to these functions. + # Prevent future problems ... + + + + + + # AC_PROG_CC + # FIXME: We temporarily define our own version of AC_PROG_CC. This is + # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We + # are probably using a cross compiler, which will not be able to fully + # link an executable. This is addressed in later versions of autoconf. + + + + + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1180: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1210: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_prog_rejected=no + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_save_ifs" +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } + fi + + echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +echo "configure:1259: checking whether we are using GNU C" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1160,13 +1273,13 @@ fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 -if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5 + if test $ac_cv_prog_gcc = yes; then + GCC=yes + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS= + echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:1283: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1181,37 +1294,35 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + elif test $ac_cv_prog_cc_g = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-O2" + fi else - CFLAGS="-O2" + GCC= + test "${CFLAGS+set}" = set || CFLAGS="-g" fi -else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" -fi - - -# Can't just call these here as g++ requires libstc++ to be built.... -# AC_PROG_CXX - -# Likewise for AC_PROG_CXX. - + + # Likewise for AC_PROG_CXX. We can't just call it directly because g++ + # will try to link in libstdc++. + -# Use glibcpp_CXX so that we do not cause CXX to be cached with the -# flags that come in CXX while configuring libstdc++. They're different -# from those used for all other target libraries. If CXX is set in -# the environment, respect that here. -glibcpp_CXX=$CXX -for ac_prog in $CCC c++ g++ gcc CC cxx cc++ + + # Use glibcpp_CXX so that we do not cause CXX to be cached with the + # flags that come in CXX while configuring libstdc++. They're different + # from those used for all other target libraries. If CXX is set in + # the environment, respect that here. + glibcpp_CXX=$CXX + for ac_prog in $CCC c++ g++ gcc CC cxx cc++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1215: checking for $ac_word" >&5 +echo "configure:1326: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1241,12 +1352,12 @@ test -n "$glibcpp_CXX" && break done test -n "$glibcpp_CXX" || glibcpp_CXX="gcc" + + CXX=$glibcpp_CXX + test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } -CXX=$glibcpp_CXX -test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } - -echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:1250: checking whether we are using GNU C++" >&5 + echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 +echo "configure:1361: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1255,7 +1366,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no @@ -1264,13 +1375,13 @@ fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 -if test $ac_cv_prog_gxx = yes; then - GXX=yes - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS= - echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:1274: checking whether ${CXX-g++} accepts -g" >&5 + if test $ac_cv_prog_gxx = yes; then + GXX=yes + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS= + echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 +echo "configure:1385: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1285,23 +1396,68 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 - if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" - elif test $ac_cv_prog_cxx_g = yes; then - CXXFLAGS="-g -O2" + if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" + elif test $ac_cv_prog_cxx_g = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-O2" + fi else - CXXFLAGS="-O2" + GXX= + test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" fi + + + # For some reason, gettext needs this. + + echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 +echo "configure:1416: checking for strerror in -lcposix" >&5 +ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lcposix $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -lcposix" else - GXX= - test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" + echo "$ac_t""no" 1>&6 fi + + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1305: checking for $ac_word" >&5 +echo "configure:1461: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1333,7 +1489,7 @@ fi # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1337: checking for $ac_word" >&5 +echo "configure:1493: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1365,7 +1521,7 @@ fi # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1369: checking for $ac_word" >&5 +echo "configure:1525: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1397,7 +1553,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1401: checking for $ac_word" >&5 +echo "configure:1557: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1441,7 +1597,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1445: checking for a BSD compatible install" >&5 +echo "configure:1601: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1495,7 +1651,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:1499: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:1655: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" @@ -1522,8 +1678,8 @@ fi # at least currently, we never actually build a program, so we never # need to use $(EXEEXT). Moreover, the test for EXEEXT normally # fails, because we are probably configuring with a cross compiler - # which cant create executables. So we include AC_EXEEXT to keep - # automake happy, but we dont execute it, since we dont care about + # which can't create executables. So we include AC_EXEEXT to keep + # automake happy, but we don't execute it, since we don't care about # the result. if false; then # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands @@ -1533,7 +1689,7 @@ fi echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:1537: checking for executable suffix" >&5 +echo "configure:1693: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1543,7 +1699,7 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; @@ -1565,20 +1721,18 @@ ac_exeext=$EXEEXT fi - . ${glibcpp_basedir}/configure.host - case ${glibcpp_basedir} in /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;; *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;; esac - # This does for the target what configure.host does for the host. In + # Find platform-specific directories containing configuration info. In # addition to possibly modifying the same flags, it also sets up symlinks. . ${glibcpp_basedir}/configure.target echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6 echo "$ac_t""OS config directory is $os_include_dir" 1>&6 - + @@ -1664,7 +1818,7 @@ ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 -echo "configure:1668: checking for ld used by GCC" >&5 +echo "configure:1822: checking for ld used by GCC" >&5 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -1694,10 +1848,10 @@ echo "configure:1668: checking for ld used by GCC" >&5 esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 -echo "configure:1698: checking for GNU ld" >&5 +echo "configure:1852: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 -echo "configure:1701: checking for non-GNU ld" >&5 +echo "configure:1855: checking for non-GNU ld" >&5 fi if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1732,7 +1886,7 @@ else fi test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 -echo "configure:1736: checking if the linker ($LD) is GNU ld" >&5 +echo "configure:1890: checking if the linker ($LD) is GNU ld" >&5 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1749,7 +1903,7 @@ with_gnu_ld=$lt_cv_prog_gnu_ld echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 -echo "configure:1753: checking for $LD option to reload object files" >&5 +echo "configure:1907: checking for $LD option to reload object files" >&5 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1761,7 +1915,7 @@ reload_flag=$lt_cv_ld_reload_flag test -n "$reload_flag" && reload_flag=" $reload_flag" echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 -echo "configure:1765: checking for BSD-compatible nm" >&5 +echo "configure:1919: checking for BSD-compatible nm" >&5 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1798,29 +1952,8 @@ fi NM="$lt_cv_path_NM" echo "$ac_t""$NM" 1>&6 -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:1803: checking whether ln -s works" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - rm -f conftestdata -if ln -s X conftestdata 2>/dev/null -then - rm -f conftestdata - ac_cv_prog_LN_S="ln -s" -else - ac_cv_prog_LN_S=ln -fi -fi -LN_S="$ac_cv_prog_LN_S" -if test "$ac_cv_prog_LN_S" = "ln -s"; then - echo "$ac_t""yes" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 -echo "configure:1824: checking how to recognise dependant libraries" >&5 +echo "configure:1957: checking how to recognise dependant libraries" >&5 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1984,13 +2117,13 @@ file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method echo $ac_n "checking for object suffix""... $ac_c" 1>&6 -echo "configure:1988: checking for object suffix" >&5 +echo "configure:2121: checking for object suffix" >&5 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftest* echo 'int i = 1;' > conftest.$ac_ext -if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; @@ -2014,7 +2147,7 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 -echo "configure:2018: checking for ${ac_tool_prefix}file" >&5 +echo "configure:2151: checking for ${ac_tool_prefix}file" >&5 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2076,7 +2209,7 @@ fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then echo $ac_n "checking for file""... $ac_c" 1>&6 -echo "configure:2080: checking for file" >&5 +echo "configure:2213: checking for file" >&5 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2147,7 +2280,7 @@ esac # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2151: checking for $ac_word" >&5 +echo "configure:2284: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2179,7 +2312,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2183: checking for $ac_word" >&5 +echo "configure:2316: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2214,7 +2347,7 @@ fi # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2218: checking for $ac_word" >&5 +echo "configure:2351: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2246,7 +2379,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2250: checking for $ac_word" >&5 +echo "configure:2383: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2313,8 +2446,8 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 2317 "configure"' > conftest.$ac_ext - if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + echo '#line 2450 "configure"' > conftest.$ac_ext + if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" @@ -2335,7 +2468,7 @@ case $host in SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 -echo "configure:2339: checking whether the C compiler needs -belf" >&5 +echo "configure:2472: checking whether the C compiler needs -belf" >&5 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2348,14 +2481,14 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yes else @@ -2385,7 +2518,7 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 esac echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:2389: checking how to run the C++ preprocessor" >&5 +echo "configure:2522: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2398,12 +2531,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2537,8 +2670,11 @@ exec 5>>./config.log + +# Check for c++ or library specific bits that don't require linking. +#GLIBCPP_CHECK_COMPILER_VERSION echo $ac_n "checking for GNU make""... $ac_c" 1>&6 -echo "configure:2542: checking for GNU make" >&5 +echo "configure:2678: checking for GNU make" >&5 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2562,60 +2698,7 @@ echo "$ac_t""$_cv_gnu_make_command" 1>&6 ; - - - - - - -# Check for c++ or library specific bits that don't require linking. - -if test ! -f stamp-sanity-compiler; then - echo $ac_n "checking for g++ that will successfully compile libstdc++-v3""... $ac_c" 1>&6 -echo "configure:2576: checking for g++ that will successfully compile libstdc++-v3" >&5 - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - gpp_satisfactory=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - { echo "configure: error: please upgrade to GCC 3.0 or above" 1>&2; exit 1; } -fi -rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - - echo "$ac_t""$gpp_satisfactory" 1>&6 - touch stamp-sanity-compiler -fi - - -# Enable all the crazy c++ stuff. C_MBCHAR must come early. +# Enable all the variable C++ stuff. C_MBCHAR must come early. # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" @@ -2639,7 +2722,7 @@ esac echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:2643: checking how to run the C preprocessor" >&5 +echo "configure:2726: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -2654,13 +2737,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2671,13 +2754,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2688,13 +2771,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2720,7 +2803,7 @@ echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6 -echo "configure:2724: checking for cstdio to use" >&5 +echo "configure:2807: checking for cstdio to use" >&5 # Check whether --enable-cstdio or --disable-cstdio was given. if test "${enable_cstdio+set}" = set; then enableval="$enable_cstdio" @@ -2736,25 +2819,25 @@ fi case x${enable_cstdio_flag} in xlibio) - CSTDIO_H=config/c_io_libio.h - BASIC_FILE_H=config/basic_file_libio.h - BASIC_FILE_CC=config/basic_file_libio.cc + CSTDIO_H=config/io/c_io_libio.h + BASIC_FILE_H=config/io/basic_file_libio.h + BASIC_FILE_CC=config/io/basic_file_libio.cc echo "$ac_t""libio" 1>&6 # see if we are on a system with libio native (ie, linux) ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libio.h""... $ac_c" 1>&6 -echo "configure:2748: checking for libio.h" >&5 +echo "configure:2831: checking for libio.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2784,9 +2867,9 @@ fi case "$target" in *-*-linux*) echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6 -echo "configure:2788: checking for glibc version >= 2.2" >&5 +echo "configure:2871: checking for glibc version >= 2.2" >&5 cat > conftest.$ac_ext < @@ -2841,9 +2924,9 @@ rm -f conftest* ;; xstdio | x | xno | xnone | xyes) # default - CSTDIO_H=config/c_io_stdio.h - BASIC_FILE_H=config/basic_file_stdio.h - BASIC_FILE_CC=config/basic_file_stdio.cc + CSTDIO_H=config/io/c_io_stdio.h + BASIC_FILE_H=config/io/basic_file_stdio.h + BASIC_FILE_CC=config/io/basic_file_stdio.cc echo "$ac_t""stdio" 1>&6 # We're not using stdio. @@ -2860,7 +2943,7 @@ rm -f conftest* # 2000-08-04 bkoz hack - CCODECVT_C=config/c_io_libio_codecvt.c + CCODECVT_C=config/io/c_io_libio_codecvt.c # 2000-08-04 bkoz hack @@ -2900,37 +2983,213 @@ fi echo $ac_n "checking for clocale to use""... $ac_c" 1>&6 -echo "configure:2904: checking for clocale to use" >&5 +echo "configure:2987: checking for clocale to use" >&5 # Check whether --enable-clocale or --disable-clocale was given. if test "${enable_clocale+set}" = set; then enableval="$enable_clocale" if test x$enable_clocale = xno; then - enable_clocale=generic + enable_clocale=no fi else - enable_clocale=generic + enable_clocale=no fi enable_clocale_flag=$enable_clocale - case x${enable_clocale_flag} in - xgnu) - CLOCALE_H=config/c_locale_gnu.h - CLOCALE_CC=config/c_locale_gnu.cc - echo "$ac_t""gnu" 1>&6 - ;; - xgeneric) - CLOCALE_H=config/c_locale_generic.h - CLOCALE_CC=config/c_locale_generic.cc - echo "$ac_t""generic" 1>&6 - ;; - *) - echo "$enable_clocale is an unknown locale package" 1>&2 - exit 1 - ;; + if test x$enable_clocale_flag = xno; then + case x${target_os} in + xlinux* | xgnu*) + cat > conftest.$ac_ext < + #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) + _GLIBCPP_ok + #endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "_GLIBCPP_ok" >/dev/null 2>&1; then + rm -rf conftest* + enable_clocale_flag=gnu +else + rm -rf conftest* + enable_clocale_flag=generic +fi +rm -f conftest* + + + # Test for bugs early in glibc-2.2.x series + if test x$enable_clocale_flag = xgnu; then + if test "$cross_compiling" = yes; then + enable_clocale_flag=generic +else + cat > conftest.$ac_ext < + int main() + { + const char __one[] = "Äuglein Augmen"; + const char __two[] = "Äuglein"; + int i; + int j; + __locale_t loc; + __locale_t loc_dup; + loc = __newlocale(1 << LC_ALL, "de_DE", 0); + loc_dup = __duplocale(loc); + i = __strcoll_l(__one, __two, loc); + j = __strcoll_l(__one, __two, loc_dup); + return 0; + } + +EOF +if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + enable_clocale_flag=gnu +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + enable_clocale_flag=generic +fi +rm -fr conftest* +fi + + fi + + # ... at some point put __strxfrm_l tests in as well. + ;; + *) + enable_clocale_flag=generic + ;; + esac + fi + + # Check whether --enable-nls or --disable-nls was given. +if test "${enable_nls+set}" = set; then + enableval="$enable_nls" + : +else + enable_nls=yes +fi + + USE_NLS=no + + case x${enable_clocale_flag} in + xgeneric) + echo "$ac_t""generic" 1>&6 + + CLOCALE_H=config/locale/generic/c_locale.h + CLOCALE_CC=config/locale/generic/c_locale.cc + CCODECVT_H=config/locale/generic/codecvt_specializations.h + CCOLLATE_CC=config/locale/generic/collate_members.cc + CCTYPE_CC=config/locale/generic/ctype_members.cc + CMESSAGES_H=config/locale/generic/messages_members.h + CMESSAGES_CC=config/locale/generic/messages_members.cc + CMONEY_CC=config/locale/generic/monetary_members.cc + CNUMERIC_CC=config/locale/generic/numeric_members.cc + CTIME_CC=config/locale/generic/time_members.cc + ;; + xgnu) + echo "$ac_t""gnu" 1>&6 + + # Declare intention to use gettext, and add support for specific + # languages. + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT + ALL_LINGUAS="de fr" + + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc. + # Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:3111: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$check_msgfmt"; then + ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_check_msgfmt="yes" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no" +fi +fi +check_msgfmt="$ac_cv_prog_check_msgfmt" +if test -n "$check_msgfmt"; then + echo "$ac_t""$check_msgfmt" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then + USE_NLS=yes + fi + # Export the build objects. + for ling in $ALL_LINGUAS; do \ + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \ + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \ + done + + + + CLOCALE_H=config/locale/gnu/c_locale.h + CLOCALE_CC=config/locale/gnu/c_locale.cc + CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h + CCOLLATE_CC=config/locale/gnu/collate_members.cc + CCTYPE_CC=config/locale/gnu/ctype_members.cc + CMESSAGES_H=config/locale/gnu/messages_members.h + CMESSAGES_CC=config/locale/gnu/messages_members.cc + CMONEY_CC=config/locale/gnu/monetary_members.cc + CNUMERIC_CC=config/locale/gnu/numeric_members.cc + CTIME_CC=config/locale/gnu/time_members.cc + ;; + xieee_1003.1-2001) + echo "$ac_t""generic" 1>&6 + + CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h + CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc + CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h + CCOLLATE_CC=config/locale/generic/collate_members.cc + CCTYPE_CC=config/locale/generic/ctype_members.cc + CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h + CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc + CMONEY_CC=config/locale/generic/monetary_members.cc + CNUMERIC_CC=config/locale/generic/numeric_members.cc + CTIME_CC=config/locale/generic/time_members.cc + ;; + *) + echo "$enable_clocale is an unknown locale package" 1>&2 + exit 1 + ;; esac + # This is where the testsuite looks for locale catalogs, using the + # -DLOCALEDIR define during testsuite compilation. + glibcpp_localedir=${glibcpp_builddir}/po/share/locale + + + + + + + + + + + @@ -2971,16 +3230,16 @@ cross_compiling=$ac_cv_prog_cxx_cross # Check for the existence of functions used if C99 is enabled. ac_c99_math=yes; echo $ac_n "checking for ISO C99 support in ""... $ac_c" 1>&6 -echo "configure:2975: checking for ISO C99 support in " >&5 +echo "configure:3234: checking for ISO C99 support in " >&5 cat > conftest.$ac_ext < int main() { fpclassify(0.0); ; return 0; } EOF -if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -2990,14 +3249,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isfinite(0.0); ; return 0; } EOF -if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3007,14 +3266,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isinf(0.0); ; return 0; } EOF -if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3024,14 +3283,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isnan(0.0); ; return 0; } EOF -if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3041,14 +3300,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isnormal(0.0); ; return 0; } EOF -if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3058,14 +3317,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { signbit(0.0); ; return 0; } EOF -if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3075,14 +3334,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isgreater(0.0,0.0); ; return 0; } EOF -if { (eval echo configure:3086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3092,14 +3351,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isgreaterequal(0.0,0.0); ; return 0; } EOF -if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3109,14 +3368,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isless(0.0,0.0); ; return 0; } EOF -if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3126,14 +3385,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { islessequal(0.0,0.0); ; return 0; } EOF -if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3143,14 +3402,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { islessgreater(0.0,0.0); ; return 0; } EOF -if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3160,14 +3419,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { isunordered(0.0,0.0); ; return 0; } EOF -if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3181,16 +3440,16 @@ rm -f conftest* # Check for the existence in of vscanf, et. al. ac_c99_stdio=yes; echo $ac_n "checking for ISO C99 support in ""... $ac_c" 1>&6 -echo "configure:3185: checking for ISO C99 support in " >&5 +echo "configure:3444: checking for ISO C99 support in " >&5 cat > conftest.$ac_ext < int main() { snprintf("12", 0, "%i"); ; return 0; } EOF -if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3200,7 +3459,7 @@ else fi rm -f conftest* cat > conftest.$ac_ext < #include @@ -3211,7 +3470,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3221,7 +3480,7 @@ else fi rm -f conftest* cat > conftest.$ac_ext < #include @@ -3232,7 +3491,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3242,7 +3501,7 @@ else fi rm -f conftest* cat > conftest.$ac_ext < #include @@ -3253,7 +3512,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3263,7 +3522,7 @@ else fi rm -f conftest* cat > conftest.$ac_ext < #include @@ -3274,7 +3533,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3288,20 +3547,20 @@ rm -f conftest* # Check for the existence in of lldiv_t, et. al. ac_c99_stdlib=yes; echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6 -echo "configure:3292: checking for lldiv_t declaration" >&5 +echo "configure:3551: checking for lldiv_t declaration" >&5 if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { lldiv_t mydivt; ; return 0; } EOF -if { (eval echo configure:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_c99_lldiv_t=yes else @@ -3317,16 +3576,16 @@ fi echo "$ac_t""$ac_c99_lldiv_t" 1>&6 echo $ac_n "checking for ISO C99 support in ""... $ac_c" 1>&6 -echo "configure:3321: checking for ISO C99 support in " >&5 +echo "configure:3580: checking for ISO C99 support in " >&5 cat > conftest.$ac_ext < int main() { char* tmp; strtof("gnu", &tmp); ; return 0; } EOF -if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3336,48 +3595,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { char* tmp; strtold("gnu", &tmp); ; return 0; } EOF -if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_c99_stdlib=no -fi -rm -f conftest* - cat > conftest.$ac_ext < -int main() { -char* tmp; strtoll("gnu", &tmp, 10); -; return 0; } -EOF -if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_c99_stdlib=no -fi -rm -f conftest* - cat > conftest.$ac_ext < -int main() { -char* tmp; strtoull("gnu", &tmp, 10); -; return 0; } -EOF -if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3387,14 +3612,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { llabs(10); ; return 0; } EOF -if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3404,14 +3629,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { lldiv(10,1); ; return 0; } EOF -if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3421,14 +3646,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { atoll("10"); ; return 0; } EOF -if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3438,14 +3663,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { _Exit(0); ; return 0; } EOF -if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3463,16 +3688,16 @@ rm -f conftest* # XXX the wchar.h checks should be rolled into the general C99 bits. ac_c99_wchar=yes; echo $ac_n "checking for additional ISO C99 support in ""... $ac_c" 1>&6 -echo "configure:3467: checking for additional ISO C99 support in " >&5 +echo "configure:3692: checking for additional ISO C99 support in " >&5 cat > conftest.$ac_ext < int main() { wcstold(L"10.0", NULL); ; return 0; } EOF -if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3482,14 +3707,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { wcstoll(L"10", NULL, 10); ; return 0; } EOF -if { (eval echo configure:3493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3499,14 +3724,14 @@ else fi rm -f conftest* cat > conftest.$ac_ext < int main() { wcstoull(L"10", NULL, 10); ; return 0; } EOF -if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 @@ -3518,7 +3743,7 @@ rm -f conftest* echo "$ac_t""$ac_c99_wchar" 1>&6 echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6 -echo "configure:3522: checking for enabled ISO C99 support" >&5 +echo "configure:3747: checking for enabled ISO C99 support" >&5 if test x"$ac_c99_math" = x"no" || test x"$ac_c99_stdio" = x"no" || test x"$ac_c99_stdlib" = x"no" || @@ -3556,16 +3781,54 @@ else enable_long_long=yes fi - # iostreams require strtoll, strtoull to compile. If the - # GLIBCPP_ENABLE_C99 tests found these, and if C99 support is enabled, - # go ahead and allow long long to be used. - if test x"$enable_c99" = x"no"; then - enable_long_long=no; - fi + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + + echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6 +echo "configure:3795: checking for enabled long long I/O support" >&5 + # iostreams require strtoll, strtoull to compile + cat > conftest.$ac_ext < +int main() { +char* tmp; strtoll("gnu", &tmp, 10); +; return 0; } +EOF +if { (eval echo configure:3805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + enable_long_long=no +fi +rm -f conftest* + cat > conftest.$ac_ext < +int main() { +char* tmp; strtoull("gnu", &tmp, 10); +; return 0; } +EOF +if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + enable_long_long=no +fi +rm -f conftest* # Option parsed, now set things appropriately - echo $ac_n "checking for enabled long long support""... $ac_c" 1>&6 -echo "configure:3569: checking for enabled long long support" >&5 if test x"$enable_long_long" = xyes; then cat >> confdefs.h <<\EOF #define _GLIBCPP_USE_LONG_LONG 1 @@ -3574,8 +3837,16 @@ EOF fi echo "$ac_t""$enable_long_long" 1>&6 + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6 -echo "configure:3579: checking for c header strategy to use" >&5 +echo "configure:3850: checking for c header strategy to use" >&5 # Check whether --enable-cheaders or --disable-cheaders was given. if test "${enable_cheaders+set}" = set; then enableval="$enable_cheaders" @@ -3601,44 +3872,51 @@ fi case "$enable_cheaders" in c_shadow) - CSHADOW_FLAGS="-fno-builtin" - C_INCLUDE_DIR='${top_srcdir}/include/c_shadow' - cat >> confdefs.h <<\EOF -#define _GLIBCPP_USE_SHADOW_HEADERS 1 -EOF - + C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow' ;; c_std) - CSHADOW_FLAGS="" - C_INCLUDE_DIR='${top_srcdir}/include/c_std' + C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std' ;; c) - CSHADOW_FLAGS="" - C_INCLUDE_DIR='${top_srcdir}/include/c' + C_INCLUDE_DIR='${glibcpp_srcdir}/include/c' ;; esac + +if test "$enable_cheaders" = c; then + GLIBCPP_C_HEADERS_C_TRUE= + GLIBCPP_C_HEADERS_C_FALSE='#' +else + GLIBCPP_C_HEADERS_C_TRUE='#' + GLIBCPP_C_HEADERS_C_FALSE= +fi + + +if test "$enable_cheaders" = c_std; then + GLIBCPP_C_HEADERS_C_STD_TRUE= + GLIBCPP_C_HEADERS_C_STD_FALSE='#' +else + GLIBCPP_C_HEADERS_C_STD_TRUE='#' + GLIBCPP_C_HEADERS_C_STD_FALSE= +fi -if test "$enable_cheaders" = c_shadow; then - GLIBCPP_USE_CSHADOW_TRUE= - GLIBCPP_USE_CSHADOW_FALSE='#' +if test "$c_compatibility" = yes; then + GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE= + GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#' else - GLIBCPP_USE_CSHADOW_TRUE='#' - GLIBCPP_USE_CSHADOW_FALSE= + GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#' + GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE= fi echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6 -echo "configure:3636: checking for thread model used by GCC" >&5 +echo "configure:3917: checking for thread model used by GCC" >&5 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` echo "$ac_t""$target_thread_file" 1>&6 - - - if test $target_thread_file != single; then cat >> confdefs.h <<\EOF #define HAVE_GTHR_DEFAULT 1 @@ -3649,6 +3927,8 @@ EOF EOF fi + + glibcpp_thread_h=gthr-$target_thread_file.h # Check whether --enable-cxx-flags or --disable-cxx-flags was given. @@ -3686,7 +3966,7 @@ EXTRA_CXX_FLAGS="$enable_cxx_flags" echo $ac_n "checking for exception model to use""... $ac_c" 1>&6 -echo "configure:3690: checking for exception model to use" >&5 +echo "configure:3970: checking for exception model to use" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -3701,7 +3981,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then : else cat > conftest.$ac_ext << EOF -#line 3705 "configure" +#line 3985 "configure" struct S { ~S(); }; void bar(); void foo() @@ -3712,7 +3992,7 @@ void foo() EOF old_CXXFLAGS="$CXXFLAGS" CXXFLAGS=-S - if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then enable_sjlj_exceptions=yes elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then @@ -3744,44 +4024,137 @@ cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_exception_model_name" 1>&6 + echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6 +echo "configure:4029: checking for use of libunwind" >&5 + # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given. +if test "${enable_libunwind_exceptions+set}" = set; then + enableval="$enable_libunwind_exceptions" + use_libunwind_exceptions=$enableval +else + use_libunwind_exceptions=no +fi + + echo "$ac_t""$use_libunwind_exceptions" 1>&6 + if test x"$use_libunwind_exceptions" = xyes; then + LIBUNWIND_FLAG="-lunwind" + else + LIBUNWIND_FLAG="" + fi + + +# Check whether --enable-concept-checks or --disable-concept-checks was given. +if test "${enable_concept_checks+set}" = set; then + enableval="$enable_concept_checks" + case "$enableval" in + yes) enable_concept_checks=yes ;; + no) enable_concept_checks=no ;; + *) { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;; + esac +else + enable_concept_checks=no +fi +if test x"$enable_concept_checks" = xyes; then + cat >> confdefs.h <<\EOF +#define _GLIBCPP_CONCEPT_CHECKS 1 +EOF + +fi + + +# Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c +for ac_hdr in string.h stdlib.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4070: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + if test -n "$with_cross_host" || test x"$build" != x"$host"; then # We are being configured with some form of cross compiler. - # mknumeric_limits may not work correctly, either because the - # compiler may not run on this machine, may not be able to link - # executables, or may produce executables we can't run on this - # machine. - xcompiling=1 - - # If Canadian cross, then don't pick up tools from the build - # directory. + GLIBCPP_IS_CROSS_COMPILING=1 + + # This lets us hard-code the functionality we know we'll have in the cross + # target environment. "Let" is a sugar-coated word placed on an especially + # dull and tedious hack, actually. + # + # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros + # that involve linking, can't be used: + # "cannot open sim-crt0.o" + # "cannot open crt0.o" + # etc. All this is because there currently exists no unified, consistent + # way for top level CC information to be passed down to target directories: + # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc. + # When all of that is done, all of this hokey, excessive AC_DEFINE junk for + # crosses can be removed. + + # If Canadian cross, then don't pick up tools from the build directory. + # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?). if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then CANADIAN=yes else CANADIAN=no fi + # Construct crosses by hand, eliminating bits that need ld... + # GLIBCPP_CHECK_COMPILER_FEATURES + # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT + # GLIBCPP_CHECK_MATH_SUPPORT + case "$target_alias" in *-linux*) - # Construct linux crosses by hand, eliminating bits that need ld... - # Check for available headers. - for ac_hdr 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 + os_include_dir="os/gnu-linux" + for ac_hdr 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 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3775: checking for $ac_hdr" >&5 +echo "configure:4148: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3807,20 +4180,42 @@ else fi done - - # GLIBCPP_CHECK_COMPILER_FEATURES - SECTION_FLAGS='-ffunction-sections -fdata-sections' - - + 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... - SECTION_LDFLAGS='' - OPT_LDFLAGS='' + 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. + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + + glibcpp_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` # Set --gc-sections. - if test "$ac_cv_prog_gnu_ld" = "notbroken"; then + if test "$with_gnu_ld" = "notbroken"; then # GNU ld it is! Joy and bunny rabbits! # All these tests are for C++; save the language and the compiler flags. @@ -3837,12 +4232,12 @@ done # used sections, first .eh_frame and now some of the glibc sections for # iconv). Bzzzzt. Thanks for playing, maybe next time. echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 -echo "configure:3841: checking for ld that supports -Wl,--gc-sections" >&5 +echo "configure:4236: checking for ld that supports -Wl,--gc-sections" >&5 if test "$cross_compiling" = yes; then ac_sectionLDflags=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_sectionLDflags=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* - ac_sectionLFflags=no + ac_sectionLDflags=no fi rm -fr conftest* fi @@ -3872,282 +4267,37 @@ fi CFLAGS='' fi if test "$ac_sectionLDflags" = "yes"; then - SECTION_LDFLAGS='-Wl,--gc-sections' + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" fi echo "$ac_t""$ac_sectionLDflags" 1>&6 fi # Set linker optimization flags. - if test x"$ac_cv_prog_gnu_ld" = x"yes" && - test x"$enable_debug" = x"no"; then - OPT_LDFLAGS='-Wl,-O1' + if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" fi - # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT - # GLIBCPP_CHECK_MATH_SUPPORT - cat >> confdefs.h <<\EOF -#define HAVE_ACOSF 1 -EOF + + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 +echo "configure:4286: checking for main in -lm" >&5 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <> confdefs.h <<\EOF -#define HAVE_ASINF 1 +int main() { +main() +; return 0; } EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ATAN2F 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ATANF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_CEILF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COPYSIGN 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COPYSIGNF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COSF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COSHF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_EXPF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FABSF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FINITE 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FINITEF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FLOORF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FMODF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FREXPF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ISINF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ISINFF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ISNAN 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ISNANF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_LDEXPF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_LOG10F 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_LOGF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_MODFF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_POWF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINCOS 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINCOSF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINHF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SQRTF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_TANF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_TANHF 1 -EOF - - - # 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 <<\EOF -#define HAVE_ACOSL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ASINL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ATAN2L 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ATANL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_CEILL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COPYSIGNL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COSL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_COSHL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_EXPL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FABSL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FINITEL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FLOORL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FMODL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FREXPL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ISINFL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_ISNANL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_LDEXPL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_LOG10L 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_LOGL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_MODFL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_POWL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINCOSL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SINHL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SQRTL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_TANL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_TANHL 1 -EOF - - fi - - echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:4136: checking for main in -lm" >&5 -ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4174,15 +4324,15 @@ else echo "$ac_t""no" 1>&6 fi - for ac_func in nan hypot hypotf atan2f expf copysignf + for ac_func in nan copysignf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4181: checking for $ac_func" >&5 +echo "configure:4331: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4231,20 +4381,15 @@ fi done - - USE_COMPLEX_LONG_DOUBLE=no - if test x$ac_cv_func_atan2l = x"yes" && - test x$ac_cv_func_copysignl = x"yes"; then - USE_COMPLEX_LONG_DOUBLE=yes - for ac_func in hypotl signbitl + for ac_func in __signbit do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4243: checking for $ac_func" >&5 +echo "configure:4388: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4288,64 +4433,177 @@ EOF else echo "$ac_t""no" 1>&6 -LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +LIBMATHOBJS="$LIBMATHOBJS signbit.lo" fi done - - fi - - - - - - echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 -echo "configure:4304: checking for mbstate_t" >&5 + for ac_func in __signbitf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:4444: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else cat > conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { -mbstate_t teststate; + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - have_mbstate_t=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - have_mbstate_t=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - echo "$ac_t""$have_mbstate_t" 1>&6 - if test x"$have_mbstate_t" = xyes; then - cat >> confdefs.h <<\EOF -#define HAVE_MBSTATE_T 1 +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" +fi +done - fi - for ac_hdr in wchar.h + if test x$ac_cv_func_copysignl = x"yes"; then + for ac_func in __signbitl do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4335: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:4502: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + + + + + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 +echo "configure:4562: checking for mbstate_t" >&5 + cat > conftest.$ac_ext < +int main() { +mbstate_t teststate; +; return 0; } +EOF +if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + have_mbstate_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + have_mbstate_t=no +fi +rm -f conftest* + echo "$ac_t""$have_mbstate_t" 1>&6 + if test x"$have_mbstate_t" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MBSTATE_T 1 +EOF + + fi + + for ac_hdr in wchar.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4593: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 @@ -4368,19 +4626,21 @@ ac_has_wchar_h=no fi done - ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for wctype.h""... $ac_c" 1>&6 -echo "configure:4374: checking for wctype.h" >&5 + for ac_hdr in wctype.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4634: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4396,11 +4656,16 @@ rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_has_wctype_h=yes + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 ac_has_wctype_h=no fi +done if test x"$ac_has_wchar_h" = xyes && @@ -4408,16 +4673,16 @@ fi test x"$enable_c_mbchar" != xno; then echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 -echo "configure:4412: checking for WCHAR_MIN and WCHAR_MAX" >&5 +echo "configure:4677: checking for WCHAR_MIN and WCHAR_MAX" >&5 cat > conftest.$ac_ext < int main() { int i = WCHAR_MIN; int j = WCHAR_MAX; ; return 0; } EOF -if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* has_wchar_minmax=yes else @@ -4430,9 +4695,9 @@ rm -f conftest* echo "$ac_t""$has_wchar_minmax" 1>&6 echo $ac_n "checking for WEOF""... $ac_c" 1>&6 -echo "configure:4434: checking for WEOF" >&5 +echo "configure:4699: checking for WEOF" >&5 cat > conftest.$ac_ext < @@ -4441,7 +4706,7 @@ int main() { wint_t i = WEOF; ; return 0; } EOF -if { (eval echo configure:4445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* has_weof=yes else @@ -4457,12 +4722,12 @@ rm -f conftest* for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4461: checking for $ac_func" >&5 +echo "configure:4726: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4520,12 +4785,12 @@ done wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4524: checking for $ac_func" >&5 +echo "configure:4789: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4576,7 +4841,7 @@ done echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 -echo "configure:4580: checking for ISO C99 wchar_t support" >&5 +echo "configure:4845: checking for ISO C99 wchar_t support" >&5 if test x"$has_weof" = xyes && test x"$has_wchar_minmax" = xyes && test x"$ac_wfuncs" = xyes; then @@ -4588,17 +4853,17 @@ echo "configure:4580: checking for ISO C99 wchar_t support" >&5 ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 -echo "configure:4592: checking for iconv.h" >&5 +echo "configure:4857: checking for iconv.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4622,17 +4887,17 @@ fi ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 -echo "configure:4626: checking for langinfo.h" >&5 +echo "configure:4891: checking for langinfo.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4656,7 +4921,7 @@ fi echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 -echo "configure:4660: checking for iconv in -liconv" >&5 +echo "configure:4925: checking for iconv in -liconv" >&5 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4664,7 +4929,7 @@ else ac_save_LIBS="$LIBS" LIBS="-liconv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4701,12 +4966,12 @@ fi for ac_func in iconv_open iconv_close iconv nl_langinfo do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4705: checking for $ac_func" >&5 +echo "configure:4970: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4759,7 +5024,7 @@ done LIBS="$ac_save_LIBS" echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 -echo "configure:4763: checking for XPG2 wchar_t support" >&5 +echo "configure:5028: checking for XPG2 wchar_t support" >&5 if test x"$ac_has_iconv_h" = xyes && test x"$ac_has_langinfo_h" = xyes && test x"$ac_XPG2funcs" = xyes; then @@ -4770,7 +5035,7 @@ echo "configure:4763: checking for XPG2 wchar_t support" >&5 echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 -echo "configure:4774: checking for enabled wchar_t specializations" >&5 +echo "configure:5039: checking for enabled wchar_t specializations" >&5 if test x"$ac_isoC99_wchar_t" = xyes && test x"$ac_XPG2_wchar_t" = xyes; then cat >> confdefs.h <<\EOF @@ -4785,76 +5050,92 @@ EOF echo "configure: warning: wchar_t support disabled." 1>&2 fi - os_include_dir="config/os/gnu-linux" - # GLIBCPP_CHECK_STDLIB_SUPPORT - cat >> confdefs.h <<\EOF -#define HAVE_STRTOF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_STRTOLD 1 + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGN 1 EOF - - # AC_FUNC_MMAP - cat >> confdefs.h <<\EOF -#define HAVE_MMAP 1 + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGNF 1 EOF - ;; - *) - # We assume newlib. This lets us hard-code the functions we know - # we'll have. - cat >> confdefs.h <<\EOF + cat >> confdefs.h <<\EOF #define HAVE_FINITE 1 EOF - cat >> confdefs.h <<\EOF -#define HAVE_ISNAN 1 + cat >> confdefs.h <<\EOF +#define HAVE_FINITEF 1 EOF - cat >> confdefs.h <<\EOF -#define HAVE_ISNANF 1 + cat >> confdefs.h <<\EOF +#define HAVE_FREXPF 1 EOF - cat >> confdefs.h <<\EOF + cat >> confdefs.h <<\EOF +#define HAVE_HYPOTF 1 +EOF + + cat >> confdefs.h <<\EOF #define HAVE_ISINF 1 EOF - cat >> confdefs.h <<\EOF + cat >> confdefs.h <<\EOF #define HAVE_ISINFF 1 EOF + cat >> confdefs.h <<\EOF +#define HAVE_ISNAN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNANF 1 +EOF - os_include_dir="config/os/newlib" + cat >> confdefs.h <<\EOF +#define HAVE_SINCOS 1 +EOF - # need to check for faster f versions of math functions, ie sinf? - ;; - esac -else + cat >> confdefs.h <<\EOF +#define HAVE_SINCOSF 1 +EOF - # We are being configured natively. We can do more elaborate tests - # that include AC_TRY_COMPILE now, as the linker is assumed to be - # working. - xcompiling=0 - CANADIAN=no + if test x"long_double_math_on_this_cpu" = x"yes"; then + cat >> confdefs.h <<\EOF +#define HAVE_FINITEL 1 +EOF - # Check for available headers. - for ac_hdr 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 + cat >> confdefs.h <<\EOF +#define HAVE_HYPOTL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISINFL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNANL 1 +EOF + + fi + ;; + *-hpux*) + # Check for available headers. + for ac_hdr 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 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4848: checking for $ac_hdr" >&5 +echo "configure:5129: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4880,84 +5161,42 @@ else fi done - - - # 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 GLIBCPP_CONFIGURE. - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - 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 $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6 -echo "configure:4909: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 - CXXFLAGS='-Werror -ffunction-sections -fdata-sections' - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_fdsections=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_fdsections=no -fi -rm -f conftest* - 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" && - test x"$enable_debug" = x"no"; then - SECTION_FLAGS='-ffunction-sections -fdata-sections' - fi - echo "$ac_t""$ac_fdsections" 1>&6 - - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - - - - - + 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... - SECTION_LDFLAGS='' - OPT_LDFLAGS='' + 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. + + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + glibcpp_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` # Set --gc-sections. - if test "$ac_cv_prog_gnu_ld" = "notbroken"; then + if test "$with_gnu_ld" = "notbroken"; then # GNU ld it is! Joy and bunny rabbits! # All these tests are for C++; save the language and the compiler flags. @@ -4974,12 +5213,12 @@ cross_compiling=$ac_cv_prog_cc_cross # used sections, first .eh_frame and now some of the glibc sections for # iconv). Bzzzzt. Thanks for playing, maybe next time. echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 -echo "configure:4978: checking for ld that supports -Wl,--gc-sections" >&5 +echo "configure:5217: checking for ld that supports -Wl,--gc-sections" >&5 if test "$cross_compiling" = yes; then ac_sectionLDflags=yes else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_sectionLDflags=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* - ac_sectionLFflags=no + ac_sectionLDflags=no fi rm -fr conftest* fi @@ -5009,284 +5248,5945 @@ fi CFLAGS='' fi if test "$ac_sectionLDflags" = "yes"; then - SECTION_LDFLAGS='-Wl,--gc-sections' + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" fi echo "$ac_t""$ac_sectionLDflags" 1>&6 fi # Set linker optimization flags. - if test x"$ac_cv_prog_gnu_ld" = x"yes" && - test x"$enable_debug" = x"no"; then - OPT_LDFLAGS='-Wl,-O1' + if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" fi - - echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6 -echo "configure:5030: checking for __builtin_abs declaration" >&5 - if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 +echo "configure:5267: checking for main in -lm" >&5 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - __builtin_abs(0); +main() ; return 0; } EOF -if { (eval echo configure:5052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_abs_use=yes + eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_abs_use=no + eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross +LIBS="$ac_save_LIBS" - fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 - if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then - echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6 -echo "configure:5076: checking for __builtin_abs linkage" >&5 - if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then + LIBS="-lm $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + + for ac_func in nan copysignf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5312: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_abs(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_abs_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_abs_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6 - if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done - fi - fi - - echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6 -echo "configure:5116: checking for __builtin_fabsf declaration" >&5 - if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then + for ac_func in __signbit +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5369: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_fabsf(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_fabsf_use=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fabsf_use=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross +fi - +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo" fi +done - fi - echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6 - if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then - echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6 -echo "configure:5162: checking for __builtin_fabsf linkage" >&5 - if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then + for ac_func in __signbitf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5425: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_fabsf(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_fabsf_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fabsf_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6 - if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" +fi +done - fi - fi - - echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6 -echo "configure:5202: checking for __builtin_fabs declaration" >&5 - if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then + if test x$ac_cv_func_copysignl = x"yes"; then + for ac_func in __signbitl +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5483: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_fabs(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_fabs_use=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fabs_use=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6 - if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then - echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6 -echo "configure:5248: checking for __builtin_fabs linkage" >&5 - if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + + + + + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 +echo "configure:5543: checking for mbstate_t" >&5 + cat > conftest.$ac_ext < +int main() { +mbstate_t teststate; +; return 0; } +EOF +if { (eval echo configure:5552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + have_mbstate_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + have_mbstate_t=no +fi +rm -f conftest* + echo "$ac_t""$have_mbstate_t" 1>&6 + if test x"$have_mbstate_t" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MBSTATE_T 1 +EOF + + fi + + for ac_hdr in wchar.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:5574: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wchar_h=no +fi +done + + for ac_hdr in wctype.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:5615: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wctype_h=no +fi +done + + + if test x"$ac_has_wchar_h" = xyes && + test x"$ac_has_wctype_h" = xyes && + test x"$enable_c_mbchar" != xno; then + + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 +echo "configure:5658: checking for WCHAR_MIN and WCHAR_MAX" >&5 + cat > conftest.$ac_ext < +int main() { +int i = WCHAR_MIN; int j = WCHAR_MAX; +; return 0; } +EOF +if { (eval echo configure:5667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_wchar_minmax=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_wchar_minmax=no +fi +rm -f conftest* + echo "$ac_t""$has_wchar_minmax" 1>&6 + + echo $ac_n "checking for WEOF""... $ac_c" 1>&6 +echo "configure:5680: checking for WEOF" >&5 + cat > conftest.$ac_ext < + #include +int main() { +wint_t i = WEOF; +; return 0; } +EOF +if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_weof=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_weof=no +fi +rm -f conftest* + echo "$ac_t""$has_weof" 1>&6 + + ac_wfuncs=yes + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5707: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \ + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \ + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \ + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \ + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \ + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5770: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 +echo "configure:5826: checking for ISO C99 wchar_t support" >&5 + if test x"$has_weof" = xyes && + test x"$has_wchar_minmax" = xyes && + test x"$ac_wfuncs" = xyes; then + ac_isoC99_wchar_t=yes + else + ac_isoC99_wchar_t=no + fi + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6 + + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 +echo "configure:5838: checking for iconv.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_iconv_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_iconv_h=no +fi + + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 +echo "configure:5872: checking for langinfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_langinfo_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_langinfo_h=no +fi + + + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 +echo "configure:5906: checking for iconv in -liconv" >&5 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-liconv $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + libiconv="-liconv" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libiconv" + + for ac_func in iconv_open iconv_close iconv nl_langinfo +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5951: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +ac_XPG2funcs=no +fi +done + + + LIBS="$ac_save_LIBS" + + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 +echo "configure:6009: checking for XPG2 wchar_t support" >&5 + if test x"$ac_has_iconv_h" = xyes && + test x"$ac_has_langinfo_h" = xyes && + test x"$ac_XPG2funcs" = xyes; then + ac_XPG2_wchar_t=yes + else + ac_XPG2_wchar_t=no + fi + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 + + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 +echo "configure:6020: checking for enabled wchar_t specializations" >&5 + if test x"$ac_isoC99_wchar_t" = xyes && + test x"$ac_XPG2_wchar_t" = xyes; then + cat >> confdefs.h <<\EOF +#define _GLIBCPP_USE_WCHAR_T 1 +EOF + + echo "$ac_t"""yes"" 1>&6 + else + echo "$ac_t"""no"" 1>&6 + fi + else + echo "configure: warning: wchar_t support disabled." 1>&2 + fi + + os_include_dir="os/hpux" + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGNF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FREXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_HYPOT 1 +EOF + + case "$target_alias" in + *-hpux10*) + cat >> confdefs.h <<\EOF +#define HAVE_FINITE 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FINITEF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISINFF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNAN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNANF 1 +EOF + + ;; + esac + + ;; + *-netbsd*) + # Check for available headers. + for ac_hdr 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 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6090: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +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. + + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + + glibcpp_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + + # Set --gc-sections. + if test "$with_gnu_ld" = "notbroken"; then + # GNU ld it is! Joy and bunny rabbits! + + # All these tests are for C++; save the language and the compiler flags. + # Need to do this so that g++ won't try to link in libstdc++ + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-x c++ -Wl,--gc-sections' + + # Check for -Wl,--gc-sections + # XXX This test is broken at the moment, as symbols required for + # linking are now in libsupc++ (not built yet.....). In addition, + # this test has cored on solaris in the past. In addition, + # --gc-sections doesn't really work at the moment (keeps on discarding + # used sections, first .eh_frame and now some of the glibc sections for + # iconv). Bzzzzt. Thanks for playing, maybe next time. + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 +echo "configure:6178: checking for ld that supports -Wl,--gc-sections" >&5 + if test "$cross_compiling" = yes; then + ac_sectionLDflags=yes +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_sectionLDflags=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_sectionLDflags=no +fi +rm -fr conftest* +fi + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + if test "$ac_sectionLDflags" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$ac_t""$ac_sectionLDflags" 1>&6 + fi + + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi + + + + + + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 +echo "configure:6228: checking for main in -lm" >&5 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + + for ac_func in nan copysignf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6273: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done + + + for ac_func in __signbit +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6330: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done + + for ac_func in __signbitf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6386: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" +fi +done + + + if test x$ac_cv_func_copysignl = x"yes"; then + for ac_func in __signbitl +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6444: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + + + + + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 +echo "configure:6504: checking for mbstate_t" >&5 + cat > conftest.$ac_ext < +int main() { +mbstate_t teststate; +; return 0; } +EOF +if { (eval echo configure:6513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + have_mbstate_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + have_mbstate_t=no +fi +rm -f conftest* + echo "$ac_t""$have_mbstate_t" 1>&6 + if test x"$have_mbstate_t" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MBSTATE_T 1 +EOF + + fi + + for ac_hdr in wchar.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6535: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wchar_h=no +fi +done + + for ac_hdr in wctype.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6576: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wctype_h=no +fi +done + + + if test x"$ac_has_wchar_h" = xyes && + test x"$ac_has_wctype_h" = xyes && + test x"$enable_c_mbchar" != xno; then + + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 +echo "configure:6619: checking for WCHAR_MIN and WCHAR_MAX" >&5 + cat > conftest.$ac_ext < +int main() { +int i = WCHAR_MIN; int j = WCHAR_MAX; +; return 0; } +EOF +if { (eval echo configure:6628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_wchar_minmax=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_wchar_minmax=no +fi +rm -f conftest* + echo "$ac_t""$has_wchar_minmax" 1>&6 + + echo $ac_n "checking for WEOF""... $ac_c" 1>&6 +echo "configure:6641: checking for WEOF" >&5 + cat > conftest.$ac_ext < + #include +int main() { +wint_t i = WEOF; +; return 0; } +EOF +if { (eval echo configure:6652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_weof=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_weof=no +fi +rm -f conftest* + echo "$ac_t""$has_weof" 1>&6 + + ac_wfuncs=yes + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6668: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \ + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \ + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \ + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \ + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \ + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6731: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 +echo "configure:6787: checking for ISO C99 wchar_t support" >&5 + if test x"$has_weof" = xyes && + test x"$has_wchar_minmax" = xyes && + test x"$ac_wfuncs" = xyes; then + ac_isoC99_wchar_t=yes + else + ac_isoC99_wchar_t=no + fi + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6 + + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 +echo "configure:6799: checking for iconv.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_iconv_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_iconv_h=no +fi + + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 +echo "configure:6833: checking for langinfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_langinfo_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_langinfo_h=no +fi + + + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 +echo "configure:6867: checking for iconv in -liconv" >&5 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-liconv $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + libiconv="-liconv" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libiconv" + + for ac_func in iconv_open iconv_close iconv nl_langinfo +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:6912: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +ac_XPG2funcs=no +fi +done + + + LIBS="$ac_save_LIBS" + + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 +echo "configure:6970: checking for XPG2 wchar_t support" >&5 + if test x"$ac_has_iconv_h" = xyes && + test x"$ac_has_langinfo_h" = xyes && + test x"$ac_XPG2funcs" = xyes; then + ac_XPG2_wchar_t=yes + else + ac_XPG2_wchar_t=no + fi + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 + + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 +echo "configure:6981: checking for enabled wchar_t specializations" >&5 + if test x"$ac_isoC99_wchar_t" = xyes && + test x"$ac_XPG2_wchar_t" = xyes; then + cat >> confdefs.h <<\EOF +#define _GLIBCPP_USE_WCHAR_T 1 +EOF + + echo "$ac_t"""yes"" 1>&6 + else + echo "$ac_t"""no"" 1>&6 + fi + else + echo "configure: warning: wchar_t support disabled." 1>&2 + fi + + os_include_dir="os/bsd/netbsd" + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGNF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FINITEF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FINITE 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FREXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_HYPOTF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISINFF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNAN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNANF 1 +EOF + + if test x"long_double_math_on_this_cpu" = x"yes"; then + cat >> confdefs.h <<\EOF +#define HAVE_FINITEL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISINFL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ISNANL 1 +EOF + + fi + ;; + *-mingw32*) + for ac_hdr in sys/types.h locale.h float.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:7057: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + + # 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. + + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + + glibcpp_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + + # Set --gc-sections. + if test "$with_gnu_ld" = "notbroken"; then + # GNU ld it is! Joy and bunny rabbits! + + # All these tests are for C++; save the language and the compiler flags. + # Need to do this so that g++ won't try to link in libstdc++ + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-x c++ -Wl,--gc-sections' + + # Check for -Wl,--gc-sections + # XXX This test is broken at the moment, as symbols required for + # linking are now in libsupc++ (not built yet.....). In addition, + # this test has cored on solaris in the past. In addition, + # --gc-sections doesn't really work at the moment (keeps on discarding + # used sections, first .eh_frame and now some of the glibc sections for + # iconv). Bzzzzt. Thanks for playing, maybe next time. + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 +echo "configure:7143: checking for ld that supports -Wl,--gc-sections" >&5 + if test "$cross_compiling" = yes; then + ac_sectionLDflags=yes +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_sectionLDflags=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_sectionLDflags=no +fi +rm -fr conftest* +fi + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + if test "$ac_sectionLDflags" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$ac_t""$ac_sectionLDflags" 1>&6 + fi + + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi + + + + + + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 +echo "configure:7193: checking for main in -lm" >&5 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + + for ac_func in nan copysignf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7238: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done + + + for ac_func in __signbit +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7295: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done + + for ac_func in __signbitf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7351: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" +fi +done + + + if test x$ac_cv_func_copysignl = x"yes"; then + for ac_func in __signbitl +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7409: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + + + + + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 +echo "configure:7469: checking for mbstate_t" >&5 + cat > conftest.$ac_ext < +int main() { +mbstate_t teststate; +; return 0; } +EOF +if { (eval echo configure:7478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + have_mbstate_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + have_mbstate_t=no +fi +rm -f conftest* + echo "$ac_t""$have_mbstate_t" 1>&6 + if test x"$have_mbstate_t" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MBSTATE_T 1 +EOF + + fi + + for ac_hdr in wchar.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:7500: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wchar_h=no +fi +done + + for ac_hdr in wctype.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:7541: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wctype_h=no +fi +done + + + if test x"$ac_has_wchar_h" = xyes && + test x"$ac_has_wctype_h" = xyes && + test x"$enable_c_mbchar" != xno; then + + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 +echo "configure:7584: checking for WCHAR_MIN and WCHAR_MAX" >&5 + cat > conftest.$ac_ext < +int main() { +int i = WCHAR_MIN; int j = WCHAR_MAX; +; return 0; } +EOF +if { (eval echo configure:7593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_wchar_minmax=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_wchar_minmax=no +fi +rm -f conftest* + echo "$ac_t""$has_wchar_minmax" 1>&6 + + echo $ac_n "checking for WEOF""... $ac_c" 1>&6 +echo "configure:7606: checking for WEOF" >&5 + cat > conftest.$ac_ext < + #include +int main() { +wint_t i = WEOF; +; return 0; } +EOF +if { (eval echo configure:7617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_weof=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_weof=no +fi +rm -f conftest* + echo "$ac_t""$has_weof" 1>&6 + + ac_wfuncs=yes + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7633: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \ + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \ + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \ + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \ + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \ + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7696: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 +echo "configure:7752: checking for ISO C99 wchar_t support" >&5 + if test x"$has_weof" = xyes && + test x"$has_wchar_minmax" = xyes && + test x"$ac_wfuncs" = xyes; then + ac_isoC99_wchar_t=yes + else + ac_isoC99_wchar_t=no + fi + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6 + + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 +echo "configure:7764: checking for iconv.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_iconv_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_iconv_h=no +fi + + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 +echo "configure:7798: checking for langinfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_langinfo_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_langinfo_h=no +fi + + + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 +echo "configure:7832: checking for iconv in -liconv" >&5 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-liconv $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + libiconv="-liconv" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libiconv" + + for ac_func in iconv_open iconv_close iconv nl_langinfo +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:7877: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +ac_XPG2funcs=no +fi +done + + + LIBS="$ac_save_LIBS" + + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 +echo "configure:7935: checking for XPG2 wchar_t support" >&5 + if test x"$ac_has_iconv_h" = xyes && + test x"$ac_has_langinfo_h" = xyes && + test x"$ac_XPG2funcs" = xyes; then + ac_XPG2_wchar_t=yes + else + ac_XPG2_wchar_t=no + fi + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 + + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 +echo "configure:7946: checking for enabled wchar_t specializations" >&5 + if test x"$ac_isoC99_wchar_t" = xyes && + test x"$ac_XPG2_wchar_t" = xyes; then + cat >> confdefs.h <<\EOF +#define _GLIBCPP_USE_WCHAR_T 1 +EOF + + echo "$ac_t"""yes"" 1>&6 + else + echo "$ac_t"""no"" 1>&6 + fi + else + echo "configure: warning: wchar_t support disabled." 1>&2 + fi + + os_include_dir="os/mingw32" + ;; + *-windiss*) + os_include_dir="os/windiss" + ;; + *-qnx6.[12]*) + 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. + + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + + glibcpp_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + + # Set --gc-sections. + if test "$with_gnu_ld" = "notbroken"; then + # GNU ld it is! Joy and bunny rabbits! + + # All these tests are for C++; save the language and the compiler flags. + # Need to do this so that g++ won't try to link in libstdc++ + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-x c++ -Wl,--gc-sections' + + # Check for -Wl,--gc-sections + # XXX This test is broken at the moment, as symbols required for + # linking are now in libsupc++ (not built yet.....). In addition, + # this test has cored on solaris in the past. In addition, + # --gc-sections doesn't really work at the moment (keeps on discarding + # used sections, first .eh_frame and now some of the glibc sections for + # iconv). Bzzzzt. Thanks for playing, maybe next time. + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 +echo "configure:8019: checking for ld that supports -Wl,--gc-sections" >&5 + if test "$cross_compiling" = yes; then + ac_sectionLDflags=yes +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_sectionLDflags=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_sectionLDflags=no +fi +rm -fr conftest* +fi + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + if test "$ac_sectionLDflags" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$ac_t""$ac_sectionLDflags" 1>&6 + fi + + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi + + + + + + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 +echo "configure:8069: checking for main in -lm" >&5 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + + for ac_func in nan copysignf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8114: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +fi +done + + + for ac_func in __signbit +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8171: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done + + for ac_func in __signbitf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8227: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" +fi +done + + + if test x$ac_cv_func_copysignl = x"yes"; then + for ac_func in __signbitl +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8285: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" +fi +done + + fi + + + + + + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 +echo "configure:8345: checking for mbstate_t" >&5 + cat > conftest.$ac_ext < +int main() { +mbstate_t teststate; +; return 0; } +EOF +if { (eval echo configure:8354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + have_mbstate_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + have_mbstate_t=no +fi +rm -f conftest* + echo "$ac_t""$have_mbstate_t" 1>&6 + if test x"$have_mbstate_t" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MBSTATE_T 1 +EOF + + fi + + for ac_hdr in wchar.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:8376: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wchar_h=no +fi +done + + for ac_hdr in wctype.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:8417: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wctype_h=no +fi +done + + + if test x"$ac_has_wchar_h" = xyes && + test x"$ac_has_wctype_h" = xyes && + test x"$enable_c_mbchar" != xno; then + + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 +echo "configure:8460: checking for WCHAR_MIN and WCHAR_MAX" >&5 + cat > conftest.$ac_ext < +int main() { +int i = WCHAR_MIN; int j = WCHAR_MAX; +; return 0; } +EOF +if { (eval echo configure:8469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_wchar_minmax=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_wchar_minmax=no +fi +rm -f conftest* + echo "$ac_t""$has_wchar_minmax" 1>&6 + + echo $ac_n "checking for WEOF""... $ac_c" 1>&6 +echo "configure:8482: checking for WEOF" >&5 + cat > conftest.$ac_ext < + #include +int main() { +wint_t i = WEOF; +; return 0; } +EOF +if { (eval echo configure:8493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_weof=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_weof=no +fi +rm -f conftest* + echo "$ac_t""$has_weof" 1>&6 + + ac_wfuncs=yes + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8509: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \ + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \ + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \ + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \ + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \ + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8572: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +\ + ac_wfuncs=no +fi +done + + + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 +echo "configure:8628: checking for ISO C99 wchar_t support" >&5 + if test x"$has_weof" = xyes && + test x"$has_wchar_minmax" = xyes && + test x"$ac_wfuncs" = xyes; then + ac_isoC99_wchar_t=yes + else + ac_isoC99_wchar_t=no + fi + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6 + + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 +echo "configure:8640: checking for iconv.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_iconv_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_iconv_h=no +fi + + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 +echo "configure:8674: checking for langinfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_langinfo_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_langinfo_h=no +fi + + + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 +echo "configure:8708: checking for iconv in -liconv" >&5 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-liconv $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + libiconv="-liconv" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libiconv" + + for ac_func in iconv_open iconv_close iconv nl_langinfo +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:8753: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +ac_XPG2funcs=no +fi +done + + + LIBS="$ac_save_LIBS" + + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 +echo "configure:8811: checking for XPG2 wchar_t support" >&5 + if test x"$ac_has_iconv_h" = xyes && + test x"$ac_has_langinfo_h" = xyes && + test x"$ac_XPG2funcs" = xyes; then + ac_XPG2_wchar_t=yes + else + ac_XPG2_wchar_t=no + fi + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 + + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 +echo "configure:8822: checking for enabled wchar_t specializations" >&5 + if test x"$ac_isoC99_wchar_t" = xyes && + test x"$ac_XPG2_wchar_t" = xyes; then + cat >> confdefs.h <<\EOF +#define _GLIBCPP_USE_WCHAR_T 1 +EOF + + echo "$ac_t"""yes"" 1>&6 + else + echo "$ac_t"""no"" 1>&6 + fi + else + echo "configure: warning: wchar_t support disabled." 1>&2 + fi + + os_include_dir="os/qnx/qnx6.1" + cat >> confdefs.h <<\EOF +#define HAVE_COSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSHF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSHL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOGF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOGL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOG10F 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOG10L 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINHF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINHL 1 +EOF + + ;; + *) + os_include_dir="os/newlib" + cat >> confdefs.h <<\EOF +#define HAVE_HYPOT 1 +EOF + + ;; + esac + + case "$target_alias" in + *-mingw32*) + ;; + *-windiss*) + cat >> confdefs.h <<\EOF +#define HAVE_ACOSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ASINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ATAN2F 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ATANF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_CEILF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGNF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSHF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_EXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FABSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FLOORF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FMODF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FREXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LDEXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOG10F 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOGF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_MODFF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_POWF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINHF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SQRTF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TANF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TANHF 1 +EOF + + ;; + *) + # GLIBCPP_CHECK_STDLIB_SUPPORT + cat >> confdefs.h <<\EOF +#define HAVE_STRTOF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_STRTOLD 1 +EOF + + # AC_FUNC_MMAP + cat >> confdefs.h <<\EOF +#define HAVE_MMAP 1 +EOF + + + cat >> confdefs.h <<\EOF +#define HAVE_ACOSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ASINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ATAN2F 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ATANF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_CEILF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGNF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSHF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_EXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FABSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FLOORF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FMODF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FREXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LDEXPF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOG10F 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOGF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_MODFF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_POWF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINHF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SQRTF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TANF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TANHF 1 +EOF + + ;; + esac + + # 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 <<\EOF +#define HAVE_ACOSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ASINL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ATAN2L 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_ATANL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_CEILL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COPYSIGNL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_COSHL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_EXPL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FABSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FLOORL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FMODL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_FREXPL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LDEXPL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOG10L 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_LOGL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_MODFL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_POWL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINCOSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SINHL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_SQRTL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TANL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE_TANHL 1 +EOF + + fi + +else + + # We are being configured natively. We can do more elaborate tests + # that include AC_TRY_COMPILE now, as the linker is assumed to be + # working. + GLIBCPP_IS_CROSS_COMPILING=0 + CANADIAN=no + + # Check for available headers. + for ac_hdr 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 +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:9228: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + + + # 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 GLIBCPP_CONFIGURE. + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + 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 $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6 +echo "configure:9289: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 + CXXFLAGS='-Werror -ffunction-sections -fdata-sections' + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_fdsections=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_fdsections=no +fi +rm -f conftest* + 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" && + test x"$enable_debug" = x"no"; then + SECTION_FLAGS='-ffunction-sections -fdata-sections' + fi + echo "$ac_t""$ac_fdsections" 1>&6 + + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + + + + + # 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. + + ldver=`$LD --version 2>/dev/null | head -1 | \ + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + + glibcpp_gnu_ld_version=`echo $ldver | \ + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` + + # Set --gc-sections. + if test "$with_gnu_ld" = "notbroken"; then + # GNU ld it is! Joy and bunny rabbits! + + # All these tests are for C++; save the language and the compiler flags. + # Need to do this so that g++ won't try to link in libstdc++ + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-x c++ -Wl,--gc-sections' + + # Check for -Wl,--gc-sections + # XXX This test is broken at the moment, as symbols required for + # linking are now in libsupc++ (not built yet.....). In addition, + # this test has cored on solaris in the past. In addition, + # --gc-sections doesn't really work at the moment (keeps on discarding + # used sections, first .eh_frame and now some of the glibc sections for + # iconv). Bzzzzt. Thanks for playing, maybe next time. + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6 +echo "configure:9382: checking for ld that supports -Wl,--gc-sections" >&5 + if test "$cross_compiling" = yes; then + ac_sectionLDflags=yes +else + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_sectionLDflags=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_sectionLDflags=no +fi +rm -fr conftest* +fi + + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + if test "$ac_sectionLDflags" = "yes"; then + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" + fi + echo "$ac_t""$ac_sectionLDflags" 1>&6 + fi + + # Set linker optimization flags. + if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" + fi + + + + + + + echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6 +echo "configure:9433: checking for __builtin_abs declaration" >&5 + if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_abs(0); +; return 0; } +EOF +if { (eval echo configure:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_abs_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_abs_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6 + if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then + echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6 +echo "configure:9479: checking for __builtin_abs linkage" >&5 + if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_abs(0); +; return 0; } +EOF +if { (eval echo configure:9493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_abs_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_abs_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6 + if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:9519: checking for __builtin_fabsf declaration" >&5 + if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_fabsf(0); +; return 0; } +EOF +if { (eval echo configure:9541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_fabsf_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_fabsf_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6 + if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then + echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6 +echo "configure:9565: checking for __builtin_fabsf linkage" >&5 + if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_fabsf(0); +; return 0; } +EOF +if { (eval echo configure:9579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_fabsf_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_fabsf_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6 + if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:9605: checking for __builtin_fabs declaration" >&5 + if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_fabs(0); +; return 0; } +EOF +if { (eval echo configure:9627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_fabs_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_fabs_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6 + if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then + echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6 +echo "configure:9651: checking for __builtin_fabs linkage" >&5 + if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - cat > conftest.$ac_ext < conftest.$ac_ext < +int main() { + __builtin_fabs(0); +; return 0; } +EOF +if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_fabs_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_fabs_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6 + if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:9691: checking for __builtin_fabsl declaration" >&5 + if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_fabsl(0); +; return 0; } +EOF +if { (eval echo configure:9713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_fabsl_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_fabsl_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6 + if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then + echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6 +echo "configure:9737: checking for __builtin_fabsl linkage" >&5 + if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_fabsl(0); +; return 0; } +EOF +if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_fabsl_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_fabsl_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6 + if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:9777: checking for __builtin_labs declaration" >&5 + if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_labs(0); +; return 0; } +EOF +if { (eval echo configure:9799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_labs_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_labs_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6 + if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then + echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6 +echo "configure:9823: checking for __builtin_labs linkage" >&5 + if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_labs(0); +; return 0; } +EOF +if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_labs_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_labs_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6 + if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:9864: checking for __builtin_sqrtf declaration" >&5 + if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_sqrtf(0); +; return 0; } +EOF +if { (eval echo configure:9886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtf_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtf_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6 + if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then + echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6 +echo "configure:9910: checking for __builtin_sqrtf linkage" >&5 + if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_sqrtf(0); +; return 0; } +EOF +if { (eval echo configure:9924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtf_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtf_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6 + if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:9950: checking for __builtin_sqrt declaration" >&5 + if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_sqrt(0); +; return 0; } +EOF +if { (eval echo configure:9972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_sqrt_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sqrt_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6 + if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then + echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6 +echo "configure:9996: checking for __builtin_sqrt linkage" >&5 + if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_sqrt(0); +; return 0; } +EOF +if { (eval echo configure:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_sqrt_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sqrt_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6 + if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10036: checking for __builtin_sqrtl declaration" >&5 + if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_sqrtl(0); +; return 0; } +EOF +if { (eval echo configure:10058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtl_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtl_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6 + if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then + echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6 +echo "configure:10082: checking for __builtin_sqrtl linkage" >&5 + if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_sqrtl(0); +; return 0; } +EOF +if { (eval echo configure:10096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtl_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sqrtl_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6 + if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10123: checking for __builtin_sinf declaration" >&5 + if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_sinf(0); +; return 0; } +EOF +if { (eval echo configure:10145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_sinf_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sinf_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6 + if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then + echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6 +echo "configure:10169: checking for __builtin_sinf linkage" >&5 + if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_sinf(0); +; return 0; } +EOF +if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_sinf_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sinf_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6 + if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10209: checking for __builtin_sin declaration" >&5 + if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_sin(0); +; return 0; } +EOF +if { (eval echo configure:10231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_sin_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sin_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6 + if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then + echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6 +echo "configure:10255: checking for __builtin_sin linkage" >&5 + if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_sin(0); +; return 0; } +EOF +if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_sin_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sin_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6 + if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10295: checking for __builtin_sinl declaration" >&5 + if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_sinl(0); +; return 0; } +EOF +if { (eval echo configure:10317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_sinl_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sinl_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6 + if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then + echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6 +echo "configure:10341: checking for __builtin_sinl linkage" >&5 + if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_sinl(0); +; return 0; } +EOF +if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_sinl_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_sinl_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6 + if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10382: checking for __builtin_cosf declaration" >&5 + if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_cosf(0); +; return 0; } +EOF +if { (eval echo configure:10404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_cosf_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_cosf_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6 + if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then + echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6 +echo "configure:10428: checking for __builtin_cosf linkage" >&5 + if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_cosf(0); +; return 0; } +EOF +if { (eval echo configure:10442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_cosf_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_cosf_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6 + if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10468: checking for __builtin_cos declaration" >&5 + if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_cos(0); +; return 0; } +EOF +if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_cos_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_cos_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6 + if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then + echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6 +echo "configure:10514: checking for __builtin_cos linkage" >&5 + if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_cos(0); +; return 0; } +EOF +if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_cos_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_cos_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6 + if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +echo "configure:10554: checking for __builtin_cosl declaration" >&5 + if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < +int main() { + __builtin_cosl(0); +; return 0; } +EOF +if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func___builtin_cosl_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_cosl_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6 + if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then + echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6 +echo "configure:10600: checking for __builtin_cosl linkage" >&5 + if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext < +int main() { + __builtin_cosl(0); +; return 0; } +EOF +if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_cv_func___builtin_cosl_link=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func___builtin_cosl_link=no +fi +rm -f conftest* + +fi + + fi + echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6 + if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then + ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <> confdefs.h <<\EOF +#define HAVE___BUILTIN_ABS 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_LABS 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_COS 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_COSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_COSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_FABS 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_FABSF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_FABSL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_SIN 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_SINF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_SINL 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_SQRT 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_SQRTF 1 +EOF + + cat >> confdefs.h <<\EOF +#define HAVE___BUILTIN_SQRTL 1 +EOF + + fi + + + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-fno-builtins -D_GNU_SOURCE' + + echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 +echo "configure:10705: checking for sin in -lm" >&5 +ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + libm="-lm" +else + echo "$ac_t""no" 1>&6 +fi + + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libm" + + + + echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6 +echo "configure:10750: checking for isinf declaration" >&5 + if test x${glibcpp_cv_func_isinf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + +int main() { + isinf(0); +; return 0; } +EOF +if { (eval echo configure:10776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func_isinf_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func_isinf_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6 + + if test x$glibcpp_cv_func_isinf_use = x"yes"; then + for ac_func in isinf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:10803: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + else + + echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6 +echo "configure:10858: checking for _isinf declaration" >&5 + if test x${glibcpp_cv_func__isinf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + +int main() { + _isinf(0); +; return 0; } +EOF +if { (eval echo configure:10884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func__isinf_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func__isinf_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6 + + if test x$glibcpp_cv_func__isinf_use = x"yes"; then + for ac_func in _isinf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:10911: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + fi + fi + + + + echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6 +echo "configure:10969: checking for isnan declaration" >&5 + if test x${glibcpp_cv_func_isnan_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + +int main() { + isnan(0); +; return 0; } +EOF +if { (eval echo configure:10995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func_isnan_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func_isnan_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6 + + if test x$glibcpp_cv_func_isnan_use = x"yes"; then + for ac_func in isnan +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11022: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + else + + echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6 +echo "configure:11077: checking for _isnan declaration" >&5 + if test x${glibcpp_cv_func__isnan_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_fabs(0); + _isnan(0); ; return 0; } EOF -if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_fabs_link=yes + glibcpp_cv_func__isnan_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fabs_link=no + glibcpp_cv_func__isnan_use=no fi rm -f conftest* - + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6 - if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + + if test x$glibcpp_cv_func__isnan_use = x"yes"; then + for ac_func in _isnan +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11130: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif + +; return 0; } EOF +if { (eval echo configure:11158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + fi fi - echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6 -echo "configure:5288: checking for __builtin_fabsl declaration" >&5 - if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then + + echo $ac_n "checking for finite declaration""... $ac_c" 1>&6 +echo "configure:11188: checking for finite declaration" >&5 + if test x${glibcpp_cv_func_finite_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5299,21 +11199,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_fabsl(0); + finite(0); ; return 0; } EOF -if { (eval echo configure:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_fabsl_use=yes + glibcpp_cv_func_finite_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fabsl_use=no + glibcpp_cv_func_finite_use=no fi rm -f conftest* ac_ext=c @@ -5327,52 +11231,70 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6 - if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then - echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6 -echo "configure:5334: checking for __builtin_fabsl linkage" >&5 - if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6 + + if test x$glibcpp_cv_func_finite_use = x"yes"; then + for ac_func in finite +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11241: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_fabsl(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_fabsl_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fabsl_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6 - if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 -echo "configure:5374: checking for __builtin_labs declaration" >&5 - if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then + +else + echo "$ac_t""no" 1>&6 +fi +done + + else + + echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6 +echo "configure:11296: checking for _finite declaration" >&5 + if test x${glibcpp_cv_func__finite_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5385,21 +11307,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_labs(0); + _finite(0); ; return 0; } EOF -if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_labs_use=yes + glibcpp_cv_func__finite_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_labs_use=no + glibcpp_cv_func__finite_use=no fi rm -f conftest* ac_ext=c @@ -5413,53 +11339,73 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6 - if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then - echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6 -echo "configure:5420: checking for __builtin_labs linkage" >&5 - if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6 + + if test x$glibcpp_cv_func__finite_use = x"yes"; then + for ac_func in _finite +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11349: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_labs(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_labs_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_labs_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6 - if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + fi fi - - echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6 -echo "configure:5461: checking for __builtin_sqrtf declaration" >&5 - if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then + + echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6 +echo "configure:11407: checking for copysign declaration" >&5 + if test x${glibcpp_cv_func_copysign_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5472,21 +11418,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - __builtin_sqrtf(0); + copysign(0, 0); ; return 0; } EOF -if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_sqrtf_use=yes + glibcpp_cv_func_copysign_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sqrtf_use=no + glibcpp_cv_func_copysign_use=no fi rm -f conftest* ac_ext=c @@ -5500,52 +11446,70 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6 - if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then - echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6 -echo "configure:5507: checking for __builtin_sqrtf linkage" >&5 - if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6 + + if test x$glibcpp_cv_func_copysign_use = x"yes"; then + for ac_func in copysign +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11456: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_sqrtf(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_sqrtf_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sqrtf_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6 - if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 -echo "configure:5547: checking for __builtin_fsqrt declaration" >&5 - if test x${glibcpp_cv_func___builtin_fsqrt_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_use'+set}'`\" = set"; then + +else + echo "$ac_t""no" 1>&6 +fi +done + + else + + echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6 +echo "configure:11511: checking for _copysign declaration" >&5 + if test x${glibcpp_cv_func__copysign_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5558,21 +11522,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - __builtin_fsqrt(0); + _copysign(0, 0); ; return 0; } EOF -if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_fsqrt_use=yes + glibcpp_cv_func__copysign_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fsqrt_use=no + glibcpp_cv_func__copysign_use=no fi rm -f conftest* ac_ext=c @@ -5586,52 +11550,73 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_use" 1>&6 - if test x$glibcpp_cv_func___builtin_fsqrt_use = x"yes"; then - echo $ac_n "checking for __builtin_fsqrt linkage""... $ac_c" 1>&6 -echo "configure:5593: checking for __builtin_fsqrt linkage" >&5 - if test x${glibcpp_cv_func___builtin_fsqrt_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fsqrt_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6 + + if test x$glibcpp_cv_func__copysign_use = x"yes"; then + for ac_func in _copysign +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11560: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_fsqrt(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_fsqrt_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_fsqrt_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_fsqrt_link" 1>&6 - if test x$glibcpp_cv_func___builtin_fsqrt_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_fsqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + fi fi - echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6 -echo "configure:5633: checking for __builtin_sqrtl declaration" >&5 - if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then + + echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6 +echo "configure:11618: checking for sincos declaration" >&5 + if test x${glibcpp_cv_func_sincos_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5644,21 +11629,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - __builtin_sqrtl(0); + sincos(0, 0, 0); ; return 0; } EOF -if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_sqrtl_use=yes + glibcpp_cv_func_sincos_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sqrtl_use=no + glibcpp_cv_func_sincos_use=no fi rm -f conftest* ac_ext=c @@ -5672,53 +11657,70 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6 - if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then - echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6 -echo "configure:5679: checking for __builtin_sqrtl linkage" >&5 - if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6 + + if test x$glibcpp_cv_func_sincos_use = x"yes"; then + for ac_func in sincos +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11667: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_sqrtl(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_sqrtl_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sqrtl_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6 - if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 -echo "configure:5720: checking for __builtin_sinf declaration" >&5 - if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then + +else + echo "$ac_t""no" 1>&6 +fi +done + + else + + echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6 +echo "configure:11722: checking for _sincos declaration" >&5 + if test x${glibcpp_cv_func__sincos_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5731,21 +11733,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - __builtin_sinf(0); + _sincos(0, 0, 0); ; return 0; } EOF -if { (eval echo configure:5742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_sinf_use=yes + glibcpp_cv_func__sincos_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sinf_use=no + glibcpp_cv_func__sincos_use=no fi rm -f conftest* ac_ext=c @@ -5759,52 +11761,73 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6 - if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then - echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6 -echo "configure:5766: checking for __builtin_sinf linkage" >&5 - if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6 + + if test x$glibcpp_cv_func__sincos_use = x"yes"; then + for ac_func in _sincos +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11771: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_sinf(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_sinf_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sinf_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6 - if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + fi fi - echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6 -echo "configure:5806: checking for __builtin_sin declaration" >&5 - if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then + + echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6 +echo "configure:11829: checking for fpclass declaration" >&5 + if test x${glibcpp_cv_func_fpclass_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5817,21 +11840,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_sin(0); + fpclass(0); ; return 0; } EOF -if { (eval echo configure:5828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_sin_use=yes + glibcpp_cv_func_fpclass_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sin_use=no + glibcpp_cv_func_fpclass_use=no fi rm -f conftest* ac_ext=c @@ -5845,52 +11872,70 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6 - if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then - echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6 -echo "configure:5852: checking for __builtin_sin linkage" >&5 - if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6 + + if test x$glibcpp_cv_func_fpclass_use = x"yes"; then + for ac_func in fpclass +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11882: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_sin(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_sin_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sin_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6 - if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 -echo "configure:5892: checking for __builtin_sinl declaration" >&5 - if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then + +else + echo "$ac_t""no" 1>&6 +fi +done + + else + + echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6 +echo "configure:11937: checking for _fpclass declaration" >&5 + if test x${glibcpp_cv_func__fpclass_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5903,21 +11948,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_sinl(0); + _fpclass(0); ; return 0; } EOF -if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_sinl_use=yes + glibcpp_cv_func__fpclass_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sinl_use=no + glibcpp_cv_func__fpclass_use=no fi rm -f conftest* ac_ext=c @@ -5931,53 +11980,73 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6 - if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then - echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6 -echo "configure:5938: checking for __builtin_sinl linkage" >&5 - if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6 + + if test x$glibcpp_cv_func__fpclass_use = x"yes"; then + for ac_func in _fpclass +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:11990: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_sinl(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_sinl_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_sinl_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6 - if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + fi fi - - echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6 -echo "configure:5979: checking for __builtin_cosf declaration" >&5 - if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then + + echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6 +echo "configure:12048: checking for qfpclass declaration" >&5 + if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5990,21 +12059,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_cosf(0); + qfpclass(0); ; return 0; } EOF -if { (eval echo configure:6001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_cosf_use=yes + glibcpp_cv_func_qfpclass_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_cosf_use=no + glibcpp_cv_func_qfpclass_use=no fi rm -f conftest* ac_ext=c @@ -6018,52 +12091,70 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6 - if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then - echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6 -echo "configure:6025: checking for __builtin_cosf linkage" >&5 - if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6 + + if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then + for ac_func in qfpclass +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12101: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_cosf(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_cosf_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_cosf_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6 - if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 -echo "configure:6065: checking for __builtin_cos declaration" >&5 - if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then + +else + echo "$ac_t""no" 1>&6 +fi +done + + else + + echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6 +echo "configure:12156: checking for _qfpclass declaration" >&5 + if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6076,21 +12167,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - __builtin_cos(0); + _qfpclass(0); ; return 0; } EOF -if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_cos_use=yes + glibcpp_cv_func__qfpclass_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_cos_use=no + glibcpp_cv_func__qfpclass_use=no fi rm -f conftest* ac_ext=c @@ -6104,52 +12199,73 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6 - if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then - echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6 -echo "configure:6111: checking for __builtin_cos linkage" >&5 - if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then + echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6 + + if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then + for ac_func in _qfpclass +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12209: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - __builtin_cos(0); + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func___builtin_cos_link=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_cos_link=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - fi - fi - echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6 - if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + fi fi - echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6 -echo "configure:6151: checking for __builtin_cosl declaration" >&5 - if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then + + echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6 +echo "configure:12267: checking for hypot declaration" >&5 + if test x${glibcpp_cv_func_hypot_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6162,21 +12278,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - __builtin_cosl(0); + hypot(0, 0); ; return 0; } EOF -if { (eval echo configure:6173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func___builtin_cosl_use=yes + glibcpp_cv_func_hypot_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func___builtin_cosl_use=no + glibcpp_cv_func_hypot_use=no fi rm -f conftest* ac_ext=c @@ -6190,162 +12306,70 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6 - if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then - echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6 -echo "configure:6197: checking for __builtin_cosl linkage" >&5 - if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - - cat > conftest.$ac_ext < -int main() { - __builtin_cosl(0); -; return 0; } -EOF -if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - glibcpp_cv_func___builtin_cosl_link=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - glibcpp_cv_func___builtin_cosl_link=no -fi -rm -f conftest* - -fi - - fi - echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6 - if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then - ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <> confdefs.h <<\EOF -#define HAVE___BUILTIN_ABS 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_LABS 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_COS 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_COSF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_COSL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_FABS 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_FABSF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_FABSL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_SIN 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_SINF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_SINL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_FSQRT 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_SQRTF 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE___BUILTIN_SQRTL 1 -EOF - - fi - - - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS='-fno-builtins -D_GNU_SOURCE' + echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6 - echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 -echo "configure:6302: checking for sin in -lm" >&5 -ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + if test x$glibcpp_cv_func_hypot_use = x"yes"; then + for ac_func in hypot +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:12316: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext < conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif -int main() { -sin() ; return 0; } EOF -if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* -LIBS="$ac_save_LIBS" - fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 - libm="-lm" + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $libm" - +done - - echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6 -echo "configure:6347: checking for isinf declaration" >&5 - if test x${glibcpp_cv_func_isinf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6 +echo "configure:12371: checking for _hypot declaration" >&5 + if test x${glibcpp_cv_func__hypot_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6358,25 +12382,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - isinf(0); + _hypot(0, 0); ; return 0; } EOF -if { (eval echo configure:6373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_isinf_use=yes + glibcpp_cv_func__hypot_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_isinf_use=no + glibcpp_cv_func__hypot_use=no fi rm -f conftest* ac_ext=c @@ -6390,18 +12410,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6 - if test x$glibcpp_cv_func_isinf_use = x"yes"; then - for ac_func in isinf + if test x$glibcpp_cv_func__hypot_use = x"yes"; then + for ac_func in _hypot do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6400: checking for $ac_func" >&5 +echo "configure:12420: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6448,68 +12468,67 @@ else fi done - else + fi + fi + + - echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6 -echo "configure:6455: checking for _isinf declaration" >&5 - if test x${glibcpp_cv_func__isinf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then + echo $ac_n "checking for float trig functions""... $ac_c" 1>&6 +echo "configure:12478: checking for float trig functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _isinf(0); + `for x in acosf asinf atanf \ + cosf sinf tanf \ + coshf sinhf tanhf; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__isinf_use=yes + glibcpp_cv_func_float_trig_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__isinf_use=no + glibcpp_cv_func_float_trig_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6 - - if test x$glibcpp_cv_func__isinf_use = x"yes"; then - for ac_func in _isinf + echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6 + if test x$glibcpp_cv_func_float_trig_use = x"yes"; then + for ac_func in acosf asinf atanf \ + cosf sinf tanf \ + coshf sinhf tanhf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6508: checking for $ac_func" >&5 +echo "configure:12527: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6555,72 +12574,62 @@ else echo "$ac_t""no" 1>&6 fi done - - fi + fi - - echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6 -echo "configure:6566: checking for isnan declaration" >&5 - if test x${glibcpp_cv_func_isnan_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then + echo $ac_n "checking for float round functions""... $ac_c" 1>&6 +echo "configure:12583: checking for float round functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - isnan(0); + `for x in ceilf floorf; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_isnan_use=yes + glibcpp_cv_func_float_round_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_isnan_use=no + glibcpp_cv_func_float_round_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6 - - if test x$glibcpp_cv_func_isnan_use = x"yes"; then - for ac_func in isnan + echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6 + if test x$glibcpp_cv_func_float_round_use = x"yes"; then + for ac_func in ceilf floorf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6619: checking for $ac_func" >&5 +echo "configure:12628: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6666,13 +12675,15 @@ else echo "$ac_t""no" 1>&6 fi done - - else - - echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6 -echo "configure:6674: checking for _isnan declaration" >&5 - if test x${glibcpp_cv_func__isnan_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then + + fi + + + + echo $ac_n "checking for expf declaration""... $ac_c" 1>&6 +echo "configure:12685: checking for expf declaration" >&5 + if test x${glibcpp_cv_func_expf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6685,7 +12696,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -6693,17 +12704,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _isnan(0); + expf(0); ; return 0; } EOF -if { (eval echo configure:6700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__isnan_use=yes + glibcpp_cv_func_expf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__isnan_use=no + glibcpp_cv_func_expf_use=no fi rm -f conftest* ac_ext=c @@ -6717,18 +12728,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6 - if test x$glibcpp_cv_func__isnan_use = x"yes"; then - for ac_func in _isnan + if test x$glibcpp_cv_func_expf_use = x"yes"; then + for ac_func in expf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6727: checking for $ac_func" >&5 +echo "configure:12738: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6775,15 +12786,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for finite declaration""... $ac_c" 1>&6 -echo "configure:6785: checking for finite declaration" >&5 - if test x${glibcpp_cv_func_finite_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6 +echo "configure:12793: checking for _expf declaration" >&5 + if test x${glibcpp_cv_func__expf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6796,7 +12804,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -6804,17 +12812,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - finite(0); + _expf(0); ; return 0; } EOF -if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_finite_use=yes + glibcpp_cv_func__expf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_finite_use=no + glibcpp_cv_func__expf_use=no fi rm -f conftest* ac_ext=c @@ -6828,18 +12836,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6 - if test x$glibcpp_cv_func_finite_use = x"yes"; then - for ac_func in finite + if test x$glibcpp_cv_func__expf_use = x"yes"; then + for ac_func in _expf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6838: checking for $ac_func" >&5 +echo "configure:12846: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6886,12 +12894,15 @@ else fi done - else - - echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6 -echo "configure:6893: checking for _finite declaration" >&5 - if test x${glibcpp_cv_func__finite_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6 +echo "configure:12904: checking for isnanf declaration" >&5 + if test x${glibcpp_cv_func_isnanf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6904,7 +12915,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -6912,17 +12923,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _finite(0); + isnanf(0); ; return 0; } EOF -if { (eval echo configure:6919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__finite_use=yes + glibcpp_cv_func_isnanf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__finite_use=no + glibcpp_cv_func_isnanf_use=no fi rm -f conftest* ac_ext=c @@ -6936,18 +12947,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6 - if test x$glibcpp_cv_func__finite_use = x"yes"; then - for ac_func in _finite + if test x$glibcpp_cv_func_isnanf_use = x"yes"; then + for ac_func in isnanf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6946: checking for $ac_func" >&5 +echo "configure:12957: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6994,15 +13005,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6 -echo "configure:7004: checking for copysign declaration" >&5 - if test x${glibcpp_cv_func_copysign_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6 +echo "configure:13012: checking for _isnanf declaration" >&5 + if test x${glibcpp_cv_func__isnanf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7015,21 +13023,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - copysign(0, 0); + _isnanf(0); ; return 0; } EOF -if { (eval echo configure:7026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_copysign_use=yes + glibcpp_cv_func__isnanf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_copysign_use=no + glibcpp_cv_func__isnanf_use=no fi rm -f conftest* ac_ext=c @@ -7043,18 +13055,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6 - if test x$glibcpp_cv_func_copysign_use = x"yes"; then - for ac_func in copysign + if test x$glibcpp_cv_func__isnanf_use = x"yes"; then + for ac_func in _isnanf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7053: checking for $ac_func" >&5 +echo "configure:13065: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7101,12 +13113,15 @@ else fi done - else - - echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6 -echo "configure:7108: checking for _copysign declaration" >&5 - if test x${glibcpp_cv_func__copysign_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6 +echo "configure:13123: checking for isinff declaration" >&5 + if test x${glibcpp_cv_func_isinff_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7119,21 +13134,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _copysign(0, 0); + isinff(0); ; return 0; } EOF -if { (eval echo configure:7130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__copysign_use=yes + glibcpp_cv_func_isinff_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__copysign_use=no + glibcpp_cv_func_isinff_use=no fi rm -f conftest* ac_ext=c @@ -7147,18 +13166,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6 - if test x$glibcpp_cv_func__copysign_use = x"yes"; then - for ac_func in _copysign + if test x$glibcpp_cv_func_isinff_use = x"yes"; then + for ac_func in isinff do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7157: checking for $ac_func" >&5 +echo "configure:13176: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7200,20 +13219,17 @@ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then #define $ac_tr_func 1 EOF -else - echo "$ac_t""no" 1>&6 -fi -done - - fi - fi - - - - echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6 -echo "configure:7215: checking for sincos declaration" >&5 - if test x${glibcpp_cv_func_sincos_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then +else + echo "$ac_t""no" 1>&6 +fi +done + + else + + echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6 +echo "configure:13231: checking for _isinff declaration" >&5 + if test x${glibcpp_cv_func__isinff_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7226,21 +13242,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - sincos(0, 0, 0); + _isinff(0); ; return 0; } EOF -if { (eval echo configure:7237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_sincos_use=yes + glibcpp_cv_func__isinff_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_sincos_use=no + glibcpp_cv_func__isinff_use=no fi rm -f conftest* ac_ext=c @@ -7254,18 +13274,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6 - if test x$glibcpp_cv_func_sincos_use = x"yes"; then - for ac_func in sincos + if test x$glibcpp_cv_func__isinff_use = x"yes"; then + for ac_func in _isinff do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7264: checking for $ac_func" >&5 +echo "configure:13284: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7312,12 +13332,15 @@ else fi done - else - - echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6 -echo "configure:7319: checking for _sincos declaration" >&5 - if test x${glibcpp_cv_func__sincos_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6 +echo "configure:13342: checking for atan2f declaration" >&5 + if test x${glibcpp_cv_func_atan2f_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7330,21 +13353,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _sincos(0, 0, 0); + atan2f(0, 0); ; return 0; } EOF -if { (eval echo configure:7341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__sincos_use=yes + glibcpp_cv_func_atan2f_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__sincos_use=no + glibcpp_cv_func_atan2f_use=no fi rm -f conftest* ac_ext=c @@ -7358,18 +13381,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6 - if test x$glibcpp_cv_func__sincos_use = x"yes"; then - for ac_func in _sincos + if test x$glibcpp_cv_func_atan2f_use = x"yes"; then + for ac_func in atan2f do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7368: checking for $ac_func" >&5 +echo "configure:13391: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7416,15 +13439,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6 -echo "configure:7426: checking for fpclass declaration" >&5 - if test x${glibcpp_cv_func_fpclass_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6 +echo "configure:13446: checking for _atan2f declaration" >&5 + if test x${glibcpp_cv_func__atan2f_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7437,25 +13457,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - fpclass(0); + _atan2f(0, 0); ; return 0; } EOF -if { (eval echo configure:7452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_fpclass_use=yes + glibcpp_cv_func__atan2f_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_fpclass_use=no + glibcpp_cv_func__atan2f_use=no fi rm -f conftest* ac_ext=c @@ -7469,18 +13485,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6 - if test x$glibcpp_cv_func_fpclass_use = x"yes"; then - for ac_func in fpclass + if test x$glibcpp_cv_func__atan2f_use = x"yes"; then + for ac_func in _atan2f do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7479: checking for $ac_func" >&5 +echo "configure:13495: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7527,12 +13543,15 @@ else fi done - else - - echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6 -echo "configure:7534: checking for _fpclass declaration" >&5 - if test x${glibcpp_cv_func__fpclass_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6 +echo "configure:13553: checking for fabsf declaration" >&5 + if test x${glibcpp_cv_func_fabsf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7545,7 +13564,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -7553,17 +13572,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _fpclass(0); + fabsf(0); ; return 0; } EOF -if { (eval echo configure:7560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__fpclass_use=yes + glibcpp_cv_func_fabsf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__fpclass_use=no + glibcpp_cv_func_fabsf_use=no fi rm -f conftest* ac_ext=c @@ -7577,18 +13596,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6 - if test x$glibcpp_cv_func__fpclass_use = x"yes"; then - for ac_func in _fpclass + if test x$glibcpp_cv_func_fabsf_use = x"yes"; then + for ac_func in fabsf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7587: checking for $ac_func" >&5 +echo "configure:13606: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7635,15 +13654,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6 -echo "configure:7645: checking for qfpclass declaration" >&5 - if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6 +echo "configure:13661: checking for _fabsf declaration" >&5 + if test x${glibcpp_cv_func__fabsf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7656,7 +13672,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -7664,17 +13680,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - qfpclass(0); + _fabsf(0); ; return 0; } EOF -if { (eval echo configure:7671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_qfpclass_use=yes + glibcpp_cv_func__fabsf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_qfpclass_use=no + glibcpp_cv_func__fabsf_use=no fi rm -f conftest* ac_ext=c @@ -7688,18 +13704,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6 - if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then - for ac_func in qfpclass + if test x$glibcpp_cv_func__fabsf_use = x"yes"; then + for ac_func in _fabsf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7698: checking for $ac_func" >&5 +echo "configure:13714: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7746,12 +13762,15 @@ else fi done - else - - echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6 -echo "configure:7753: checking for _qfpclass declaration" >&5 - if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6 +echo "configure:13772: checking for fmodf declaration" >&5 + if test x${glibcpp_cv_func_fmodf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7764,25 +13783,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _qfpclass(0); + fmodf(0, 0); ; return 0; } EOF -if { (eval echo configure:7779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__qfpclass_use=yes + glibcpp_cv_func_fmodf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__qfpclass_use=no + glibcpp_cv_func_fmodf_use=no fi rm -f conftest* ac_ext=c @@ -7796,18 +13811,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6 - if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then - for ac_func in _qfpclass + if test x$glibcpp_cv_func_fmodf_use = x"yes"; then + for ac_func in fmodf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7806: checking for $ac_func" >&5 +echo "configure:13821: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7854,67 +13869,64 @@ else fi done - fi - fi - - + else - echo $ac_n "checking for float trig functions""... $ac_c" 1>&6 -echo "configure:7864: checking for float trig functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then + echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6 +echo "configure:13876: checking for _fmodf declaration" >&5 + if test x${glibcpp_cv_func__fmodf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - `for x in acosf asinf atanf \ - cosf sinf tanf \ - coshf sinhf tanhf; do echo "$x (0);"; done` + _fmodf(0, 0); ; return 0; } EOF -if { (eval echo configure:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_float_trig_use=yes + glibcpp_cv_func__fmodf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_float_trig_use=no + glibcpp_cv_func__fmodf_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross + fi - echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6 - if test x$glibcpp_cv_func_float_trig_use = x"yes"; then - for ac_func in acosf asinf atanf \ - cosf sinf tanf \ - coshf sinhf tanhf + fi + echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6 + + if test x$glibcpp_cv_func__fmodf_use = x"yes"; then + for ac_func in _fmodf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7913: checking for $ac_func" >&5 +echo "configure:13925: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7960,62 +13972,68 @@ else echo "$ac_t""no" 1>&6 fi done - + + fi fi - echo $ac_n "checking for float round functions""... $ac_c" 1>&6 -echo "configure:7969: checking for float round functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then + + echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6 +echo "configure:13983: checking for frexpf declaration" >&5 + if test x${glibcpp_cv_func_frexpf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - `for x in ceilf floorf; do echo "$x (0);"; done` + frexpf(0, 0); ; return 0; } EOF -if { (eval echo configure:7990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_float_round_use=yes + glibcpp_cv_func_frexpf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_float_round_use=no + glibcpp_cv_func_frexpf_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross + fi - echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6 - if test x$glibcpp_cv_func_float_round_use = x"yes"; then - for ac_func in ceilf floorf + fi + echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6 + + if test x$glibcpp_cv_func_frexpf_use = x"yes"; then + for ac_func in frexpf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8014: checking for $ac_func" >&5 +echo "configure:14032: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8061,15 +14079,13 @@ else echo "$ac_t""no" 1>&6 fi done - - fi - - - - echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6 -echo "configure:8071: checking for isnanf declaration" >&5 - if test x${glibcpp_cv_func_isnanf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then + + else + + echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6 +echo "configure:14087: checking for _frexpf declaration" >&5 + if test x${glibcpp_cv_func__frexpf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8082,25 +14098,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - isnanf(0); + _frexpf(0, 0); ; return 0; } EOF -if { (eval echo configure:8097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_isnanf_use=yes + glibcpp_cv_func__frexpf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_isnanf_use=no + glibcpp_cv_func__frexpf_use=no fi rm -f conftest* ac_ext=c @@ -8114,18 +14126,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6 - if test x$glibcpp_cv_func_isnanf_use = x"yes"; then - for ac_func in isnanf + if test x$glibcpp_cv_func__frexpf_use = x"yes"; then + for ac_func in _frexpf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8124: checking for $ac_func" >&5 +echo "configure:14136: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8172,12 +14184,15 @@ else fi done - else - - echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6 -echo "configure:8179: checking for _isnanf declaration" >&5 - if test x${glibcpp_cv_func__isnanf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6 +echo "configure:14194: checking for hypotf declaration" >&5 + if test x${glibcpp_cv_func_hypotf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8190,25 +14205,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _isnanf(0); + hypotf(0, 0); ; return 0; } EOF -if { (eval echo configure:8205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__isnanf_use=yes + glibcpp_cv_func_hypotf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__isnanf_use=no + glibcpp_cv_func_hypotf_use=no fi rm -f conftest* ac_ext=c @@ -8222,18 +14233,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6 - if test x$glibcpp_cv_func__isnanf_use = x"yes"; then - for ac_func in _isnanf + if test x$glibcpp_cv_func_hypotf_use = x"yes"; then + for ac_func in hypotf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8232: checking for $ac_func" >&5 +echo "configure:14243: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8280,15 +14291,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6 -echo "configure:8290: checking for isinff declaration" >&5 - if test x${glibcpp_cv_func_isinff_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6 +echo "configure:14298: checking for _hypotf declaration" >&5 + if test x${glibcpp_cv_func__hypotf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8301,25 +14309,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - isinff(0); + _hypotf(0, 0); ; return 0; } EOF -if { (eval echo configure:8316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_isinff_use=yes + glibcpp_cv_func__hypotf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_isinff_use=no + glibcpp_cv_func__hypotf_use=no fi rm -f conftest* ac_ext=c @@ -8333,18 +14337,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6 - if test x$glibcpp_cv_func_isinff_use = x"yes"; then - for ac_func in isinff + if test x$glibcpp_cv_func__hypotf_use = x"yes"; then + for ac_func in _hypotf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8343: checking for $ac_func" >&5 +echo "configure:14347: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8391,12 +14395,15 @@ else fi done - else - - echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6 -echo "configure:8398: checking for _isinff declaration" >&5 - if test x${glibcpp_cv_func__isinff_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6 +echo "configure:14405: checking for ldexpf declaration" >&5 + if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8409,25 +14416,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _isinff(0); + ldexpf(0, 0); ; return 0; } EOF -if { (eval echo configure:8424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__isinff_use=yes + glibcpp_cv_func_ldexpf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__isinff_use=no + glibcpp_cv_func_ldexpf_use=no fi rm -f conftest* ac_ext=c @@ -8441,18 +14444,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6 - if test x$glibcpp_cv_func__isinff_use = x"yes"; then - for ac_func in _isinff + if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then + for ac_func in ldexpf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8451: checking for $ac_func" >&5 +echo "configure:14454: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8499,15 +14502,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6 -echo "configure:8509: checking for fabsf declaration" >&5 - if test x${glibcpp_cv_func_fabsf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6 +echo "configure:14509: checking for _ldexpf declaration" >&5 + if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8520,25 +14520,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - fabsf(0); + _ldexpf(0, 0); ; return 0; } EOF -if { (eval echo configure:8535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_fabsf_use=yes + glibcpp_cv_func__ldexpf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_fabsf_use=no + glibcpp_cv_func__ldexpf_use=no fi rm -f conftest* ac_ext=c @@ -8552,18 +14548,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6 - if test x$glibcpp_cv_func_fabsf_use = x"yes"; then - for ac_func in fabsf + if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then + for ac_func in _ldexpf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8562: checking for $ac_func" >&5 +echo "configure:14558: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8610,12 +14606,15 @@ else fi done - else - - echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6 -echo "configure:8617: checking for _fabsf declaration" >&5 - if test x${glibcpp_cv_func__fabsf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for logf declaration""... $ac_c" 1>&6 +echo "configure:14616: checking for logf declaration" >&5 + if test x${glibcpp_cv_func_logf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8628,7 +14627,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -8636,17 +14635,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _fabsf(0); + logf(0); ; return 0; } EOF -if { (eval echo configure:8643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__fabsf_use=yes + glibcpp_cv_func_logf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__fabsf_use=no + glibcpp_cv_func_logf_use=no fi rm -f conftest* ac_ext=c @@ -8660,18 +14659,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6 - if test x$glibcpp_cv_func__fabsf_use = x"yes"; then - for ac_func in _fabsf + if test x$glibcpp_cv_func_logf_use = x"yes"; then + for ac_func in logf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8670: checking for $ac_func" >&5 +echo "configure:14669: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8718,15 +14717,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6 -echo "configure:8728: checking for fmodf declaration" >&5 - if test x${glibcpp_cv_func_fmodf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6 +echo "configure:14724: checking for _logf declaration" >&5 + if test x${glibcpp_cv_func__logf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8739,21 +14735,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - fmodf(0, 0); + _logf(0); ; return 0; } EOF -if { (eval echo configure:8750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_fmodf_use=yes + glibcpp_cv_func__logf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_fmodf_use=no + glibcpp_cv_func__logf_use=no fi rm -f conftest* ac_ext=c @@ -8767,18 +14767,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6 - if test x$glibcpp_cv_func_fmodf_use = x"yes"; then - for ac_func in fmodf + if test x$glibcpp_cv_func__logf_use = x"yes"; then + for ac_func in _logf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8777: checking for $ac_func" >&5 +echo "configure:14777: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8825,12 +14825,15 @@ else fi done - else - - echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6 -echo "configure:8832: checking for _fmodf declaration" >&5 - if test x${glibcpp_cv_func__fmodf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6 +echo "configure:14835: checking for log10f declaration" >&5 + if test x${glibcpp_cv_func_log10f_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8843,21 +14846,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _fmodf(0, 0); + log10f(0); ; return 0; } EOF -if { (eval echo configure:8854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__fmodf_use=yes + glibcpp_cv_func_log10f_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__fmodf_use=no + glibcpp_cv_func_log10f_use=no fi rm -f conftest* ac_ext=c @@ -8871,18 +14878,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6 - if test x$glibcpp_cv_func__fmodf_use = x"yes"; then - for ac_func in _fmodf + if test x$glibcpp_cv_func_log10f_use = x"yes"; then + for ac_func in log10f do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8881: checking for $ac_func" >&5 +echo "configure:14888: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -8929,15 +14936,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6 -echo "configure:8939: checking for frexpf declaration" >&5 - if test x${glibcpp_cv_func_frexpf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6 +echo "configure:14943: checking for _log10f declaration" >&5 + if test x${glibcpp_cv_func__log10f_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8950,21 +14954,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - frexpf(0, 0); + _log10f(0); ; return 0; } EOF -if { (eval echo configure:8961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_frexpf_use=yes + glibcpp_cv_func__log10f_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_frexpf_use=no + glibcpp_cv_func__log10f_use=no fi rm -f conftest* ac_ext=c @@ -8978,18 +14986,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6 - if test x$glibcpp_cv_func_frexpf_use = x"yes"; then - for ac_func in frexpf + if test x$glibcpp_cv_func__log10f_use = x"yes"; then + for ac_func in _log10f do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:8988: checking for $ac_func" >&5 +echo "configure:14996: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9036,12 +15044,15 @@ else fi done - else - - echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6 -echo "configure:9043: checking for _frexpf declaration" >&5 - if test x${glibcpp_cv_func__frexpf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for modff declaration""... $ac_c" 1>&6 +echo "configure:15054: checking for modff declaration" >&5 + if test x${glibcpp_cv_func_modff_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9054,21 +15065,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _frexpf(0, 0); + modff(0, 0); ; return 0; } EOF -if { (eval echo configure:9065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__frexpf_use=yes + glibcpp_cv_func_modff_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__frexpf_use=no + glibcpp_cv_func_modff_use=no fi rm -f conftest* ac_ext=c @@ -9082,18 +15093,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6 - if test x$glibcpp_cv_func__frexpf_use = x"yes"; then - for ac_func in _frexpf + if test x$glibcpp_cv_func_modff_use = x"yes"; then + for ac_func in modff do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9092: checking for $ac_func" >&5 +echo "configure:15103: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9140,15 +15151,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6 -echo "configure:9150: checking for ldexpf declaration" >&5 - if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6 +echo "configure:15158: checking for _modff declaration" >&5 + if test x${glibcpp_cv_func__modff_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9161,21 +15169,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - ldexpf(0, 0); + _modff(0, 0); ; return 0; } EOF -if { (eval echo configure:9172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_ldexpf_use=yes + glibcpp_cv_func__modff_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_ldexpf_use=no + glibcpp_cv_func__modff_use=no fi rm -f conftest* ac_ext=c @@ -9189,18 +15197,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6 - if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then - for ac_func in ldexpf + if test x$glibcpp_cv_func__modff_use = x"yes"; then + for ac_func in _modff do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9199: checking for $ac_func" >&5 +echo "configure:15207: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9247,12 +15255,15 @@ else fi done - else - - echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6 -echo "configure:9254: checking for _ldexpf declaration" >&5 - if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for powf declaration""... $ac_c" 1>&6 +echo "configure:15265: checking for powf declaration" >&5 + if test x${glibcpp_cv_func_powf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9265,21 +15276,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _ldexpf(0, 0); + powf(0, 0); ; return 0; } EOF -if { (eval echo configure:9276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__ldexpf_use=yes + glibcpp_cv_func_powf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__ldexpf_use=no + glibcpp_cv_func_powf_use=no fi rm -f conftest* ac_ext=c @@ -9293,18 +15304,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6 - if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then - for ac_func in _ldexpf + if test x$glibcpp_cv_func_powf_use = x"yes"; then + for ac_func in powf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9303: checking for $ac_func" >&5 +echo "configure:15314: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9351,15 +15362,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for logf declaration""... $ac_c" 1>&6 -echo "configure:9361: checking for logf declaration" >&5 - if test x${glibcpp_cv_func_logf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6 +echo "configure:15369: checking for _powf declaration" >&5 + if test x${glibcpp_cv_func__powf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9372,25 +15380,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - logf(0); + _powf(0, 0); ; return 0; } EOF -if { (eval echo configure:9387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_logf_use=yes + glibcpp_cv_func__powf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_logf_use=no + glibcpp_cv_func__powf_use=no fi rm -f conftest* ac_ext=c @@ -9404,18 +15408,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6 - if test x$glibcpp_cv_func_logf_use = x"yes"; then - for ac_func in logf + if test x$glibcpp_cv_func__powf_use = x"yes"; then + for ac_func in _powf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9414: checking for $ac_func" >&5 +echo "configure:15418: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9462,12 +15466,15 @@ else fi done - else - - echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6 -echo "configure:9469: checking for _logf declaration" >&5 - if test x${glibcpp_cv_func__logf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6 +echo "configure:15476: checking for sqrtf declaration" >&5 + if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9480,7 +15487,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -9488,17 +15495,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _logf(0); + sqrtf(0); ; return 0; } EOF -if { (eval echo configure:9495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__logf_use=yes + glibcpp_cv_func_sqrtf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__logf_use=no + glibcpp_cv_func_sqrtf_use=no fi rm -f conftest* ac_ext=c @@ -9512,18 +15519,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6 - if test x$glibcpp_cv_func__logf_use = x"yes"; then - for ac_func in _logf + if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then + for ac_func in sqrtf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9522: checking for $ac_func" >&5 +echo "configure:15529: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9570,15 +15577,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6 -echo "configure:9580: checking for log10f declaration" >&5 - if test x${glibcpp_cv_func_log10f_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6 +echo "configure:15584: checking for _sqrtf declaration" >&5 + if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9591,7 +15595,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -9599,17 +15603,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - log10f(0); + _sqrtf(0); ; return 0; } EOF -if { (eval echo configure:9606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_log10f_use=yes + glibcpp_cv_func__sqrtf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_log10f_use=no + glibcpp_cv_func__sqrtf_use=no fi rm -f conftest* ac_ext=c @@ -9623,18 +15627,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6 - if test x$glibcpp_cv_func_log10f_use = x"yes"; then - for ac_func in log10f + if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then + for ac_func in _sqrtf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9633: checking for $ac_func" >&5 +echo "configure:15637: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9681,12 +15685,15 @@ else fi done - else - - echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6 -echo "configure:9688: checking for _log10f declaration" >&5 - if test x${glibcpp_cv_func__log10f_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6 +echo "configure:15695: checking for sincosf declaration" >&5 + if test x${glibcpp_cv_func_sincosf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9699,25 +15706,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _log10f(0); + sincosf(0, 0, 0); ; return 0; } EOF -if { (eval echo configure:9714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__log10f_use=yes + glibcpp_cv_func_sincosf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__log10f_use=no + glibcpp_cv_func_sincosf_use=no fi rm -f conftest* ac_ext=c @@ -9731,18 +15734,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6 - if test x$glibcpp_cv_func__log10f_use = x"yes"; then - for ac_func in _log10f + if test x$glibcpp_cv_func_sincosf_use = x"yes"; then + for ac_func in sincosf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9741: checking for $ac_func" >&5 +echo "configure:15744: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9789,15 +15792,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for modff declaration""... $ac_c" 1>&6 -echo "configure:9799: checking for modff declaration" >&5 - if test x${glibcpp_cv_func_modff_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6 +echo "configure:15799: checking for _sincosf declaration" >&5 + if test x${glibcpp_cv_func__sincosf_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9810,21 +15810,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - modff(0, 0); + _sincosf(0, 0, 0); ; return 0; } EOF -if { (eval echo configure:9821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_modff_use=yes + glibcpp_cv_func__sincosf_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_modff_use=no + glibcpp_cv_func__sincosf_use=no fi rm -f conftest* ac_ext=c @@ -9838,18 +15838,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6 - if test x$glibcpp_cv_func_modff_use = x"yes"; then - for ac_func in modff + if test x$glibcpp_cv_func__sincosf_use = x"yes"; then + for ac_func in _sincosf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9848: checking for $ac_func" >&5 +echo "configure:15848: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9896,12 +15896,15 @@ else fi done - else - - echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6 -echo "configure:9903: checking for _modff declaration" >&5 - if test x${glibcpp_cv_func__modff_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6 +echo "configure:15906: checking for finitef declaration" >&5 + if test x${glibcpp_cv_func_finitef_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9914,21 +15917,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _modff(0, 0); + finitef(0); ; return 0; } EOF -if { (eval echo configure:9925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:15932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__modff_use=yes + glibcpp_cv_func_finitef_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__modff_use=no + glibcpp_cv_func_finitef_use=no fi rm -f conftest* ac_ext=c @@ -9942,18 +15949,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6 - if test x$glibcpp_cv_func__modff_use = x"yes"; then - for ac_func in _modff + if test x$glibcpp_cv_func_finitef_use = x"yes"; then + for ac_func in finitef do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9952: checking for $ac_func" >&5 +echo "configure:15959: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:15987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10000,15 +16007,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for powf declaration""... $ac_c" 1>&6 -echo "configure:10010: checking for powf declaration" >&5 - if test x${glibcpp_cv_func_powf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6 +echo "configure:16014: checking for _finitef declaration" >&5 + if test x${glibcpp_cv_func__finitef_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10021,21 +16025,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - powf(0, 0); + _finitef(0); ; return 0; } EOF -if { (eval echo configure:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_powf_use=yes + glibcpp_cv_func__finitef_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_powf_use=no + glibcpp_cv_func__finitef_use=no fi rm -f conftest* ac_ext=c @@ -10049,18 +16057,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6 - if test x$glibcpp_cv_func_powf_use = x"yes"; then - for ac_func in powf + if test x$glibcpp_cv_func__finitef_use = x"yes"; then + for ac_func in _finitef do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10059: checking for $ac_func" >&5 +echo "configure:16067: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10107,64 +16115,67 @@ else fi done - else + fi + fi + + - echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6 -echo "configure:10114: checking for _powf declaration" >&5 - if test x${glibcpp_cv_func__powf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then + echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6 +echo "configure:16125: checking for long double trig functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - _powf(0, 0); + `for x in acosl asinl atanl \ + cosl sinl tanl \ + coshl sinhl tanhl; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:10136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__powf_use=yes + glibcpp_cv_func_long_double_trig_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__powf_use=no + glibcpp_cv_func_long_double_trig_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6 - - if test x$glibcpp_cv_func__powf_use = x"yes"; then - for ac_func in _powf + echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6 + if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then + for ac_func in acosl asinl atanl \ + cosl sinl tanl \ + coshl sinhl tanhl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10163: checking for $ac_func" >&5 +echo "configure:16174: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10209,73 +16220,63 @@ EOF else echo "$ac_t""no" 1>&6 fi -done - - fi +done + fi - - echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6 -echo "configure:10221: checking for sqrtf declaration" >&5 - if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then + echo $ac_n "checking for long double round functions""... $ac_c" 1>&6 +echo "configure:16230: checking for long double round functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - sqrtf(0); + `for x in ceill floorl; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:10247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_sqrtf_use=yes + glibcpp_cv_func_long_double_round_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_sqrtf_use=no + glibcpp_cv_func_long_double_round_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6 - - if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then - for ac_func in sqrtf + echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6 + if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then + for ac_func in ceill floorl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10274: checking for $ac_func" >&5 +echo "configure:16275: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10321,13 +16322,15 @@ else echo "$ac_t""no" 1>&6 fi done - - else - - echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6 -echo "configure:10329: checking for _sqrtf declaration" >&5 - if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then + + fi + + + + echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6 +echo "configure:16332: checking for isnanl declaration" >&5 + if test x${glibcpp_cv_func_isnanl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10340,7 +16343,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -10348,17 +16351,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _sqrtf(0); + isnanl(0); ; return 0; } EOF -if { (eval echo configure:10355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__sqrtf_use=yes + glibcpp_cv_func_isnanl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__sqrtf_use=no + glibcpp_cv_func_isnanl_use=no fi rm -f conftest* ac_ext=c @@ -10372,18 +16375,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6 - if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then - for ac_func in _sqrtf + if test x$glibcpp_cv_func_isnanl_use = x"yes"; then + for ac_func in isnanl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10382: checking for $ac_func" >&5 +echo "configure:16385: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10430,15 +16433,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6 -echo "configure:10440: checking for sincosf declaration" >&5 - if test x${glibcpp_cv_func_sincosf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6 +echo "configure:16440: checking for _isnanl declaration" >&5 + if test x${glibcpp_cv_func__isnanl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10451,21 +16451,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - sincosf(0, 0, 0); + _isnanl(0); ; return 0; } EOF -if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_sincosf_use=yes + glibcpp_cv_func__isnanl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_sincosf_use=no + glibcpp_cv_func__isnanl_use=no fi rm -f conftest* ac_ext=c @@ -10479,18 +16483,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6 - if test x$glibcpp_cv_func_sincosf_use = x"yes"; then - for ac_func in sincosf + if test x$glibcpp_cv_func__isnanl_use = x"yes"; then + for ac_func in _isnanl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10489: checking for $ac_func" >&5 +echo "configure:16493: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10537,12 +16541,15 @@ else fi done - else - - echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6 -echo "configure:10544: checking for _sincosf declaration" >&5 - if test x${glibcpp_cv_func__sincosf_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6 +echo "configure:16551: checking for isinfl declaration" >&5 + if test x${glibcpp_cv_func_isinfl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10555,21 +16562,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _sincosf(0, 0, 0); + isinfl(0); ; return 0; } EOF -if { (eval echo configure:10566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__sincosf_use=yes + glibcpp_cv_func_isinfl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__sincosf_use=no + glibcpp_cv_func_isinfl_use=no fi rm -f conftest* ac_ext=c @@ -10583,18 +16594,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6 - if test x$glibcpp_cv_func__sincosf_use = x"yes"; then - for ac_func in _sincosf + if test x$glibcpp_cv_func_isinfl_use = x"yes"; then + for ac_func in isinfl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10593: checking for $ac_func" >&5 +echo "configure:16604: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10641,15 +16652,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6 -echo "configure:10651: checking for finitef declaration" >&5 - if test x${glibcpp_cv_func_finitef_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6 +echo "configure:16659: checking for _isinfl declaration" >&5 + if test x${glibcpp_cv_func__isinfl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10662,7 +16670,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -10670,17 +16678,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - finitef(0); + _isinfl(0); ; return 0; } EOF -if { (eval echo configure:10677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_finitef_use=yes + glibcpp_cv_func__isinfl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_finitef_use=no + glibcpp_cv_func__isinfl_use=no fi rm -f conftest* ac_ext=c @@ -10694,18 +16702,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6 - if test x$glibcpp_cv_func_finitef_use = x"yes"; then - for ac_func in finitef + if test x$glibcpp_cv_func__isinfl_use = x"yes"; then + for ac_func in _isinfl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10704: checking for $ac_func" >&5 +echo "configure:16712: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10752,12 +16760,15 @@ else fi done - else - - echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6 -echo "configure:10759: checking for _finitef declaration" >&5 - if test x${glibcpp_cv_func__finitef_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6 +echo "configure:16770: checking for copysignl declaration" >&5 + if test x${glibcpp_cv_func_copysignl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10770,25 +16781,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _finitef(0); + copysignl(0, 0); ; return 0; } EOF -if { (eval echo configure:10785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__finitef_use=yes + glibcpp_cv_func_copysignl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__finitef_use=no + glibcpp_cv_func_copysignl_use=no fi rm -f conftest* ac_ext=c @@ -10802,18 +16809,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6 - if test x$glibcpp_cv_func__finitef_use = x"yes"; then - for ac_func in _finitef + if test x$glibcpp_cv_func_copysignl_use = x"yes"; then + for ac_func in copysignl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10812: checking for $ac_func" >&5 +echo "configure:16819: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10860,67 +16867,64 @@ else fi done - fi - fi - - + else - echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6 -echo "configure:10870: checking for long double trig functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then + echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6 +echo "configure:16874: checking for _copysignl declaration" >&5 + if test x${glibcpp_cv_func__copysignl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - `for x in acosl asinl atanl \ - cosl sinl tanl \ - coshl sinhl tanhl; do echo "$x (0);"; done` + _copysignl(0, 0); ; return 0; } EOF -if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:16896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_long_double_trig_use=yes + glibcpp_cv_func__copysignl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_long_double_trig_use=no + glibcpp_cv_func__copysignl_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross + fi - echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6 - if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then - for ac_func in acosl asinl atanl \ - cosl sinl tanl \ - coshl sinhl tanhl + fi + echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6 + + if test x$glibcpp_cv_func__copysignl_use = x"yes"; then + for ac_func in _copysignl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10919: checking for $ac_func" >&5 +echo "configure:16923: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10966,62 +16970,68 @@ else echo "$ac_t""no" 1>&6 fi done - + + fi fi - echo $ac_n "checking for long double round functions""... $ac_c" 1>&6 -echo "configure:10975: checking for long double round functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then + + echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6 +echo "configure:16981: checking for atan2l declaration" >&5 + if test x${glibcpp_cv_func_atan2l_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - `for x in ceill floorl; do echo "$x (0);"; done` + atan2l(0, 0); ; return 0; } EOF -if { (eval echo configure:10996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_long_double_round_use=yes + glibcpp_cv_func_atan2l_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_long_double_round_use=no + glibcpp_cv_func_atan2l_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross + fi - echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6 - if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then - for ac_func in ceill floorl + fi + echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6 + + if test x$glibcpp_cv_func_atan2l_use = x"yes"; then + for ac_func in atan2l do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11020: checking for $ac_func" >&5 +echo "configure:17030: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11067,15 +17077,13 @@ else echo "$ac_t""no" 1>&6 fi done - - fi - - - - echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6 -echo "configure:11077: checking for isnanl declaration" >&5 - if test x${glibcpp_cv_func_isnanl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then + + else + + echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6 +echo "configure:17085: checking for _atan2l declaration" >&5 + if test x${glibcpp_cv_func__atan2l_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11088,25 +17096,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - isnanl(0); + _atan2l(0, 0); ; return 0; } EOF -if { (eval echo configure:11103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_isnanl_use=yes + glibcpp_cv_func__atan2l_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_isnanl_use=no + glibcpp_cv_func__atan2l_use=no fi rm -f conftest* ac_ext=c @@ -11120,18 +17124,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6 - if test x$glibcpp_cv_func_isnanl_use = x"yes"; then - for ac_func in isnanl + if test x$glibcpp_cv_func__atan2l_use = x"yes"; then + for ac_func in _atan2l do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11130: checking for $ac_func" >&5 +echo "configure:17134: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11178,12 +17182,15 @@ else fi done - else - - echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6 -echo "configure:11185: checking for _isnanl declaration" >&5 - if test x${glibcpp_cv_func__isnanl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for expl declaration""... $ac_c" 1>&6 +echo "configure:17192: checking for expl declaration" >&5 + if test x${glibcpp_cv_func_expl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11196,7 +17203,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -11204,17 +17211,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _isnanl(0); + expl(0); ; return 0; } EOF -if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__isnanl_use=yes + glibcpp_cv_func_expl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__isnanl_use=no + glibcpp_cv_func_expl_use=no fi rm -f conftest* ac_ext=c @@ -11228,18 +17235,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6 - if test x$glibcpp_cv_func__isnanl_use = x"yes"; then - for ac_func in _isnanl + if test x$glibcpp_cv_func_expl_use = x"yes"; then + for ac_func in expl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11238: checking for $ac_func" >&5 +echo "configure:17245: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11286,15 +17293,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6 -echo "configure:11296: checking for isinfl declaration" >&5 - if test x${glibcpp_cv_func_isinfl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6 +echo "configure:17300: checking for _expl declaration" >&5 + if test x${glibcpp_cv_func__expl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11307,7 +17311,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -11315,17 +17319,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - isinfl(0); + _expl(0); ; return 0; } EOF -if { (eval echo configure:11322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_isinfl_use=yes + glibcpp_cv_func__expl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_isinfl_use=no + glibcpp_cv_func__expl_use=no fi rm -f conftest* ac_ext=c @@ -11339,18 +17343,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6 - if test x$glibcpp_cv_func_isinfl_use = x"yes"; then - for ac_func in isinfl + if test x$glibcpp_cv_func__expl_use = x"yes"; then + for ac_func in _expl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11349: checking for $ac_func" >&5 +echo "configure:17353: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11397,12 +17401,15 @@ else fi done - else - - echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6 -echo "configure:11404: checking for _isinfl declaration" >&5 - if test x${glibcpp_cv_func__isinfl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6 +echo "configure:17411: checking for fabsl declaration" >&5 + if test x${glibcpp_cv_func_fabsl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11415,7 +17422,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -11423,17 +17430,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _isinfl(0); + fabsl(0); ; return 0; } EOF -if { (eval echo configure:11430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__isinfl_use=yes + glibcpp_cv_func_fabsl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__isinfl_use=no + glibcpp_cv_func_fabsl_use=no fi rm -f conftest* ac_ext=c @@ -11447,18 +17454,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6 - if test x$glibcpp_cv_func__isinfl_use = x"yes"; then - for ac_func in _isinfl + if test x$glibcpp_cv_func_fabsl_use = x"yes"; then + for ac_func in fabsl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11457: checking for $ac_func" >&5 +echo "configure:17464: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11505,15 +17512,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6 -echo "configure:11515: checking for copysignl declaration" >&5 - if test x${glibcpp_cv_func_copysignl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6 +echo "configure:17519: checking for _fabsl declaration" >&5 + if test x${glibcpp_cv_func__fabsl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11526,21 +17530,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - copysignl(0, 0); + _fabsl(0); ; return 0; } EOF -if { (eval echo configure:11537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_copysignl_use=yes + glibcpp_cv_func__fabsl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_copysignl_use=no + glibcpp_cv_func__fabsl_use=no fi rm -f conftest* ac_ext=c @@ -11554,18 +17562,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6 - if test x$glibcpp_cv_func_copysignl_use = x"yes"; then - for ac_func in copysignl + if test x$glibcpp_cv_func__fabsl_use = x"yes"; then + for ac_func in _fabsl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11564: checking for $ac_func" >&5 +echo "configure:17572: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11612,12 +17620,15 @@ else fi done - else - - echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6 -echo "configure:11619: checking for _copysignl declaration" >&5 - if test x${glibcpp_cv_func__copysignl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6 +echo "configure:17630: checking for fmodl declaration" >&5 + if test x${glibcpp_cv_func_fmodl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11630,21 +17641,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _copysignl(0, 0); + fmodl(0, 0); ; return 0; } EOF -if { (eval echo configure:11641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__copysignl_use=yes + glibcpp_cv_func_fmodl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__copysignl_use=no + glibcpp_cv_func_fmodl_use=no fi rm -f conftest* ac_ext=c @@ -11658,18 +17669,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6 - if test x$glibcpp_cv_func__copysignl_use = x"yes"; then - for ac_func in _copysignl + if test x$glibcpp_cv_func_fmodl_use = x"yes"; then + for ac_func in fmodl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11668: checking for $ac_func" >&5 +echo "configure:17679: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11716,15 +17727,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6 -echo "configure:11726: checking for atan2l declaration" >&5 - if test x${glibcpp_cv_func_atan2l_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6 +echo "configure:17734: checking for _fmodl declaration" >&5 + if test x${glibcpp_cv_func__fmodl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11737,21 +17745,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - atan2l(0, 0); + _fmodl(0, 0); ; return 0; } EOF -if { (eval echo configure:11748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_atan2l_use=yes + glibcpp_cv_func__fmodl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_atan2l_use=no + glibcpp_cv_func__fmodl_use=no fi rm -f conftest* ac_ext=c @@ -11765,18 +17773,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6 - if test x$glibcpp_cv_func_atan2l_use = x"yes"; then - for ac_func in atan2l + if test x$glibcpp_cv_func__fmodl_use = x"yes"; then + for ac_func in _fmodl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11775: checking for $ac_func" >&5 +echo "configure:17783: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11823,12 +17831,15 @@ else fi done - else - - echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6 -echo "configure:11830: checking for _atan2l declaration" >&5 - if test x${glibcpp_cv_func__atan2l_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6 +echo "configure:17841: checking for frexpl declaration" >&5 + if test x${glibcpp_cv_func_frexpl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11841,21 +17852,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _atan2l(0, 0); + frexpl(0, 0); ; return 0; } EOF -if { (eval echo configure:11852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__atan2l_use=yes + glibcpp_cv_func_frexpl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__atan2l_use=no + glibcpp_cv_func_frexpl_use=no fi rm -f conftest* ac_ext=c @@ -11869,18 +17880,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6 - if test x$glibcpp_cv_func__atan2l_use = x"yes"; then - for ac_func in _atan2l + if test x$glibcpp_cv_func_frexpl_use = x"yes"; then + for ac_func in frexpl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11879: checking for $ac_func" >&5 +echo "configure:17890: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:17918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11927,15 +17938,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for expl declaration""... $ac_c" 1>&6 -echo "configure:11937: checking for expl declaration" >&5 - if test x${glibcpp_cv_func_expl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6 +echo "configure:17945: checking for _frexpl declaration" >&5 + if test x${glibcpp_cv_func__frexpl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11948,25 +17956,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - expl(0); + _frexpl(0, 0); ; return 0; } EOF -if { (eval echo configure:11963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:17967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_expl_use=yes + glibcpp_cv_func__frexpl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_expl_use=no + glibcpp_cv_func__frexpl_use=no fi rm -f conftest* ac_ext=c @@ -11980,18 +17984,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6 - if test x$glibcpp_cv_func_expl_use = x"yes"; then - for ac_func in expl + if test x$glibcpp_cv_func__frexpl_use = x"yes"; then + for ac_func in _frexpl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11990: checking for $ac_func" >&5 +echo "configure:17994: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12038,12 +18042,15 @@ else fi done - else - - echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6 -echo "configure:12045: checking for _expl declaration" >&5 - if test x${glibcpp_cv_func__expl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6 +echo "configure:18052: checking for hypotl declaration" >&5 + if test x${glibcpp_cv_func_hypotl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12056,25 +18063,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _expl(0); + hypotl(0, 0); ; return 0; } EOF -if { (eval echo configure:12071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__expl_use=yes + glibcpp_cv_func_hypotl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__expl_use=no + glibcpp_cv_func_hypotl_use=no fi rm -f conftest* ac_ext=c @@ -12088,18 +18091,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6 - if test x$glibcpp_cv_func__expl_use = x"yes"; then - for ac_func in _expl + if test x$glibcpp_cv_func_hypotl_use = x"yes"; then + for ac_func in hypotl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12098: checking for $ac_func" >&5 +echo "configure:18101: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12146,15 +18149,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6 -echo "configure:12156: checking for fabsl declaration" >&5 - if test x${glibcpp_cv_func_fabsl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6 +echo "configure:18156: checking for _hypotl declaration" >&5 + if test x${glibcpp_cv_func__hypotl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12167,25 +18167,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - fabsl(0); + _hypotl(0, 0); ; return 0; } EOF -if { (eval echo configure:12182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_fabsl_use=yes + glibcpp_cv_func__hypotl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_fabsl_use=no + glibcpp_cv_func__hypotl_use=no fi rm -f conftest* ac_ext=c @@ -12199,18 +18195,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6 - if test x$glibcpp_cv_func_fabsl_use = x"yes"; then - for ac_func in fabsl + if test x$glibcpp_cv_func__hypotl_use = x"yes"; then + for ac_func in _hypotl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12209: checking for $ac_func" >&5 +echo "configure:18205: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12257,12 +18253,15 @@ else fi done - else - - echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6 -echo "configure:12264: checking for _fabsl declaration" >&5 - if test x${glibcpp_cv_func__fabsl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6 +echo "configure:18263: checking for ldexpl declaration" >&5 + if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12275,25 +18274,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _fabsl(0); + ldexpl(0, 0); ; return 0; } EOF -if { (eval echo configure:12290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__fabsl_use=yes + glibcpp_cv_func_ldexpl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__fabsl_use=no + glibcpp_cv_func_ldexpl_use=no fi rm -f conftest* ac_ext=c @@ -12307,18 +18302,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6 - if test x$glibcpp_cv_func__fabsl_use = x"yes"; then - for ac_func in _fabsl + if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then + for ac_func in ldexpl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12317: checking for $ac_func" >&5 +echo "configure:18312: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12365,15 +18360,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6 -echo "configure:12375: checking for fmodl declaration" >&5 - if test x${glibcpp_cv_func_fmodl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6 +echo "configure:18367: checking for _ldexpl declaration" >&5 + if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12386,21 +18378,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - fmodl(0, 0); + _ldexpl(0, 0); ; return 0; } EOF -if { (eval echo configure:12397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_fmodl_use=yes + glibcpp_cv_func__ldexpl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_fmodl_use=no + glibcpp_cv_func__ldexpl_use=no fi rm -f conftest* ac_ext=c @@ -12414,18 +18406,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6 - if test x$glibcpp_cv_func_fmodl_use = x"yes"; then - for ac_func in fmodl + if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then + for ac_func in _ldexpl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12424: checking for $ac_func" >&5 +echo "configure:18416: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12472,12 +18464,15 @@ else fi done - else - - echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6 -echo "configure:12479: checking for _fmodl declaration" >&5 - if test x${glibcpp_cv_func__fmodl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for logl declaration""... $ac_c" 1>&6 +echo "configure:18474: checking for logl declaration" >&5 + if test x${glibcpp_cv_func_logl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12490,21 +18485,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _fmodl(0, 0); + logl(0); ; return 0; } EOF -if { (eval echo configure:12501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__fmodl_use=yes + glibcpp_cv_func_logl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__fmodl_use=no + glibcpp_cv_func_logl_use=no fi rm -f conftest* ac_ext=c @@ -12518,18 +18517,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6 - if test x$glibcpp_cv_func__fmodl_use = x"yes"; then - for ac_func in _fmodl + if test x$glibcpp_cv_func_logl_use = x"yes"; then + for ac_func in logl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12528: checking for $ac_func" >&5 +echo "configure:18527: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12576,15 +18575,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6 -echo "configure:12586: checking for frexpl declaration" >&5 - if test x${glibcpp_cv_func_frexpl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6 +echo "configure:18582: checking for _logl declaration" >&5 + if test x${glibcpp_cv_func__logl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12597,21 +18593,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - frexpl(0, 0); + _logl(0); ; return 0; } EOF -if { (eval echo configure:12608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_frexpl_use=yes + glibcpp_cv_func__logl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_frexpl_use=no + glibcpp_cv_func__logl_use=no fi rm -f conftest* ac_ext=c @@ -12625,18 +18625,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6 - if test x$glibcpp_cv_func_frexpl_use = x"yes"; then - for ac_func in frexpl + if test x$glibcpp_cv_func__logl_use = x"yes"; then + for ac_func in _logl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12635: checking for $ac_func" >&5 +echo "configure:18635: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12683,12 +18683,15 @@ else fi done - else - - echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6 -echo "configure:12690: checking for _frexpl declaration" >&5 - if test x${glibcpp_cv_func__frexpl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6 +echo "configure:18693: checking for log10l declaration" >&5 + if test x${glibcpp_cv_func_log10l_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12701,21 +18704,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _frexpl(0, 0); + log10l(0); ; return 0; } EOF -if { (eval echo configure:12712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__frexpl_use=yes + glibcpp_cv_func_log10l_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__frexpl_use=no + glibcpp_cv_func_log10l_use=no fi rm -f conftest* ac_ext=c @@ -12729,18 +18736,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6 - if test x$glibcpp_cv_func__frexpl_use = x"yes"; then - for ac_func in _frexpl + if test x$glibcpp_cv_func_log10l_use = x"yes"; then + for ac_func in log10l do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12739: checking for $ac_func" >&5 +echo "configure:18746: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12787,15 +18794,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6 -echo "configure:12797: checking for ldexpl declaration" >&5 - if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6 +echo "configure:18801: checking for _log10l declaration" >&5 + if test x${glibcpp_cv_func__log10l_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12808,21 +18812,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - ldexpl(0, 0); + _log10l(0); ; return 0; } EOF -if { (eval echo configure:12819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_ldexpl_use=yes + glibcpp_cv_func__log10l_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_ldexpl_use=no + glibcpp_cv_func__log10l_use=no fi rm -f conftest* ac_ext=c @@ -12836,18 +18844,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6 - if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then - for ac_func in ldexpl + if test x$glibcpp_cv_func__log10l_use = x"yes"; then + for ac_func in _log10l do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12846: checking for $ac_func" >&5 +echo "configure:18854: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12894,12 +18902,15 @@ else fi done - else - - echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6 -echo "configure:12901: checking for _ldexpl declaration" >&5 - if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6 +echo "configure:18912: checking for modfl declaration" >&5 + if test x${glibcpp_cv_func_modfl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -12912,21 +18923,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _ldexpl(0, 0); + modfl(0, 0); ; return 0; } EOF -if { (eval echo configure:12923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:18934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__ldexpl_use=yes + glibcpp_cv_func_modfl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__ldexpl_use=no + glibcpp_cv_func_modfl_use=no fi rm -f conftest* ac_ext=c @@ -12940,18 +18951,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6 - if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then - for ac_func in _ldexpl + if test x$glibcpp_cv_func_modfl_use = x"yes"; then + for ac_func in modfl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:12950: checking for $ac_func" >&5 +echo "configure:18961: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -12998,15 +19009,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for logl declaration""... $ac_c" 1>&6 -echo "configure:13008: checking for logl declaration" >&5 - if test x${glibcpp_cv_func_logl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6 +echo "configure:19016: checking for _modfl declaration" >&5 + if test x${glibcpp_cv_func__modfl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13019,25 +19027,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - logl(0); + _modfl(0, 0); ; return 0; } EOF -if { (eval echo configure:13034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_logl_use=yes + glibcpp_cv_func__modfl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_logl_use=no + glibcpp_cv_func__modfl_use=no fi rm -f conftest* ac_ext=c @@ -13051,18 +19055,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6 - if test x$glibcpp_cv_func_logl_use = x"yes"; then - for ac_func in logl + if test x$glibcpp_cv_func__modfl_use = x"yes"; then + for ac_func in _modfl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13061: checking for $ac_func" >&5 +echo "configure:19065: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13109,12 +19113,15 @@ else fi done - else - - echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6 -echo "configure:13116: checking for _logl declaration" >&5 - if test x${glibcpp_cv_func__logl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for powl declaration""... $ac_c" 1>&6 +echo "configure:19123: checking for powl declaration" >&5 + if test x${glibcpp_cv_func_powl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13127,25 +19134,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _logl(0); + powl(0, 0); ; return 0; } EOF -if { (eval echo configure:13142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__logl_use=yes + glibcpp_cv_func_powl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__logl_use=no + glibcpp_cv_func_powl_use=no fi rm -f conftest* ac_ext=c @@ -13159,18 +19162,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6 - if test x$glibcpp_cv_func__logl_use = x"yes"; then - for ac_func in _logl + if test x$glibcpp_cv_func_powl_use = x"yes"; then + for ac_func in powl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13169: checking for $ac_func" >&5 +echo "configure:19172: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13217,15 +19220,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6 -echo "configure:13227: checking for log10l declaration" >&5 - if test x${glibcpp_cv_func_log10l_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6 +echo "configure:19227: checking for _powl declaration" >&5 + if test x${glibcpp_cv_func__powl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13238,25 +19238,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - log10l(0); + _powl(0, 0); ; return 0; } EOF -if { (eval echo configure:13253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_log10l_use=yes + glibcpp_cv_func__powl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_log10l_use=no + glibcpp_cv_func__powl_use=no fi rm -f conftest* ac_ext=c @@ -13270,18 +19266,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6 - if test x$glibcpp_cv_func_log10l_use = x"yes"; then - for ac_func in log10l + if test x$glibcpp_cv_func__powl_use = x"yes"; then + for ac_func in _powl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13280: checking for $ac_func" >&5 +echo "configure:19276: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13328,12 +19324,15 @@ else fi done - else - - echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6 -echo "configure:13335: checking for _log10l declaration" >&5 - if test x${glibcpp_cv_func__log10l_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6 +echo "configure:19334: checking for sqrtl declaration" >&5 + if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13346,7 +19345,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -13354,17 +19353,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - _log10l(0); + sqrtl(0); ; return 0; } EOF -if { (eval echo configure:13361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__log10l_use=yes + glibcpp_cv_func_sqrtl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__log10l_use=no + glibcpp_cv_func_sqrtl_use=no fi rm -f conftest* ac_ext=c @@ -13378,18 +19377,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6 - if test x$glibcpp_cv_func__log10l_use = x"yes"; then - for ac_func in _log10l + if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then + for ac_func in sqrtl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13388: checking for $ac_func" >&5 +echo "configure:19387: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13436,15 +19435,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6 -echo "configure:13446: checking for modfl declaration" >&5 - if test x${glibcpp_cv_func_modfl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6 +echo "configure:19442: checking for _sqrtl declaration" >&5 + if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13457,21 +19453,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - modfl(0, 0); + _sqrtl(0); ; return 0; } EOF -if { (eval echo configure:13468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_modfl_use=yes + glibcpp_cv_func__sqrtl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_modfl_use=no + glibcpp_cv_func__sqrtl_use=no fi rm -f conftest* ac_ext=c @@ -13485,18 +19485,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6 - if test x$glibcpp_cv_func_modfl_use = x"yes"; then - for ac_func in modfl + if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then + for ac_func in _sqrtl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13495: checking for $ac_func" >&5 +echo "configure:19495: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13543,12 +19543,15 @@ else fi done - else - - echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6 -echo "configure:13550: checking for _modfl declaration" >&5 - if test x${glibcpp_cv_func__modfl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6 +echo "configure:19553: checking for sincosl declaration" >&5 + if test x${glibcpp_cv_func_sincosl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13561,21 +19564,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - _modfl(0, 0); + sincosl(0, 0, 0); ; return 0; } EOF -if { (eval echo configure:13572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__modfl_use=yes + glibcpp_cv_func_sincosl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__modfl_use=no + glibcpp_cv_func_sincosl_use=no fi rm -f conftest* ac_ext=c @@ -13589,18 +19592,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6 - if test x$glibcpp_cv_func__modfl_use = x"yes"; then - for ac_func in _modfl + if test x$glibcpp_cv_func_sincosl_use = x"yes"; then + for ac_func in sincosl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13599: checking for $ac_func" >&5 +echo "configure:19602: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13647,15 +19650,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for powl declaration""... $ac_c" 1>&6 -echo "configure:13657: checking for powl declaration" >&5 - if test x${glibcpp_cv_func_powl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6 +echo "configure:19657: checking for _sincosl declaration" >&5 + if test x${glibcpp_cv_func__sincosl_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13668,21 +19668,21 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < int main() { - powl(0, 0); + _sincosl(0, 0, 0); ; return 0; } EOF -if { (eval echo configure:13679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_powl_use=yes + glibcpp_cv_func__sincosl_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_powl_use=no + glibcpp_cv_func__sincosl_use=no fi rm -f conftest* ac_ext=c @@ -13696,18 +19696,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6 - if test x$glibcpp_cv_func_powl_use = x"yes"; then - for ac_func in powl + if test x$glibcpp_cv_func__sincosl_use = x"yes"; then + for ac_func in _sincosl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13706: checking for $ac_func" >&5 +echo "configure:19706: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13754,12 +19754,15 @@ else fi done - else - - echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6 -echo "configure:13761: checking for _powl declaration" >&5 - if test x${glibcpp_cv_func__powl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then + fi + fi + + + + echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6 +echo "configure:19764: checking for finitel declaration" >&5 + if test x${glibcpp_cv_func_finitel_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13772,21 +19775,25 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < + #ifdef HAVE_IEEEFP_H + #include + #endif + int main() { - _powl(0, 0); + finitel(0); ; return 0; } EOF -if { (eval echo configure:13783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__powl_use=yes + glibcpp_cv_func_finitel_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__powl_use=no + glibcpp_cv_func_finitel_use=no fi rm -f conftest* ac_ext=c @@ -13800,18 +19807,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6 - if test x$glibcpp_cv_func__powl_use = x"yes"; then - for ac_func in _powl + if test x$glibcpp_cv_func_finitel_use = x"yes"; then + for ac_func in finitel do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13810: checking for $ac_func" >&5 +echo "configure:19817: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13858,15 +19865,12 @@ else fi done - fi - fi - - - - echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6 -echo "configure:13868: checking for sqrtl declaration" >&5 - if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then + else + + echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6 +echo "configure:19872: checking for _finitel declaration" >&5 + if test x${glibcpp_cv_func__finitel_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -13879,7 +19883,7 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext < #ifdef HAVE_IEEEFP_H @@ -13887,17 +19891,17 @@ cross_compiling=$ac_cv_prog_cxx_cross #endif int main() { - sqrtl(0); + _finitel(0); ; return 0; } EOF -if { (eval echo configure:13894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:19898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_sqrtl_use=yes + glibcpp_cv_func__finitel_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_sqrtl_use=no + glibcpp_cv_func__finitel_use=no fi rm -f conftest* ac_ext=c @@ -13911,18 +19915,18 @@ cross_compiling=$ac_cv_prog_cc_cross fi fi - echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6 + echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6 - if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then - for ac_func in sqrtl + if test x$glibcpp_cv_func__finitel_use = x"yes"; then + for ac_func in _finitel do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:13921: checking for $ac_func" >&5 +echo "configure:19925: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:19953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -13969,68 +19973,68 @@ else fi done - else + fi + fi + + + - echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6 -echo "configure:13976: checking for _sqrtl declaration" >&5 - if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then + echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6 +echo "configure:19984: checking for _float trig functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - _sqrtl(0); + `for x in _acosf _asinf _atanf \ + _cosf _sinf _tanf \ + _coshf _sinhf _tanhf; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:14002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__sqrtl_use=yes + glibcpp_cv_func__float_trig_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__sqrtl_use=no + glibcpp_cv_func__float_trig_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - -fi - - fi - echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6 +fi - if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then - for ac_func in _sqrtl + echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6 + if test x$glibcpp_cv_func__float_trig_use = x"yes"; then + for ac_func in _acosf _asinf _atanf \ + _cosf _sinf _tanf \ + _coshf _sinhf _tanhf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14029: checking for $ac_func" >&5 +echo "configure:20033: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14076,68 +20080,62 @@ else echo "$ac_t""no" 1>&6 fi done - - fi + fi - - echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6 -echo "configure:14087: checking for sincosl declaration" >&5 - if test x${glibcpp_cv_func_sincosl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then + echo $ac_n "checking for _float round functions""... $ac_c" 1>&6 +echo "configure:20089: checking for _float round functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - sincosl(0, 0, 0); + `for x in _ceilf _floorf; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:14109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_sincosl_use=yes + glibcpp_cv_func__float_round_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_sincosl_use=no + glibcpp_cv_func__float_round_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6 - - if test x$glibcpp_cv_func_sincosl_use = x"yes"; then - for ac_func in sincosl + echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6 + if test x$glibcpp_cv_func__float_round_use = x"yes"; then + for ac_func in _ceilf _floorf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14136: checking for $ac_func" >&5 +echo "configure:20134: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14183,65 +20181,67 @@ else echo "$ac_t""no" 1>&6 fi done + + fi + + - else - - echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6 -echo "configure:14191: checking for _sincosl declaration" >&5 - if test x${glibcpp_cv_func__sincosl_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then + echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6 +echo "configure:20191: checking for _long double trig functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < int main() { - _sincosl(0, 0, 0); + `for x in _acosl _asinl _atanl \ + _cosl _sinl _tanl \ + _coshl _sinhl _tanhl; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__sincosl_use=yes + glibcpp_cv_func__long_double_trig_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__sincosl_use=no + glibcpp_cv_func__long_double_trig_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6 - - if test x$glibcpp_cv_func__sincosl_use = x"yes"; then - for ac_func in _sincosl + echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6 + if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then + for ac_func in _acosl _asinl _atanl \ + _cosl _sinl _tanl \ + _coshl _sinhl _tanhl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14240: checking for $ac_func" >&5 +echo "configure:20240: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14287,72 +20287,62 @@ else echo "$ac_t""no" 1>&6 fi done - - fi + fi - - echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6 -echo "configure:14298: checking for finitel declaration" >&5 - if test x${glibcpp_cv_func_finitel_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then + echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6 +echo "configure:20296: checking for _long double round functions" >&5 + if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - ac_ext=C + + ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross - cat > conftest.$ac_ext < conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - int main() { - finitel(0); + `for x in _ceill _floorl; do echo "$x (0);"; done` ; return 0; } EOF -if { (eval echo configure:14324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func_finitel_use=yes + glibcpp_cv_func__long_double_round_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_finitel_use=no + glibcpp_cv_func__long_double_round_use=no fi rm -f conftest* - ac_ext=c + ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross - fi - fi - echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6 - - if test x$glibcpp_cv_func_finitel_use = x"yes"; then - for ac_func in finitel + echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6 + if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then + for ac_func in _ceill _floorl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14351: checking for $ac_func" >&5 +echo "configure:20341: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14398,69 +20388,66 @@ else echo "$ac_t""no" 1>&6 fi done - - else - - echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6 -echo "configure:14406: checking for _finitel declaration" >&5 - if test x${glibcpp_cv_func__finitel_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then + + fi + + + LIBS="$ac_save_LIBS" + CXXFLAGS="$ac_save_CXXFLAGS" + + + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 +echo "configure:20401: checking for main in -lm" >&5 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext < conftest.$ac_ext < - #ifdef HAVE_IEEEFP_H - #include - #endif - + int main() { - _finitel(0); +main() ; return 0; } EOF -if { (eval echo configure:14432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func__finitel_use=yes + eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__finitel_use=no + eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross +LIBS="$ac_save_LIBS" - fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 + LIBS="-lm $LIBS" - if test x$glibcpp_cv_func__finitel_use = x"yes"; then - for ac_func in _finitel +else + echo "$ac_t""no" 1>&6 +fi + + for ac_func in nan copysignf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14459: checking for $ac_func" >&5 +echo "configure:20446: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14504,71 +20491,76 @@ EOF else echo "$ac_t""no" 1>&6 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi done - - fi - fi - - - echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6 -echo "configure:14518: checking for _float trig functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then + for ac_func in __signbit +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:20503: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext < conftest.$ac_ext < +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + int main() { - `for x in _acosf _asinf _atanf \ - _cosf _sinf _tanf \ - _coshf _sinhf _tanhf; do echo "$x (0);"; done` + +/* 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 +$ac_func(); +#endif + ; return 0; } EOF -if { (eval echo configure:14541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - glibcpp_cv_func__float_trig_use=yes + eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__float_trig_use=no + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - fi - echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6 - if test x$glibcpp_cv_func__float_trig_use = x"yes"; then - for ac_func in _acosf _asinf _atanf \ - _cosf _sinf _tanf \ - _coshf _sinhf _tanhf +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo" +fi +done + + for ac_func in __signbitf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14567: checking for $ac_func" >&5 +echo "configure:20559: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14612,64 +20604,21 @@ EOF else echo "$ac_t""no" 1>&6 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo" fi done - fi - - - echo $ac_n "checking for _float round functions""... $ac_c" 1>&6 -echo "configure:14623: checking for _float round functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext < -int main() { - `for x in _ceilf _floorf; do echo "$x (0);"; done` -; return 0; } -EOF -if { (eval echo configure:14644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - glibcpp_cv_func__float_round_use=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - glibcpp_cv_func__float_round_use=no -fi -rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -fi - echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6 - if test x$glibcpp_cv_func__float_round_use = x"yes"; then - for ac_func in _ceilf _floorf + if test x$ac_cv_func_copysignl = x"yes"; then + for ac_func in __signbitl do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14668: checking for $ac_func" >&5 +echo "configure:20617: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14713,69 +20662,187 @@ EOF else echo "$ac_t""no" 1>&6 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo" fi done fi + + + - - echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6 -echo "configure:14725: checking for _long double trig functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 +echo "configure:20677: checking for mbstate_t" >&5 + cat > conftest.$ac_ext < +int main() { +mbstate_t teststate; +; return 0; } +EOF +if { (eval echo configure:20686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + have_mbstate_t=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + have_mbstate_t=no +fi +rm -f conftest* + echo "$ac_t""$have_mbstate_t" 1>&6 + if test x"$have_mbstate_t" = xyes; then + cat >> confdefs.h <<\EOF +#define HAVE_MBSTATE_T 1 +EOF + + fi + + for ac_hdr in wchar.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:20708: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:20718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wchar_h=no +fi +done + + for ac_hdr in wctype.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:20749: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:20759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +ac_has_wctype_h=no +fi +done + + if test x"$ac_has_wchar_h" = xyes && + test x"$ac_has_wctype_h" = xyes && + test x"$enable_c_mbchar" != xno; then + + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 +echo "configure:20792: checking for WCHAR_MIN and WCHAR_MAX" >&5 cat > conftest.$ac_ext < +#include int main() { - `for x in _acosl _asinl _atanl \ - _cosl _sinl _tanl \ - _coshl _sinhl _tanhl; do echo "$x (0);"; done` +int i = WCHAR_MIN; int j = WCHAR_MAX; ; return 0; } EOF -if { (eval echo configure:14748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:20801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - glibcpp_cv_func__long_double_trig_use=yes + has_wchar_minmax=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func__long_double_trig_use=no + has_wchar_minmax=no fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross + echo "$ac_t""$has_wchar_minmax" 1>&6 + + echo $ac_n "checking for WEOF""... $ac_c" 1>&6 +echo "configure:20814: checking for WEOF" >&5 + cat > conftest.$ac_ext < + #include +int main() { +wint_t i = WEOF; +; return 0; } +EOF +if { (eval echo configure:20825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + has_weof=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + has_weof=no fi - - echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6 - if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then - for ac_func in _acosl _asinl _atanl \ - _cosl _sinl _tanl \ - _coshl _sinhl _tanhl +rm -f conftest* + echo "$ac_t""$has_weof" 1>&6 + + ac_wfuncs=yes + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14774: checking for $ac_func" >&5 +echo "configure:20841: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14819,64 +20886,26 @@ EOF else echo "$ac_t""no" 1>&6 +\ + ac_wfuncs=no fi done - fi - - - echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6 -echo "configure:14830: checking for _long double round functions" >&5 - if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - - cat > conftest.$ac_ext < -int main() { - `for x in _ceill _floorl; do echo "$x (0);"; done` -; return 0; } -EOF -if { (eval echo configure:14851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - glibcpp_cv_func__long_double_round_use=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - glibcpp_cv_func__long_double_round_use=no -fi -rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -fi - - echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6 - if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then - for ac_func in _ceill _floorl + for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \ + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \ + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \ + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \ + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \ + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14875: checking for $ac_func" >&5 +echo "configure:20904: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:20932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14920,130 +20949,144 @@ EOF else echo "$ac_t""no" 1>&6 +\ + ac_wfuncs=no fi done - fi - - - LIBS="$ac_save_LIBS" - CXXFLAGS="$ac_save_CXXFLAGS" + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 +echo "configure:20960: checking for ISO C99 wchar_t support" >&5 + if test x"$has_weof" = xyes && + test x"$has_wchar_minmax" = xyes && + test x"$ac_wfuncs" = xyes; then + ac_isoC99_wchar_t=yes + else + ac_isoC99_wchar_t=no + fi + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6 - echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 -echo "configure:14935: checking for main in -lm" >&5 -ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 +echo "configure:20972: checking for iconv.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-lm $LIBS" -cat > conftest.$ac_ext < conftest.$ac_ext < EOF -if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:20982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" + eval "ac_cv_header_$ac_safe=yes" else + echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" + eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* -LIBS="$ac_save_LIBS" - fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 +ac_has_iconv_h=no fi - for ac_func in nan hypot hypotf atan2f expf copysignf -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14980: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 +echo "configure:21006: checking for langinfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:21016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_has_langinfo_h=yes +else + echo "$ac_t""no" 1>&6 +ac_has_langinfo_h=no +fi + + + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 +echo "configure:21040: checking for iconv in -liconv" >&5 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-liconv $LIBS" +cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* 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(); +char iconv(); int main() { - -/* 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 -$ac_func(); -#endif - +iconv() ; return 0; } EOF -if { (eval echo configure:15008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" + eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* -fi +LIBS="$ac_save_LIBS" -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" fi -done - + ac_save_LIBS="$LIBS" + LIBS="$LIBS $libiconv" - USE_COMPLEX_LONG_DOUBLE=no - if test x$ac_cv_func_atan2l = x"yes" && - test x$ac_cv_func_copysignl = x"yes"; then - USE_COMPLEX_LONG_DOUBLE=yes - for ac_func in hypotl signbitl + for ac_func in iconv_open iconv_close iconv nl_langinfo do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15042: checking for $ac_func" >&5 +echo "configure:21085: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15084,184 +21127,209 @@ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then cat >> confdefs.h <&6 -LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo" +ac_XPG2funcs=no fi done + + LIBS="$ac_save_LIBS" + + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 +echo "configure:21143: checking for XPG2 wchar_t support" >&5 + if test x"$ac_has_iconv_h" = xyes && + test x"$ac_has_langinfo_h" = xyes && + test x"$ac_XPG2funcs" = xyes; then + ac_XPG2_wchar_t=yes + else + ac_XPG2_wchar_t=no + fi + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 + + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 +echo "configure:21154: checking for enabled wchar_t specializations" >&5 + if test x"$ac_isoC99_wchar_t" = xyes && + test x"$ac_XPG2_wchar_t" = xyes; then + cat >> confdefs.h <<\EOF +#define _GLIBCPP_USE_WCHAR_T 1 +EOF + echo "$ac_t"""yes"" 1>&6 + else + echo "$ac_t"""no"" 1>&6 + fi + else + echo "configure: warning: wchar_t support disabled." 1>&2 fi + ac_test_CXXFLAGS="${CXXFLAGS+set}" + ac_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS='-fno-builtins -D_GNU_SOURCE' + echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6 +echo "configure:21176: checking for strtold declaration" >&5 + if test x${glibcpp_cv_func_strtold_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross - echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6 -echo "configure:15103: checking for mbstate_t" >&5 - cat > conftest.$ac_ext < conftest.$ac_ext < +#include int main() { -mbstate_t teststate; + strtold(0, 0); ; return 0; } EOF -if { (eval echo configure:15112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:21198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - have_mbstate_t=yes + glibcpp_cv_func_strtold_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - have_mbstate_t=no + glibcpp_cv_func_strtold_use=no fi rm -f conftest* - echo "$ac_t""$have_mbstate_t" 1>&6 - if test x"$have_mbstate_t" = xyes; then - cat >> confdefs.h <<\EOF -#define HAVE_MBSTATE_T 1 -EOF + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross - fi + +fi - for ac_hdr in wchar.h + fi + echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6 + if test x$glibcpp_cv_func_strtold_use = x"yes"; then + for ac_func in strtold do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:15134: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:21224: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:15144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -ac_has_wchar_h=no -fi -done +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { + +/* 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 +$ac_func(); +#endif - ac_safe=`echo "wctype.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for wctype.h""... $ac_c" 1>&6 -echo "configure:15173: checking for wctype.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < +; return 0; } EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:15183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then +if { (eval echo configure:21252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + eval "ac_cv_func_$ac_func=yes" else - echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_has_wctype_h=yes + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 -ac_has_wctype_h=no fi +done + + fi - if test x"$ac_has_wchar_h" = xyes && - test x"$ac_has_wctype_h" = xyes && - test x"$enable_c_mbchar" != xno; then + echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6 +echo "configure:21280: checking for strtof declaration" >&5 + if test x${glibcpp_cv_func_strtof_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + - echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6 -echo "configure:15211: checking for WCHAR_MIN and WCHAR_MAX" >&5 - cat > conftest.$ac_ext < conftest.$ac_ext < +#include int main() { -int i = WCHAR_MIN; int j = WCHAR_MAX; + strtof(0, 0); ; return 0; } EOF -if { (eval echo configure:15220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:21302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - has_wchar_minmax=yes + glibcpp_cv_func_strtof_use=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - has_wchar_minmax=no + glibcpp_cv_func_strtof_use=no fi rm -f conftest* - echo "$ac_t""$has_wchar_minmax" 1>&6 - - echo $ac_n "checking for WEOF""... $ac_c" 1>&6 -echo "configure:15233: checking for WEOF" >&5 - cat > conftest.$ac_ext < - #include -int main() { -wint_t i = WEOF; -; return 0; } -EOF -if { (eval echo configure:15244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - has_weof=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - has_weof=no + fi -rm -f conftest* - echo "$ac_t""$has_weof" 1>&6 - - ac_wfuncs=yes - for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset + + fi + echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6 + if test x$glibcpp_cv_func_strtof_use = x"yes"; then + for ac_func in strtof do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15260: checking for $ac_func" >&5 +echo "configure:21328: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15305,26 +21373,20 @@ EOF else echo "$ac_t""no" 1>&6 -\ - ac_wfuncs=no fi done + + fi - - for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \ - fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \ - vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \ - mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \ - wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \ - wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr + for ac_func in drand48 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15323: checking for $ac_func" >&5 +echo "configure:21385: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15368,70 +21430,26 @@ EOF else echo "$ac_t""no" 1>&6 -\ - ac_wfuncs=no fi done - echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6 -echo "configure:15379: checking for ISO C99 wchar_t support" >&5 - if test x"$has_weof" = xyes && - test x"$has_wchar_minmax" = xyes && - test x"$ac_wfuncs" = xyes; then - ac_isoC99_wchar_t=yes - else - ac_isoC99_wchar_t=no - fi - echo "$ac_t""$ac_isoC99_wchar_t" 1>&6 - - ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for iconv.h""... $ac_c" 1>&6 -echo "configure:15391: checking for iconv.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:15401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_has_iconv_h=yes -else - echo "$ac_t""no" 1>&6 -ac_has_iconv_h=no -fi + CXXFLAGS="$ac_save_CXXFLAGS" - ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6 -echo "configure:15425: checking for langinfo.h" >&5 + + ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for locale.h""... $ac_c" 1>&6 +echo "configure:21443: checking for locale.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:15435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:21453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -15447,204 +21465,118 @@ rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_has_langinfo_h=yes -else - echo "$ac_t""no" 1>&6 -ac_has_langinfo_h=no -fi - - - echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6 -echo "configure:15459: checking for iconv in -liconv" >&5 -ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-liconv $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - libiconv="-liconv" -else - echo "$ac_t""no" 1>&6 -fi - - ac_save_LIBS="$LIBS" - LIBS="$LIBS $libiconv" - - for ac_func in iconv_open iconv_close iconv nl_langinfo -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15504: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + + echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 +echo "configure:21471: checking for LC_MESSAGES" >&5 +if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* 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(); - +#include int main() { - -/* 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 -$ac_func(); -#endif - +return LC_MESSAGES ; return 0; } EOF -if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" + ac_cv_val_LC_MESSAGES=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + ac_cv_val_LC_MESSAGES=no fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -ac_XPG2funcs=no -fi -done - - - LIBS="$ac_save_LIBS" - - echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6 -echo "configure:15562: checking for XPG2 wchar_t support" >&5 - if test x"$ac_has_iconv_h" = xyes && - test x"$ac_has_langinfo_h" = xyes && - test x"$ac_XPG2funcs" = xyes; then - ac_XPG2_wchar_t=yes - else - ac_XPG2_wchar_t=no - fi - echo "$ac_t""$ac_XPG2_wchar_t" 1>&6 - - echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6 -echo "configure:15573: checking for enabled wchar_t specializations" >&5 - if test x"$ac_isoC99_wchar_t" = xyes && - test x"$ac_XPG2_wchar_t" = xyes; then +echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6 + if test $ac_cv_val_LC_MESSAGES = yes; then cat >> confdefs.h <<\EOF -#define _GLIBCPP_USE_WCHAR_T 1 +#define HAVE_LC_MESSAGES 1 EOF - echo "$ac_t"""yes"" 1>&6 - else - echo "$ac_t"""no"" 1>&6 fi - else - echo "configure: warning: wchar_t support disabled." 1>&2 - fi + +else + echo "$ac_t""no" 1>&6 +fi + + + + cat > conftest.$ac_ext < - ac_test_CXXFLAGS="${CXXFLAGS+set}" - ac_save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS='-fno-builtins -D_GNU_SOURCE' +int main() { +sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); +; return 0; } +EOF +if { (eval echo configure:21519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + cat >> confdefs.h <<\EOF +#define HAVE_SIGSETJMP 1 +EOF - echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6 -echo "configure:15595: checking for strtold declaration" >&5 - if test x${glibcpp_cv_func_strtold_use+set} != xset; then - if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 else - - - ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* - cat > conftest.$ac_ext <&6 +echo "configure:21536: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < -int main() { - strtold(0, 0); -; return 0; } +#include <$ac_hdr> EOF -if { (eval echo configure:15617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:21546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then rm -rf conftest* - glibcpp_cv_func_strtold_use=yes + eval "ac_cv_header_$ac_safe=yes" else + echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - glibcpp_cv_func_strtold_use=no + eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - - fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done - fi - echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6 - if test x$glibcpp_cv_func_strtold_use = x"yes"; then - for ac_func in strtold +for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15643: checking for $ac_func" >&5 +echo "configure:21575: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -15690,105 +21622,211 @@ else echo "$ac_t""no" 1>&6 fi done - - fi - for ac_func in drand48 -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15700: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then +echo $ac_n "checking for working mmap""... $ac_c" 1>&6 +echo "configure:21628: checking for working mmap" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else + if test "$cross_compiling" = yes; then + ac_cv_func_mmap_fixed_mapped=no +else cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* 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(); -int main() { +/* 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 filesystem buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propogated back to all the places they're supposed to be. -/* 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 + 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 +#include + +#if HAVE_SYS_TYPES_H +# include +#endif + +#if HAVE_STDLIB_H +# include +#endif + +#if HAVE_SYS_STAT_H +# include +#endif + +#if HAVE_UNISTD_H +# include +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE + +/* Assume that all systems that can run configure have sys/param.h. */ +# ifndef HAVE_SYS_PARAM_H +# define HAVE_SYS_PARAM_H 1 +# endif + +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef 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 */ + +#ifdef __cplusplus +extern "C" { void *malloc(unsigned); } #else -$ac_func(); +char *malloc(); #endif -; return 0; } +int +main() +{ + char *data, *data2, *data3; + int i, pagesize; + int fd; + + pagesize = getpagesize(); + + /* + * First, make a file with some known garbage in it. + */ + data = malloc(pagesize); + if (!data) + exit(1); + for (i = 0; i < pagesize; ++i) + *(data + i) = rand(); + umask(0); + fd = creat("conftestmmap", 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("conftestmmap", O_RDWR); + if (fd < 0) + exit(1); + data2 = malloc(2 * pagesize); + if (!data2) + exit(1); + data2 += (pagesize - ((int) 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 = 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); + unlink("conftestmmap"); + exit(0); +} + EOF -if { (eval echo configure:15728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" +if { (eval echo configure:21789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_func_mmap_fixed_mapped=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + rm -fr conftest* + ac_cv_func_mmap_fixed_mapped=no fi -rm -f conftest* +rm -fr conftest* fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 fi -done - - CXXFLAGS="$ac_save_CXXFLAGS" - - - cat > conftest.$ac_ext < - -int main() { -sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); -; return 0; } -EOF -if { (eval echo configure:15766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* +echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 +if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >> confdefs.h <<\EOF -#define HAVE_SIGSETJMP 1 +#define HAVE_MMAP 1 EOF -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 fi -rm -f conftest* - for ac_hdr in unistd.h + + # Establish limits on memory usage during 'make check' + + + setrlimit_have_headers=yes + for ac_hdr in unistd.h sys/time.h sys/resource.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:15782: checking for $ac_hdr" >&5 +echo "configure:21820: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:15792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:21830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -15811,244 +21849,414 @@ EOF else echo "$ac_t""no" 1>&6 +setrlimit_have_headers=no fi done -for ac_func in getpagesize -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:15821: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else + # If don't have the headers, then we can't run the tests now, and we + # won't be seeing any of these during testsuite compilation. + if test $setrlimit_have_headers = yes; then + # Can't do these in a loop, else the resulting syntax is wrong. + cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* 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(); - +#include + #include + #include + int main() { + int f = RLIMIT_DATA ; +; return 0; } +EOF +if { (eval echo configure:21873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_mresult=1 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_mresult=0 +fi +rm -f conftest* + cat >> confdefs.h < conftest.$ac_ext < + #include + #include + +int main() { + int f = RLIMIT_RSS ; ; return 0; } EOF -if { (eval echo configure:15849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:21900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" + glibcpp_mresult=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + glibcpp_mresult=0 fi rm -f conftest* -fi + cat >> confdefs.h <&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + + + cat > conftest.$ac_ext < + #include + #include + +int main() { + int f = RLIMIT_VMEM ; +; return 0; } +EOF +if { (eval echo configure:21927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_mresult=1 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_mresult=0 +fi +rm -f conftest* cat >> confdefs.h < conftest.$ac_ext < + #include + #include + +int main() { + int f = RLIMIT_AS ; +; return 0; } +EOF +if { (eval echo configure:21954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_mresult=1 else - echo "$ac_t""no" 1>&6 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_mresult=0 fi -done +rm -f conftest* + cat >> confdefs.h <&6 -echo "configure:15874: checking for working mmap" >&5 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then + + + # Check for rlimit, setrlimit. + if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat > conftest.$ac_ext < conftest.$ac_ext < + #include + #include + +int main() { + struct rlimit r; setrlimit(0, &r); +; return 0; } +EOF +if { (eval echo configure:21986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_setrlimit=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_setrlimit=no +fi +rm -f conftest* + +fi -/* 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 filesystem buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propogated back to all the places they're supposed to be. + fi - 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 -#include + echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6 +echo "configure:22002: checking for testsuite memory limit support" >&5 + if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then + ac_mem_limits=yes + cat >> confdefs.h <<\EOF +#define _GLIBCPP_MEM_LIMITS 1 +EOF -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -# ifdef HAVE_UNISTD_H -# include -# endif + else + ac_mem_limits=no + fi + echo "$ac_t""$ac_mem_limits" 1>&6 -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef 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 */ + # Look for setenv, so that extended locale tests can be performed. + + echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6 +echo "configure:22018: checking for setenv declaration" >&5 + if test x${glibcpp_cv_func_setenv_use+set} != xset; then + if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross -#endif /* no HAVE_GETPAGESIZE */ + cat > conftest.$ac_ext < +int main() { + setenv(0, 0, 0); +; return 0; } +EOF +if { (eval echo configure:22040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + glibcpp_cv_func_setenv_use=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + glibcpp_cv_func_setenv_use=no +fi +rm -f conftest* + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + +fi + + fi + echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6 + if test x$glibcpp_cv_func_setenv_use = x"yes"; then + for ac_func in setenv +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:22066: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* 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(); + +int main() { -#ifdef __cplusplus -extern "C" { void *malloc(unsigned); } +/* 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 *malloc(); +$ac_func(); #endif -int -main() -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; +; return 0; } +EOF +if { (eval echo configure:22094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi - pagesize = getpagesize(); +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + fi - /* - * First, make a file with some known garbage in it. - */ - data = malloc(pagesize); - if (!data) - exit(1); - for (i = 0; i < pagesize; ++i) - *(data + i) = rand(); - umask(0); - fd = creat("conftestmmap", 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("conftestmmap", O_RDWR); - if (fd < 0) - exit(1); - data2 = malloc(2 * pagesize); - if (!data2) - exit(1); - data2 += (pagesize - ((int) 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); +fi - /* - * 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 = 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); - unlink("conftestmmap"); - exit(0); -} +# This depends on the possibly-skipped linker test above. +# Check whether --enable-symvers or --disable-symvers was given. +if test "${enable_symvers+set}" = set; then + enableval="$enable_symvers" + case "$enableval" in + yes) enable_symvers=yes ;; + no) enable_symvers=no ;; + # other names here, just as sanity checks + #gnu|sun|etcetera) enable_symvers=$enableval ;; + gnu) enable_symvers=$enableval ;; + *) { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;; + esac +else + enable_symvers=yes +fi + +# If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we +# don't know enough about $LD to do tricks... +if test x$enable_shared = xno || + test "x$LD" = x || + test x$glibcpp_gnu_ld_version = x; then + enable_symvers=no +fi + +# Check to see if libgcc_s exists, indicating that shared libgcc is possible. +if test $enable_symvers != no; then + echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6 +echo "configure:22150: checking for shared libgcc" >&5 + ac_save_CFLAGS="$CFLAGS" + CFLAGS=' -lgcc_s' + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null -then - ac_cv_func_mmap_fixed_mapped=yes +if { (eval echo configure:22161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + glibcpp_shared_libgcc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_func_mmap_fixed_mapped=no + rm -rf conftest* + glibcpp_shared_libgcc=no fi -rm -fr conftest* +rm -f conftest* + CFLAGS="$ac_save_CFLAGS" + echo "$ac_t""$glibcpp_shared_libgcc" 1>&6 fi -fi +# For GNU ld, we need at least this version. It's 2.12 in the same format +# as the tested-for version. See GLIBCPP_CHECK_LINKER_FEATURES for more. +glibcpp_min_gnu_ld_version=21200 -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 -if test $ac_cv_func_mmap_fixed_mapped = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_MMAP 1 -EOF +# Check to see if unspecified "yes" value can win, given results +# above. +if test $enable_symvers = yes ; then + if test $with_gnu_ld = yes && + test $glibcpp_shared_libgcc = yes ; + then + if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then + enable_symvers=gnu + else + ac_test_CFLAGS="${CFLAGS+set}" + ac_save_CFLAGS="$CFLAGS" + CFLAGS='-shared -Wl,--version-script,conftest.map' + enable_symvers=no + + echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map + + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + enable_symvers=gnu +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 fi - +rm -f conftest* + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + # this is the suspicious part + CFLAGS='' + fi + rm -f conftest.map + fi + else + # just fail for now + enable_symvers=no + fi fi -# Now that ctype is determined for all possible targets, we can do this... +case $enable_symvers in + no) + LINKER_MAP=config/linker-map.dummy + ;; + gnu) + LINKER_MAP=config/linker-map.gnu + ;; +esac + + + + +if test $enable_symvers != no; then + GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE= + GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#' +else + GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#' + GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE= +fi +echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6 +echo "configure:22245: checking versioning on shared library symbols" >&5 +echo "$ac_t""$enable_symvers" 1>&6 +# Propagate the target-specific source directories through the build chain. +# (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and +# CPULIMITSH [might] use it, and they only get used here.) +OS_INC_SRCDIR=config/${os_include_dir} +ATOMICITY_INC_SRCDIR=config/${ATOMICITYH} +CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH} +# Set up cross-compile flags + if test "$CANADIAN" = yes; then CANADIAN_TRUE= @@ -16106,111 +22314,31 @@ fi rm -f confcache - ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for locale.h""... $ac_c" 1>&6 -echo "configure:16112: checking for locale.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:16122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - - echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:16140: checking for LC_MESSAGES" >&5 -if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -int main() { -return LC_MESSAGES -; return 0; } -EOF -if { (eval echo configure:16152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - ac_cv_val_LC_MESSAGES=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_val_LC_MESSAGES=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6 - if test $ac_cv_val_LC_MESSAGES = yes; then - cat >> confdefs.h <<\EOF -#define HAVE_LC_MESSAGES 1 -EOF - - fi - -else - echo "$ac_t""no" 1>&6 -fi - - - if test "${multilib}" = "yes"; then multilib_arg="--enable-multilib" else multilib_arg= fi - -# Generate the various Makefiles, include files, and scripts. - # Needed so that g++ can find the correct include subdir automatically. INTERFACE=v3 # Export all the install information - +# Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and +# exported correctly in GLIBCPP_CONFIGURE. glibcpp_toolexecdir=no glibcpp_toolexeclibdir=no - -# Export build and source directories. -# These need to be absolute paths, yet at the same time need to -# canonicalize only relative paths, because then amd will not unmount -# drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. -glibcpp_builddir=`pwd` -case $srcdir in -\\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;; -*) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; -esac glibcpp_prefixdir=${prefix} echo $ac_n "checking for interface version number""... $ac_c" 1>&6 -echo "configure:16208: checking for interface version number" >&5 +echo "configure:22336: checking for interface version number" >&5 libstdcxx_interface=$INTERFACE echo "$ac_t""$libstdcxx_interface" 1>&6 # Process the option --with-gxx-include-dir= echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6 -echo "configure:16214: checking for --with-gxx-include-dir" >&5 +echo "configure:22342: checking for --with-gxx-include-dir" >&5 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. if test "${with_gxx_include_dir+set}" = set; then withval="$with_gxx_include_dir" @@ -16234,30 +22362,38 @@ echo "$ac_t""$gxx_include_dir" 1>&6 # Process the option "--enable-version-specific-runtime-libs" echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6 -echo "configure:16238: checking for --enable-version-specific-runtime-libs" >&5 +echo "configure:22366: checking for --enable-version-specific-runtime-libs" >&5 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. if test "${enable_version_specific_runtime_libs+set}" = set; then enableval="$enable_version_specific_runtime_libs" - version_specific_libs=yes -# Need the gcc compiler version to know where to install libraries -# and header files if --enable-version-specific-runtime-libs option -# is selected. -gcc_version_trigger=${srcdir}/../gcc/version.c -gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'` -gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` -gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++ -glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)' -glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)' - + case "$enableval" in + yes) version_specific_libs=yes ;; + no) version_specific_libs=no ;; + *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };; + esac else version_specific_libs=no fi - +# Option set, now we can test it. echo "$ac_t""$version_specific_libs" 1>&6 +if test $version_specific_libs = yes; then + # Need the gcc compiler version to know where to install libraries + # and header files if --enable-version-specific-runtime-libs option + # is selected. + gcc_version_trigger=${srcdir}/../gcc/version.c + gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'` + gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` + if test x"$gxx_include_dir" = x"no"; then + gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++ + fi + glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)' + glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)' + fi + # Default case for install directory for include files. -if test x"$version_specific_libs" = x"no" \ - && test x"$gxx_include_dir" = x"no"; then +if test $version_specific_libs = no && + test $gxx_include_dir = no; then gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface} fi @@ -16275,7 +22411,7 @@ if test x"$glibcpp_toolexecdir" = x"no"; then fi echo $ac_n "checking for install location""... $ac_c" 1>&6 -echo "configure:16279: checking for install location" >&5 +echo "configure:22415: checking for install location" >&5 echo "$ac_t""$gxx_include_dir" 1>&6 @@ -16284,19 +22420,13 @@ echo "$ac_t""$gxx_include_dir" 1>&6 - - # Export all the include and flag information to makefiles. - # Root level of the include sources. - GLIBCPP_INCLUDE_DIR='$(top_srcdir)/include' + # Root level of the build directory include sources. + GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include" - # Can either use include/c or include/c_std to grab "C" headers. This - # variable is set to the include directory currently in use. - # set with C_INCLUDE_DIR in GLIBCPP_ENABLE_CHEADERS - # Passed down for canadian crosses. - if test x"$CANADIAN" = xyes; then + if test x"$CANADIAN" = xyes; then TOPLEVEL_INCLUDES='-I$(includedir)' fi @@ -16304,26 +22434,16 @@ echo "$ac_t""$gxx_include_dir" 1>&6 LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++' - #if GLIBCPP_NEED_LIBIO - LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio' - #else - #LIBIO_INCLUDES='-I$(top_srcdir)/libio' - #endif - - #if GLIBCPP_USE_CSHADOW - # CSHADOW_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR) \ - # -I$(top_blddir)/cshadow' - #else - CSTD_INCLUDES='-I$(GLIBCPP_INCLUDE_DIR)/std -I$(C_INCLUDE_DIR)' - #endif + if test x"$need_libio" = xyes; then + LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio' + + fi # Now, export this to all the little Makefiles.... - - # Optimization flags that are probably a good idea for thrill-seekers. Just @@ -16344,14 +22464,7 @@ else fi -# This should be done by mkincludedir, but hack around it now. -blddir=`pwd` -echo "checking for $blddir/include" - -if test ! -d "$blddir/include"; then - mkdir "$blddir/include" -fi - +# Generate the various Makefiles, include files, and scripts. # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am # and libsupc++/Makefile.am so that multilib installs will end up # installed in the correct place. To work around this not being passed @@ -16458,7 +22571,10 @@ done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" -trap 'rm -fr `echo "Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +trap 'rm -fr `echo "Makefile \ + include/Makefile src/Makefile \ + libmath/Makefile libio/Makefile libsupc++/Makefile \ + po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then @@ -16782,11 +22924,8 @@ fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF @@ -16830,7 +22969,6 @@ done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h -d=include/bits; a='[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]' - rm -f $d/gthr.h $d/gthr-single.h $d/gthr-default.h - sed '/^#/s/\('"$a$a"'*\)/_GLIBCPP_\1/g' <$d/gthr.h-in \ - | sed 's,"gthr-,"bits/gthr-,' >$d/gthr.h - sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-single.h-in \ - | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' >$d/gthr-single.h - sed 's/\(UNUSED\)/_GLIBCPP_\1/g' <$d/gthr-default.h-in \ - | sed 's/\(GCC'"$a"'*_H\)/_GLIBCPP_\1/g' \ - | sed 's/\('"$a"'*WEAK\)/_GLIBCPP_\1/g' >$d/gthr-default.h if test -n "$CONFIG_FILES"; then + LD="${ORIGINAL_LD_FOR_MULTILIBS}" ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in grep '^MULTISUBDIR =' Makefile >> src/Makefile grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile @@ -16869,22 +22999,6 @@ test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 -# Generate bits/c++config.h -# NB: This must be the first generated file as others include it. . . -$srcdir/mkc++config $blddir $srcdir - -# Generate bits/std_limits.h and src/limitsMEMBERS.cc -if test ! -f stamp-limits; then - $srcdir/mknumeric_limits $blddir $srcdir $xcompiling - if test ! -f include/bits/std_limits.h; then - echo "mknumeric_limits failed to execute properly: exiting" - exit 1 - else - touch stamp-limits - fi -fi - - # Sanity checking & User-visible messages. # Checks down here, otherwise they get scrolled off before # the user will notice. @@ -16897,11 +23011,11 @@ if test ! -f stamp-sanity-warned; then touch stamp-sanity-warned echo "" echo "Please make certain that you read the installation information here:" - echo " faster => ${srcdir}/docs/install.html" + echo " faster => ${srcdir}/docs/html/install.html" echo " slower => " echo "" echo "and the configuration information here:" - echo " faster => ${srcdir}/docs/configopts.html" + echo " faster => ${srcdir}/docs/html/configopts.html" echo " slower => " echo "" echo "before proceeding with ${_cv_gnu_make_command}."