From d0a4a06c7b4eaedabfecc526fff7b3dc473ff2ca Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Tue, 13 Jun 2023 14:10:03 -0700 Subject: [PATCH 1/5] First step to having a local toolchain --- scripts/build_toolchain.sh | 51 ++++++++++ toolchain/.gitignore | 3 + toolchain/patches/binutils/00-first.patch | 117 ++++++++++++++++++++++ 3 files changed, 171 insertions(+) create mode 100755 scripts/build_toolchain.sh create mode 100644 toolchain/.gitignore create mode 100644 toolchain/patches/binutils/00-first.patch diff --git a/scripts/build_toolchain.sh b/scripts/build_toolchain.sh new file mode 100755 index 0000000..6403a5d --- /dev/null +++ b/scripts/build_toolchain.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +set -e + +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +echo $DIR + +ARCH="x86_64" +TARGET="$ARCH-pc-acadia" +TOOLCHAIN="$DIR/../toolchain" +PREFIX="$TOOLCHAIN/local" +BUILD="$DIR/../builddbg" +SYSROOT="$DIR/../sysroot" + + +BINUTILS_VERSION="2.40" +BINUTILS_NAME="binutils-$BINUTILS_VERSION" +BINUTILS_PKG="${BINUTILS_NAME}.tar.xz" +BINUTILS_BASE_URL="https://ftp.gnu.org/gnu/binutils" + +mkdir -p "$TOOLCHAIN/srcs" +pushd "$TOOLCHAIN/srcs" + # TODO: Check md5sum + if [ ! -e "$BINUTILS_PKG" ]; then + curl -LO "$BINUTILS_BASE_URL/$BINUTILS_PKG" + fi + + if [ ! -d "$BINUTILS_NAME" ]; then + tar -xJf ${BINUTILS_PKG} + fi + + +popd + +mkdir -p "$TOOLCHAIN/build" +pushd "$TOOLCHAIN/build" + # rm -rf binutils + if [ ! -d binutils ]; then + mkdir -p binutils + pushd binutils + # skip building documentation + export ac_cv_prog_MAKEINFO=true + "$TOOLCHAIN"/srcs/$BINUTILS_NAME/configure --prefix="$PREFIX" --target="$TARGET" --with-sysroot="$SYSROOT" --enable-shared --disable-nls + make MAKEINFO=true -j 8 + make install MAKEINFO=true -j 8 + popd + fi + + +popd diff --git a/toolchain/.gitignore b/toolchain/.gitignore new file mode 100644 index 0000000..ec5cf1c --- /dev/null +++ b/toolchain/.gitignore @@ -0,0 +1,3 @@ +build/ +local/ +srcs/ diff --git a/toolchain/patches/binutils/00-first.patch b/toolchain/patches/binutils/00-first.patch new file mode 100644 index 0000000..ed88cd0 --- /dev/null +++ b/toolchain/patches/binutils/00-first.patch @@ -0,0 +1,117 @@ +diff --git a/bfd/config.bfd b/bfd/config.bfd +index 1b0111fd..16dc49bf 100644 +--- a/bfd/config.bfd ++++ b/bfd/config.bfd +@@ -238,6 +238,11 @@ esac + case "${targ}" in + # START OF targmatch.h + #ifdef BFD64 ++ x86_64-*-acadia*) ++ targ_defvec=x86_64_elf64_vec ++ targ_selvecs=i386_elf32_vec ++ want64=true ++ ;; + aarch64-*-darwin*) + targ_defvec=aarch64_mach_o_vec + targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec" +diff --git a/config.sub b/config.sub +index 888e0fde..469ff17b 100755 +--- a/config.sub ++++ b/config.sub +@@ -1754,7 +1754,7 @@ case $os in + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ +- | fiwix*) ++ | fiwix* | acadia*) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) +diff --git a/config/override.m4 b/config/override.m4 +index 5a1bffe6..fa281d24 100644 +--- a/config/override.m4 ++++ b/config/override.m4 +@@ -29,7 +29,7 @@ m4_copy_force([_AC_PREREQ], [AC_PREREQ]) + + dnl Ensure exactly this Autoconf version is used + m4_ifndef([_GCC_AUTOCONF_VERSION], +- [m4_define([_GCC_AUTOCONF_VERSION], [2.69])]) ++ [m4_define([_GCC_AUTOCONF_VERSION], [2.71])]) + + dnl Test for the exact version when AC_INIT is expanded. + dnl This allows one to update the tree in steps (for testing) +diff --git a/gas/configure.tgt b/gas/configure.tgt +index 765ba736..b8d99f65 100644 +--- a/gas/configure.tgt ++++ b/gas/configure.tgt +@@ -263,6 +263,7 @@ case ${generic_target} in + i386-*-nto-qnx*) fmt=elf ;; + i386-*-*nt*) fmt=coff em=pe ;; + i386-*-rdos*) fmt=elf ;; ++ i386-*-acadia*) fmt=elf ;; + i386-*-darwin*) fmt=macho ;; + + ia16-*-elf*) fmt=elf ;; +diff --git a/ld/Makefile.am b/ld/Makefile.am +index 12b2c3c4..66ff535a 100644 +--- a/ld/Makefile.am ++++ b/ld/Makefile.am +@@ -454,6 +454,7 @@ ALL_64_EMULATION_SOURCES = \ + eelf64tilegx_be.c \ + eelf_mipsel_haiku.c \ + eelf_x86_64.c \ ++ eelf_x86_64_acadia.c \ + eelf_x86_64_cloudabi.c \ + eelf_x86_64_fbsd.c \ + eelf_x86_64_haiku.c \ +@@ -946,6 +947,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): $(GEN_DEPENDS) + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64tilegx_be.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_mipsel_haiku.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64.Pc@am__quote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_acadia.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_cloudabi.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_fbsd.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_haiku.Pc@am__quote@ +diff --git a/ld/Makefile.in b/ld/Makefile.in +index 3d5685d6..20cd5d88 100644 +--- a/ld/Makefile.in ++++ b/ld/Makefile.in +@@ -954,6 +954,7 @@ ALL_64_EMULATION_SOURCES = \ + eelf64tilegx_be.c \ + eelf_mipsel_haiku.c \ + eelf_x86_64.c \ ++ eelf_x86_64_acadia.c \ + eelf_x86_64_cloudabi.c \ + eelf_x86_64_fbsd.c \ + eelf_x86_64_haiku.c \ +@@ -1462,6 +1463,7 @@ distclean-compile: + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_mipsel_haiku.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_s390.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64.Po@am__quote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_acadia.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_cloudabi.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_fbsd.Po@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_haiku.Po@am__quote@ +@@ -2619,7 +2621,7 @@ $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES): $(GEN_DEPENDS) + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64tilegx.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64tilegx_be.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_mipsel_haiku.Pc@am__quote@ +-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64.Pc@am__quote@ ++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_acadia.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_cloudabi.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_fbsd.Pc@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_x86_64_haiku.Pc@am__quote@ +diff --git a/ld/configure.tgt b/ld/configure.tgt +index de04a44b..b1f3f26b 100644 +--- a/ld/configure.tgt ++++ b/ld/configure.tgt +@@ -991,6 +991,9 @@ vax-*-linux-*) targ_emul=elf32vax + ;; + visium-*-elf) targ_emul=elf32visium + ;; ++x86_64-*-acadia*) targ_emul=elf_x86_64_acadia ++ target_extra_emuls="elf_x86_64" ++ ;; + x86_64-*-rdos*) targ_emul=elf64rdos + ;; + x86_64-*-cloudabi*) targ_emul=elf_x86_64_cloudabi -- 2.45.1 From 2de2f1d3645e2564598ede3713c9c89aad8e1413 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Tue, 13 Jun 2023 20:50:09 -0700 Subject: [PATCH 2/5] GCC patch and toolchain (not working) --- scripts/build_toolchain.sh | 67 ++++- toolchain/patches/gcc/00-first.patch | 350 +++++++++++++++++++++++++++ 2 files changed, 415 insertions(+), 2 deletions(-) create mode 100644 toolchain/patches/gcc/00-first.patch diff --git a/scripts/build_toolchain.sh b/scripts/build_toolchain.sh index 6403a5d..0dc4f75 100755 --- a/scripts/build_toolchain.sh +++ b/scripts/build_toolchain.sh @@ -13,12 +13,21 @@ PREFIX="$TOOLCHAIN/local" BUILD="$DIR/../builddbg" SYSROOT="$DIR/../sysroot" - BINUTILS_VERSION="2.40" BINUTILS_NAME="binutils-$BINUTILS_VERSION" BINUTILS_PKG="${BINUTILS_NAME}.tar.xz" BINUTILS_BASE_URL="https://ftp.gnu.org/gnu/binutils" +NEWLIB_VERSION="4.1.0" +NEWLIB_NAME="newlib-$NEWLIB_VERSION" +NEWLIB_PKG="${NEWLIB_NAME}.tar.gz" +NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib" + +GCC_VERSION="13.1.0" +GCC_NAME="gcc-$GCC_VERSION" +GCC_PKG="${GCC_NAME}.tar.xz" +GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc" + mkdir -p "$TOOLCHAIN/srcs" pushd "$TOOLCHAIN/srcs" # TODO: Check md5sum @@ -29,6 +38,22 @@ pushd "$TOOLCHAIN/srcs" if [ ! -d "$BINUTILS_NAME" ]; then tar -xJf ${BINUTILS_PKG} fi + + if [ ! -e $NEWLIB_PKG ]; then + curl -LO $NEWLIB_BASE_URL/$NEWLIB_PKG + fi + + if [ ! -d $NEWLIB_NAME ]; then + tar -xzf $NEWLIB_PKG + fi + + if [ ! -e "$GCC_PKG" ]; then + curl -LO "$GCC_BASE_URL/$GCC_NAME/$GCC_PKG" + fi + + if [ ! -d "$GCC_NAME" ]; then + tar -xJf $GCC_PKG + fi popd @@ -41,11 +66,49 @@ pushd "$TOOLCHAIN/build" pushd binutils # skip building documentation export ac_cv_prog_MAKEINFO=true - "$TOOLCHAIN"/srcs/$BINUTILS_NAME/configure --prefix="$PREFIX" --target="$TARGET" --with-sysroot="$SYSROOT" --enable-shared --disable-nls + "$TOOLCHAIN"/srcs/$BINUTILS_NAME/configure \ + --prefix=$SYSROOT/usr \ + --exec-prefix=$PREFIX \ + --target="$TARGET" \ + --with-sysroot="$SYSROOT" \ + --enable-shared \ + --disable-nls + make MAKEINFO=true -j 8 make install MAKEINFO=true -j 8 popd fi + # rm -rf newlib + if [ ! -d newlib ]; then + mkdir -p newlib + pushd newlib + $TOOLCHAIN/srcs/$NEWLIB_NAME/configure \ + --prefix=$SYSROOT/usr \ + --target=x86_64-elf \ + --with-sysroot=$SYSROOT + make -j 8 + make -j 8 install + popd + fi + + rm -rf gcc + mkdir -p gcc + pushd gcc + $TOOLCHAIN/srcs/$GCC_NAME/configure \ + --prefix=$PREFIX \ + --target=$TARGET \ + --with-sysroot=$SYSROOT \ + --disable-nls \ + --enable-languages=c,c++ + + + make -j 8 all-gcc + make -j 8 all-target-libgcc + + make -j 8 install-gcc install-target-libgcc + + popd + popd diff --git a/toolchain/patches/gcc/00-first.patch b/toolchain/patches/gcc/00-first.patch new file mode 100644 index 0000000..433ce7f --- /dev/null +++ b/toolchain/patches/gcc/00-first.patch @@ -0,0 +1,350 @@ +diff --git a/config.sub b/config.sub +index 38f3d037a..a6298ccb7 100755 +--- a/config.sub ++++ b/config.sub +@@ -203,6 +203,10 @@ case $1 in + # Convert single-component short-hands not valid as part of + # multi-component configurations. + case $field1 in ++ acadia) ++ basic_machine=x86_64-pc ++ os=acadia ++ ;; + 386bsd) + basic_machine=i386-pc + basic_os=bsd +@@ -1749,7 +1753,7 @@ case $os in + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ +- | fiwix* ) ++ | fiwix* | acadia* ) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) +diff --git a/fixincludes/mkfixinc.sh b/fixincludes/mkfixinc.sh +index df90720b7..ae12e48d1 100755 +--- a/fixincludes/mkfixinc.sh ++++ b/fixincludes/mkfixinc.sh +@@ -11,6 +11,7 @@ target=fixinc.sh + + # Check for special fix rules for particular targets + case $machine in ++ *-*-acadia* | \ + i?86-*-cygwin* | \ + i?86-*-mingw32* | \ + x86_64-*-mingw32* | \ +diff --git a/gcc/config.gcc b/gcc/config.gcc +index 6fd159448..34e17e1f5 100644 +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -690,6 +690,13 @@ x86_cpus="generic intel" + + # Common parts for widely ported systems. + case ${target} in ++*-*-acadia*) ++ gas=yes ++ gnu_ld=yes ++ default_use_cxa_atexit=yes ++ target_has_targetm_common=no ++ use_gcc_stdint=provide ++ ;; + *-*-darwin*) + tmake_file="t-darwin " + tm_file="${tm_file} darwin.h" +@@ -1126,6 +1133,9 @@ case ${target} in + esac + + case ${target} in ++x86_64-*-acadia*) ++ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h glibc-stdint.h i386/i386elf.h i386/x86-64.h acadia.h" ++ ;; + aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*) + tm_file="${tm_file} elfos.h newlib-stdint.h" + tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-errata.h aarch64/aarch64-elf-raw.h" +diff --git a/gcc/config/acadia.h b/gcc/config/acadia.h +new file mode 100644 +index 000000000..a5f58313d +--- /dev/null ++++ b/gcc/config/acadia.h +@@ -0,0 +1,25 @@ ++#undef TARGET_ACADIA ++#define TARGET_ACADIA 1 ++ ++#undef LIB_SPEC ++#define LIB_SPEC "-lc" /* link against C standard library */ ++ ++/* Files that are linked before user code. ++ The %s tells GCC to look for these files in the library directory. */ ++#undef STARTFILE_SPEC ++#define STARTFILE_SPEC "crt0.o%s crti.o%s crtbegin.o%s" ++ ++/* Files that are linked after user code. */ ++#undef ENDFILE_SPEC ++#define ENDFILE_SPEC "crtend.o%s crtn.o%s" ++ ++/* Additional predefined macros. */ ++#undef TARGET_ACADIA_CPP_BUILTINS ++#define TARGET_ACADIA_CPP_BUILTINS() \ ++ do { \ ++ builtin_define("__acadia__"); \ ++ builtin_define("__unix__"); \ ++ builtin_assert("system=acadia"); \ ++ builtin_assert("system=unix"); \ ++ builtin_assert("system=posix"); \ ++ } while (0); +diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386 +index b417c7f17..a30a64488 100644 +--- a/gcc/config/i386/t-i386 ++++ b/gcc/config/i386/t-i386 +@@ -50,7 +50,11 @@ i386-options.o: $(srcdir)/config/i386/i386-options.cc + $(COMPILE) $< + $(POSTCOMPILE) + +-i386-builtins.o: $(srcdir)/config/i386/i386-builtins.cc ++i386-common.o: $(srcdir)/common/config/i386/i386-common.cc ++ $(COMPILE) $< ++ $(POSTCOMPILE) ++ ++i386-builtins.o: $(srcdir)/config/i386/i386-builtins.cc + $(COMPILE) $< + $(POSTCOMPILE) + +diff --git a/libgcc/config.host b/libgcc/config.host +index b9975de90..bd766dfa0 100644 +--- a/libgcc/config.host ++++ b/libgcc/config.host +@@ -368,6 +368,10 @@ i[34567]86-*-cygwin* | x86_64-*-cygwin*) + esac + + case ${host} in ++x86_64-*-acadia*) ++ extra_parts="$extra_parts crti.o crtbegin.o crtend.o crtn.o" ++ tmake_file="$tmake_file i386/t-i386 i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" ++ ;; + aarch64*-*-elf | aarch64*-*-rtems*) + extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o" + extra_parts="$extra_parts crtfastmath.o" +diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4 +index b3269cb88..0d2c7b53c 100644 +--- a/libstdc++-v3/crossconfig.m4 ++++ b/libstdc++-v3/crossconfig.m4 +@@ -9,6 +9,12 @@ case "${host}" in + # This is a freestanding configuration; there is nothing to do here. + ;; + ++ *-acadia*) ++ GLIBCXX_CHECK_COMPILER_FEATURES ++ GLIBCXX_CHECK_LINKER_FEATURES ++ GLIBCXX_CHECK_MATH_SUPPORT ++ GLIBCXX_CHECK_STDLIB_SUPPORT ++ ;; + avr*-*-*) + AC_DEFINE(HAVE_ACOSF) + AC_DEFINE(HAVE_ASINF) +diff --git a/lto-plugin/Makefile.in b/lto-plugin/Makefile.in +index cb568e1e0..c91313526 100644 +--- a/lto-plugin/Makefile.in ++++ b/lto-plugin/Makefile.in +@@ -1,7 +1,7 @@ +-# Makefile.in generated by automake 1.15.1 from Makefile.am. ++# Makefile.in generated by automake 1.15 from Makefile.am. + # @configure_input@ + +-# Copyright (C) 1994-2017 Free Software Foundation, Inc. ++# Copyright (C) 1994-2014 Free Software Foundation, Inc. + + # This Makefile.in is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +diff --git a/lto-plugin/aclocal.m4 b/lto-plugin/aclocal.m4 +index f1fc28d4f..58ea724c4 100644 +--- a/lto-plugin/aclocal.m4 ++++ b/lto-plugin/aclocal.m4 +@@ -1,6 +1,6 @@ +-# generated automatically by aclocal 1.15.1 -*- Autoconf -*- ++# generated automatically by aclocal 1.15 -*- Autoconf -*- + +-# Copyright (C) 1996-2017 Free Software Foundation, Inc. ++# Copyright (C) 1996-2014 Free Software Foundation, Inc. + + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to. + If you have problems, you may need to regenerate the build system entirely. + To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +-# Copyright (C) 2002-2017 Free Software Foundation, Inc. ++# Copyright (C) 2002-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], + [am__api_version='1.15' + dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to + dnl require some minimum version. Point them to the right macro. +-m4_if([$1], [1.15.1], [], ++m4_if([$1], [1.15], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl + ]) + +@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) + # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. + # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. + AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +-[AM_AUTOMAKE_VERSION([1.15.1])dnl ++[AM_AUTOMAKE_VERSION([1.15])dnl + m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl + _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + + # AM_AUX_DIR_EXPAND -*- Autoconf -*- + +-# Copyright (C) 2001-2017 Free Software Foundation, Inc. ++# Copyright (C) 2001-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` + + # AM_CONDITIONAL -*- Autoconf -*- + +-# Copyright (C) 1997-2017 Free Software Foundation, Inc. ++# Copyright (C) 1997-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE( + Usually this means the macro was only invoked conditionally.]]) + fi])]) + +-# Copyright (C) 1999-2017 Free Software Foundation, Inc. ++# Copyright (C) 1999-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl + + # Generate code to set up dependency tracking. -*- Autoconf -*- + +-# Copyright (C) 1999-2017 Free Software Foundation, Inc. ++# Copyright (C) 1999-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -408,7 +408,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], + + # Do all the work for Automake. -*- Autoconf -*- + +-# Copyright (C) 1996-2017 Free Software Foundation, Inc. ++# Copyright (C) 1996-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -605,7 +605,7 @@ for _am_header in $config_headers :; do + done + echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +-# Copyright (C) 2001-2017 Free Software Foundation, Inc. ++# Copyright (C) 2001-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -629,7 +629,7 @@ AC_SUBST([install_sh])]) + # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- + # From Jim Meyering + +-# Copyright (C) 1996-2017 Free Software Foundation, Inc. ++# Copyright (C) 1996-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -664,7 +664,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + + # Check to see how 'make' treats includes. -*- Autoconf -*- + +-# Copyright (C) 2001-2017 Free Software Foundation, Inc. ++# Copyright (C) 2001-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -714,7 +714,7 @@ rm -f confinc confmf + + # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +-# Copyright (C) 1997-2017 Free Software Foundation, Inc. ++# Copyright (C) 1997-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -753,7 +753,7 @@ fi + + # Helper functions for option handling. -*- Autoconf -*- + +-# Copyright (C) 2001-2017 Free Software Foundation, Inc. ++# Copyright (C) 2001-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -782,7 +782,7 @@ AC_DEFUN([_AM_SET_OPTIONS], + AC_DEFUN([_AM_IF_OPTION], + [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +-# Copyright (C) 1999-2017 Free Software Foundation, Inc. ++# Copyright (C) 1999-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -829,7 +829,7 @@ AC_LANG_POP([C])]) + # For backward compatibility. + AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +-# Copyright (C) 2001-2017 Free Software Foundation, Inc. ++# Copyright (C) 2001-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -848,7 +848,7 @@ AC_DEFUN([AM_RUN_LOG], + + # Check to make sure that the build environment is sane. -*- Autoconf -*- + +-# Copyright (C) 1996-2017 Free Software Foundation, Inc. ++# Copyright (C) 1996-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -929,7 +929,7 @@ AC_CONFIG_COMMANDS_PRE( + rm -f conftest.file + ]) + +-# Copyright (C) 2009-2017 Free Software Foundation, Inc. ++# Copyright (C) 2009-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -989,7 +989,7 @@ AC_SUBST([AM_BACKSLASH])dnl + _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl + ]) + +-# Copyright (C) 2001-2017 Free Software Foundation, Inc. ++# Copyright (C) 2001-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -1017,7 +1017,7 @@ fi + INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +-# Copyright (C) 2006-2017 Free Software Foundation, Inc. ++# Copyright (C) 2006-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, +@@ -1036,7 +1036,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + + # Check how to create a tarball. -*- Autoconf -*- + +-# Copyright (C) 2004-2017 Free Software Foundation, Inc. ++# Copyright (C) 2004-2014 Free Software Foundation, Inc. + # + # This file is free software; the Free Software Foundation + # gives unlimited permission to copy and/or distribute it, -- 2.45.1 From 43a9b93192e1149d62e104e380a3eada12ce80ce Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Tue, 13 Jun 2023 23:32:01 -0700 Subject: [PATCH 3/5] Fix? toolchain --- scripts/build_toolchain.sh | 8 +++++++- toolchain/patches/binutils/00-first.patch | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/build_toolchain.sh b/scripts/build_toolchain.sh index 0dc4f75..5c5312f 100755 --- a/scripts/build_toolchain.sh +++ b/scripts/build_toolchain.sh @@ -23,7 +23,7 @@ NEWLIB_NAME="newlib-$NEWLIB_VERSION" NEWLIB_PKG="${NEWLIB_NAME}.tar.gz" NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib" -GCC_VERSION="13.1.0" +GCC_VERSION="12.3.0" GCC_NAME="gcc-$GCC_VERSION" GCC_PKG="${GCC_NAME}.tar.xz" GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc" @@ -37,6 +37,9 @@ pushd "$TOOLCHAIN/srcs" if [ ! -d "$BINUTILS_NAME" ]; then tar -xJf ${BINUTILS_PKG} + pushd $BINUTILS_NAME + patch -p1 <$TOOLCHAIN/patches/binutils/00-first.patch + popd fi if [ ! -e $NEWLIB_PKG ]; then @@ -53,6 +56,9 @@ pushd "$TOOLCHAIN/srcs" if [ ! -d "$GCC_NAME" ]; then tar -xJf $GCC_PKG + pushd $GCC_NAME + patch -p1 <$TOOLCHAIN/patches/gcc/00-first.patch + popd fi diff --git a/toolchain/patches/binutils/00-first.patch b/toolchain/patches/binutils/00-first.patch index ed88cd0..f5f19ec 100644 --- a/toolchain/patches/binutils/00-first.patch +++ b/toolchain/patches/binutils/00-first.patch @@ -115,3 +115,10 @@ index de04a44b..b1f3f26b 100644 x86_64-*-rdos*) targ_emul=elf64rdos ;; x86_64-*-cloudabi*) targ_emul=elf_x86_64_cloudabi +diff --git a/ld/emulparams/elf_x86_64_acadia.sh b/ld/emulparams/elf_x86_64_acadia.sh +new file mode 100644 +index 00000000..59e7df71 +--- /dev/null ++++ b/ld/emulparams/elf_x86_64_acadia.sh +@@ -0,0 +1 @@ ++source_sh ${srcdir}/emulparams/elf_x86_64.sh -- 2.45.1 From bd5cd5a0116713100b546b8e74d62f8da02de397 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Tue, 13 Jun 2023 20:17:07 -0700 Subject: [PATCH 4/5] Working? toolchain --- scripts/build_toolchain.sh | 5 +- toolchain/patches/binutils/00-first.patch | 33 +--- toolchain/patches/gcc/00-first.patch | 214 +--------------------- 3 files changed, 15 insertions(+), 237 deletions(-) diff --git a/scripts/build_toolchain.sh b/scripts/build_toolchain.sh index 5c5312f..c3c621f 100755 --- a/scripts/build_toolchain.sh +++ b/scripts/build_toolchain.sh @@ -23,7 +23,7 @@ NEWLIB_NAME="newlib-$NEWLIB_VERSION" NEWLIB_PKG="${NEWLIB_NAME}.tar.gz" NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib" -GCC_VERSION="12.3.0" +GCC_VERSION="13.1.0" GCC_NAME="gcc-$GCC_VERSION" GCC_PKG="${GCC_NAME}.tar.xz" GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc" @@ -73,8 +73,7 @@ pushd "$TOOLCHAIN/build" # skip building documentation export ac_cv_prog_MAKEINFO=true "$TOOLCHAIN"/srcs/$BINUTILS_NAME/configure \ - --prefix=$SYSROOT/usr \ - --exec-prefix=$PREFIX \ + --prefix=$PREFIX \ --target="$TARGET" \ --with-sysroot="$SYSROOT" \ --enable-shared \ diff --git a/toolchain/patches/binutils/00-first.patch b/toolchain/patches/binutils/00-first.patch index f5f19ec..85f498a 100644 --- a/toolchain/patches/binutils/00-first.patch +++ b/toolchain/patches/binutils/00-first.patch @@ -15,31 +15,18 @@ index 1b0111fd..16dc49bf 100644 targ_defvec=aarch64_mach_o_vec targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec" diff --git a/config.sub b/config.sub -index 888e0fde..469ff17b 100755 +index dba16e84..d4b2e9d2 100755 --- a/config.sub +++ b/config.sub -@@ -1754,7 +1754,7 @@ case $os in - | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ - | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ - | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ -- | fiwix*) -+ | fiwix* | acadia*) - ;; - # This one is extra strict with allowed versions - sco3.2v2 | sco3.2v[4-9]* | sco5v6*) -diff --git a/config/override.m4 b/config/override.m4 -index 5a1bffe6..fa281d24 100644 ---- a/config/override.m4 -+++ b/config/override.m4 -@@ -29,7 +29,7 @@ m4_copy_force([_AC_PREREQ], [AC_PREREQ]) - - dnl Ensure exactly this Autoconf version is used - m4_ifndef([_GCC_AUTOCONF_VERSION], -- [m4_define([_GCC_AUTOCONF_VERSION], [2.69])]) -+ [m4_define([_GCC_AUTOCONF_VERSION], [2.71])]) - - dnl Test for the exact version when AC_INIT is expanded. - dnl This allows one to update the tree in steps (for testing) +@@ -1723,7 +1723,7 @@ case $os in + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | acadia* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ diff --git a/gas/configure.tgt b/gas/configure.tgt index 765ba736..b8d99f65 100644 --- a/gas/configure.tgt diff --git a/toolchain/patches/gcc/00-first.patch b/toolchain/patches/gcc/00-first.patch index 433ce7f..0b813b1 100644 --- a/toolchain/patches/gcc/00-first.patch +++ b/toolchain/patches/gcc/00-first.patch @@ -35,10 +35,10 @@ index df90720b7..ae12e48d1 100755 i?86-*-mingw32* | \ x86_64-*-mingw32* | \ diff --git a/gcc/config.gcc b/gcc/config.gcc -index 6fd159448..34e17e1f5 100644 +index 6fd159448..f8b4f29bc 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc -@@ -690,6 +690,13 @@ x86_cpus="generic intel" +@@ -690,6 +690,11 @@ x86_cpus="generic intel" # Common parts for widely ported systems. case ${target} in @@ -46,13 +46,11 @@ index 6fd159448..34e17e1f5 100644 + gas=yes + gnu_ld=yes + default_use_cxa_atexit=yes -+ target_has_targetm_common=no -+ use_gcc_stdint=provide + ;; *-*-darwin*) tmake_file="t-darwin " tm_file="${tm_file} darwin.h" -@@ -1126,6 +1133,9 @@ case ${target} in +@@ -1126,6 +1131,9 @@ case ${target} in esac case ${target} in @@ -142,209 +140,3 @@ index b3269cb88..0d2c7b53c 100644 avr*-*-*) AC_DEFINE(HAVE_ACOSF) AC_DEFINE(HAVE_ASINF) -diff --git a/lto-plugin/Makefile.in b/lto-plugin/Makefile.in -index cb568e1e0..c91313526 100644 ---- a/lto-plugin/Makefile.in -+++ b/lto-plugin/Makefile.in -@@ -1,7 +1,7 @@ --# Makefile.in generated by automake 1.15.1 from Makefile.am. -+# Makefile.in generated by automake 1.15 from Makefile.am. - # @configure_input@ - --# Copyright (C) 1994-2017 Free Software Foundation, Inc. -+# Copyright (C) 1994-2014 Free Software Foundation, Inc. - - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -diff --git a/lto-plugin/aclocal.m4 b/lto-plugin/aclocal.m4 -index f1fc28d4f..58ea724c4 100644 ---- a/lto-plugin/aclocal.m4 -+++ b/lto-plugin/aclocal.m4 -@@ -1,6 +1,6 @@ --# generated automatically by aclocal 1.15.1 -*- Autoconf -*- -+# generated automatically by aclocal 1.15 -*- Autoconf -*- - --# Copyright (C) 1996-2017 Free Software Foundation, Inc. -+# Copyright (C) 1996-2014 Free Software Foundation, Inc. - - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to. - If you have problems, you may need to regenerate the build system entirely. - To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - --# Copyright (C) 2002-2017 Free Software Foundation, Inc. -+# Copyright (C) 2002-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], - [am__api_version='1.15' - dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to - dnl require some minimum version. Point them to the right macro. --m4_if([$1], [1.15.1], [], -+m4_if([$1], [1.15], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl - ]) - -@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) - # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. - # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. - AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], --[AM_AUTOMAKE_VERSION([1.15.1])dnl -+[AM_AUTOMAKE_VERSION([1.15])dnl - m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl - _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - - # AM_AUX_DIR_EXPAND -*- Autoconf -*- - --# Copyright (C) 2001-2017 Free Software Foundation, Inc. -+# Copyright (C) 2001-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` - - # AM_CONDITIONAL -*- Autoconf -*- - --# Copyright (C) 1997-2017 Free Software Foundation, Inc. -+# Copyright (C) 1997-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE( - Usually this means the macro was only invoked conditionally.]]) - fi])]) - --# Copyright (C) 1999-2017 Free Software Foundation, Inc. -+# Copyright (C) 1999-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl - - # Generate code to set up dependency tracking. -*- Autoconf -*- - --# Copyright (C) 1999-2017 Free Software Foundation, Inc. -+# Copyright (C) 1999-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -408,7 +408,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], - - # Do all the work for Automake. -*- Autoconf -*- - --# Copyright (C) 1996-2017 Free Software Foundation, Inc. -+# Copyright (C) 1996-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -605,7 +605,7 @@ for _am_header in $config_headers :; do - done - echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) - --# Copyright (C) 2001-2017 Free Software Foundation, Inc. -+# Copyright (C) 2001-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -629,7 +629,7 @@ AC_SUBST([install_sh])]) - # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- - # From Jim Meyering - --# Copyright (C) 1996-2017 Free Software Foundation, Inc. -+# Copyright (C) 1996-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -664,7 +664,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - - # Check to see how 'make' treats includes. -*- Autoconf -*- - --# Copyright (C) 2001-2017 Free Software Foundation, Inc. -+# Copyright (C) 2001-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -714,7 +714,7 @@ rm -f confinc confmf - - # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - --# Copyright (C) 1997-2017 Free Software Foundation, Inc. -+# Copyright (C) 1997-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -753,7 +753,7 @@ fi - - # Helper functions for option handling. -*- Autoconf -*- - --# Copyright (C) 2001-2017 Free Software Foundation, Inc. -+# Copyright (C) 2001-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -782,7 +782,7 @@ AC_DEFUN([_AM_SET_OPTIONS], - AC_DEFUN([_AM_IF_OPTION], - [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - --# Copyright (C) 1999-2017 Free Software Foundation, Inc. -+# Copyright (C) 1999-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -829,7 +829,7 @@ AC_LANG_POP([C])]) - # For backward compatibility. - AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - --# Copyright (C) 2001-2017 Free Software Foundation, Inc. -+# Copyright (C) 2001-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -848,7 +848,7 @@ AC_DEFUN([AM_RUN_LOG], - - # Check to make sure that the build environment is sane. -*- Autoconf -*- - --# Copyright (C) 1996-2017 Free Software Foundation, Inc. -+# Copyright (C) 1996-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -929,7 +929,7 @@ AC_CONFIG_COMMANDS_PRE( - rm -f conftest.file - ]) - --# Copyright (C) 2009-2017 Free Software Foundation, Inc. -+# Copyright (C) 2009-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -989,7 +989,7 @@ AC_SUBST([AM_BACKSLASH])dnl - _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl - ]) - --# Copyright (C) 2001-2017 Free Software Foundation, Inc. -+# Copyright (C) 2001-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -1017,7 +1017,7 @@ fi - INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - AC_SUBST([INSTALL_STRIP_PROGRAM])]) - --# Copyright (C) 2006-2017 Free Software Foundation, Inc. -+# Copyright (C) 2006-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -@@ -1036,7 +1036,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - - # Check how to create a tarball. -*- Autoconf -*- - --# Copyright (C) 2004-2017 Free Software Foundation, Inc. -+# Copyright (C) 2004-2014 Free Software Foundation, Inc. - # - # This file is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, -- 2.45.1 From a9db73e443f5831e9945a992342e492b313f6531 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Wed, 14 Jun 2023 12:09:23 -0700 Subject: [PATCH 5/5] Working toolchain --- init-dbg.sh | 7 +- scripts/build_toolchain.sh | 42 +- toolchain/patches/gcc/00-first.patch | 7 +- toolchain/patches/gcc/01-libstdc++.patch | 5984 ++++++++++++++++++++++ 4 files changed, 6005 insertions(+), 35 deletions(-) create mode 100644 toolchain/patches/gcc/01-libstdc++.patch diff --git a/init-dbg.sh b/init-dbg.sh index e779a94..448c033 100755 --- a/init-dbg.sh +++ b/init-dbg.sh @@ -1,2 +1,7 @@ #! /bin/bash -cmake -B builddbg/ -G Ninja -D CMAKE_CXX_COMPILER=x86_64-elf-gcc -D CMAKE_ASM-ATT_COMPILER=x86_64-elf-gcc -D CMAKE_AR=`which x86_64-elf-ar` -D CMAKE_BUILD_TYPE=Debug + +CWD="$(pwd)" +BIN=$CWD/toolchain/local/bin +GCC=$BIN/x86_64-pc-acadia-gcc +AR=$BIN/x86_64-pc-acadia-ar +cmake -B builddbg/ -G Ninja -D CMAKE_CXX_COMPILER=${GCC} -D CMAKE_ASM-ATT_COMPILER=${GCC} -D CMAKE_AR=${AR} -D CMAKE_BUILD_TYPE=Debug diff --git a/scripts/build_toolchain.sh b/scripts/build_toolchain.sh index c3c621f..1515bab 100755 --- a/scripts/build_toolchain.sh +++ b/scripts/build_toolchain.sh @@ -18,11 +18,6 @@ BINUTILS_NAME="binutils-$BINUTILS_VERSION" BINUTILS_PKG="${BINUTILS_NAME}.tar.xz" BINUTILS_BASE_URL="https://ftp.gnu.org/gnu/binutils" -NEWLIB_VERSION="4.1.0" -NEWLIB_NAME="newlib-$NEWLIB_VERSION" -NEWLIB_PKG="${NEWLIB_NAME}.tar.gz" -NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib" - GCC_VERSION="13.1.0" GCC_NAME="gcc-$GCC_VERSION" GCC_PKG="${GCC_NAME}.tar.xz" @@ -38,18 +33,14 @@ pushd "$TOOLCHAIN/srcs" if [ ! -d "$BINUTILS_NAME" ]; then tar -xJf ${BINUTILS_PKG} pushd $BINUTILS_NAME + # Set up a baseline to make it easier to create patches in the future. + git init + git add . + git commit -m "base" patch -p1 <$TOOLCHAIN/patches/binutils/00-first.patch popd fi - if [ ! -e $NEWLIB_PKG ]; then - curl -LO $NEWLIB_BASE_URL/$NEWLIB_PKG - fi - - if [ ! -d $NEWLIB_NAME ]; then - tar -xzf $NEWLIB_PKG - fi - if [ ! -e "$GCC_PKG" ]; then curl -LO "$GCC_BASE_URL/$GCC_NAME/$GCC_PKG" fi @@ -57,7 +48,12 @@ pushd "$TOOLCHAIN/srcs" if [ ! -d "$GCC_NAME" ]; then tar -xJf $GCC_PKG pushd $GCC_NAME + # Set up a baseline to make it easier to create patches in the future. + git init + git add . + git commit -m "base" patch -p1 <$TOOLCHAIN/patches/gcc/00-first.patch + patch -p1 <$TOOLCHAIN/patches/gcc/01-libstdc++.patch popd fi @@ -66,8 +62,7 @@ popd mkdir -p "$TOOLCHAIN/build" pushd "$TOOLCHAIN/build" - # rm -rf binutils - if [ ! -d binutils ]; then + rm -rf binutils mkdir -p binutils pushd binutils # skip building documentation @@ -82,20 +77,6 @@ pushd "$TOOLCHAIN/build" make MAKEINFO=true -j 8 make install MAKEINFO=true -j 8 popd - fi - - # rm -rf newlib - if [ ! -d newlib ]; then - mkdir -p newlib - pushd newlib - $TOOLCHAIN/srcs/$NEWLIB_NAME/configure \ - --prefix=$SYSROOT/usr \ - --target=x86_64-elf \ - --with-sysroot=$SYSROOT - make -j 8 - make -j 8 install - popd - fi rm -rf gcc mkdir -p gcc @@ -104,6 +85,7 @@ pushd "$TOOLCHAIN/build" --prefix=$PREFIX \ --target=$TARGET \ --with-sysroot=$SYSROOT \ + --with-newlib \ --disable-nls \ --enable-languages=c,c++ @@ -112,8 +94,6 @@ pushd "$TOOLCHAIN/build" make -j 8 all-target-libgcc make -j 8 install-gcc install-target-libgcc - popd - popd diff --git a/toolchain/patches/gcc/00-first.patch b/toolchain/patches/gcc/00-first.patch index 0b813b1..a0a21c9 100644 --- a/toolchain/patches/gcc/00-first.patch +++ b/toolchain/patches/gcc/00-first.patch @@ -35,10 +35,10 @@ index df90720b7..ae12e48d1 100755 i?86-*-mingw32* | \ x86_64-*-mingw32* | \ diff --git a/gcc/config.gcc b/gcc/config.gcc -index 6fd159448..f8b4f29bc 100644 +index 6fd159448..e2fb4b52c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc -@@ -690,6 +690,11 @@ x86_cpus="generic intel" +@@ -690,6 +690,12 @@ x86_cpus="generic intel" # Common parts for widely ported systems. case ${target} in @@ -46,11 +46,12 @@ index 6fd159448..f8b4f29bc 100644 + gas=yes + gnu_ld=yes + default_use_cxa_atexit=yes ++ use_gcc_stdint=provide + ;; *-*-darwin*) tmake_file="t-darwin " tm_file="${tm_file} darwin.h" -@@ -1126,6 +1131,9 @@ case ${target} in +@@ -1126,6 +1132,9 @@ case ${target} in esac case ${target} in diff --git a/toolchain/patches/gcc/01-libstdc++.patch b/toolchain/patches/gcc/01-libstdc++.patch new file mode 100644 index 0000000..dc74621 --- /dev/null +++ b/toolchain/patches/gcc/01-libstdc++.patch @@ -0,0 +1,5984 @@ +diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure +index 68ee94c9e..a7504d38b 100755 +--- a/libstdc++-v3/configure ++++ b/libstdc++-v3/configure +@@ -29295,6 +29295,5979 @@ case "${host}" in + # This is a freestanding configuration; there is nothing to do here. + ;; + ++ *-acadia*) ++ ++ # All these tests are for C++; save the language and the compiler flags. ++ # The CXXFLAGS thing is suspicious, but based on similar bits previously ++ # found in GLIBCXX_CONFIGURE. ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ ac_test_CXXFLAGS="${CXXFLAGS+set}" ++ ac_save_CXXFLAGS="$CXXFLAGS" ++ ++ # Check for -ffunction-sections -fdata-sections ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5 ++$as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; } ++ CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections' ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++int foo; void bar() { }; ++int ++main () ++{ ++ ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ ac_fdsections=yes ++else ++ ac_fdsections=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ if test "$ac_test_CXXFLAGS" = set; then ++ CXXFLAGS="$ac_save_CXXFLAGS" ++ else ++ # this is the suspicious part ++ CXXFLAGS='' ++ fi ++ if test x"$ac_fdsections" = x"yes"; then ++ SECTION_FLAGS='-ffunction-sections -fdata-sections' ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 ++$as_echo "$ac_fdsections" >&6; } ++ ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++ ++ ++ # If we're not using GNU ld, then there's no point in even trying these ++ # tests. Check for that first. We should have already tested for gld ++ # by now (in libtool), but require it now just to be safe... ++ test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' ++ test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' ++ ++ ++ ++ # The name set by libtool depends on the version of libtool. Shame on us ++ # for depending on an impl detail, but c'est la vie. Older versions used ++ # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on ++ # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually ++ # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't ++ # set (hence we're using an older libtool), then set it. ++ if test x${with_gnu_ld+set} != xset; then ++ if test x${ac_cv_prog_gnu_ld+set} != xset; then ++ # We got through "ac_require(ac_prog_ld)" and still not set? Huh? ++ with_gnu_ld=no ++ else ++ with_gnu_ld=$ac_cv_prog_gnu_ld ++ fi ++ fi ++ ++ # Start by getting the version number. I think the libtool test already ++ # does some of this, but throws away the result. ++ glibcxx_ld_is_gold=no ++ glibcxx_ld_is_mold=no ++ if test x"$with_gnu_ld" = x"yes"; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5 ++$as_echo_n "checking for ld version... " >&6; } ++ ++ if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then ++ glibcxx_ld_is_gold=yes ++ elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then ++ glibcxx_ld_is_mold=yes ++ fi ++ ldver=`$LD --version 2>/dev/null | ++ sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'` ++ ++ glibcxx_gnu_ld_version=`echo $ldver | \ ++ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5 ++$as_echo "$glibcxx_gnu_ld_version" >&6; } ++ fi ++ ++ # Set --gc-sections. ++ glibcxx_have_gc_sections=no ++ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then ++ if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then ++ glibcxx_have_gc_sections=yes ++ fi ++ else ++ glibcxx_gcsections_min_ld=21602 ++ if test x"$with_gnu_ld" = x"yes" && ++ test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then ++ glibcxx_have_gc_sections=yes ++ fi ++ fi ++ if test "$glibcxx_have_gc_sections" = "yes"; then ++ # Sufficiently young GNU ld it is! Joy and bunny rabbits! ++ # NB: This flag only works reliably after 2.16.1. Configure tests ++ # for this are difficult, so hard wire a value that should work. ++ ++ ac_test_CFLAGS="${CFLAGS+set}" ++ ac_save_CFLAGS="$CFLAGS" ++ CFLAGS='-Wl,--gc-sections' ++ ++ # Check for -Wl,--gc-sections ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 ++$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } ++ if test x$gcc_no_link = xyes; then ++ as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 ++fi ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ int one(void) { return 1; } ++ int two(void) { return 2; } ++ ++int ++main () ++{ ++ two(); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ac_gcsections=yes ++else ++ ac_gcsections=no ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++ if test "$ac_gcsections" = "yes"; then ++ rm -f conftest.c ++ touch conftest.c ++ if $CC -c conftest.c; then ++ if $LD --gc-sections -o conftest conftest.o 2>&1 | \ ++ grep "Warning: gc-sections option ignored" > /dev/null; then ++ ac_gcsections=no ++ fi ++ fi ++ rm -f conftest.c conftest.o conftest ++ fi ++ if test "$ac_gcsections" = "yes"; then ++ SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5 ++$as_echo "$ac_gcsections" >&6; } ++ ++ if test "$ac_test_CFLAGS" = set; then ++ CFLAGS="$ac_save_CFLAGS" ++ else ++ # this is the suspicious part ++ CFLAGS='' ++ fi ++ fi ++ ++ # Set -z,relro. ++ # Note this is only for shared objects. ++ ac_ld_relro=no ++ if test x"$with_gnu_ld" = x"yes"; then ++ # cygwin and mingw uses PE, which has no ELF relro support, ++ # multi target ld may confuse configure machinery ++ case "$host" in ++ *-*-cygwin*) ++ ;; ++ *-*-mingw*) ++ ;; ++ *) ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5 ++$as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; } ++ cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"` ++ if test -n "$cxx_z_relo"; then ++ OPT_LDFLAGS="-Wl,-z,relro" ++ ac_ld_relro=yes ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5 ++$as_echo "$ac_ld_relro" >&6; } ++ esac ++ fi ++ ++ # Set linker optimization flags. ++ if test x"$with_gnu_ld" = x"yes"; then ++ OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" ++ fi ++ ++ ++ ++ ++ ++ ac_test_CXXFLAGS="${CXXFLAGS+set}" ++ ac_save_CXXFLAGS="$CXXFLAGS" ++ CXXFLAGS='-fno-builtin -D_GNU_SOURCE' ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 ++$as_echo_n "checking for sin in -lm... " >&6; } ++if ${ac_cv_lib_m_sin+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lm $LIBS" ++if test x$gcc_no_link = xyes; then ++ as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 ++fi ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char sin (); ++int ++main () ++{ ++return sin (); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ac_cv_lib_m_sin=yes ++else ++ ac_cv_lib_m_sin=no ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 ++$as_echo "$ac_cv_lib_m_sin" >&6; } ++if test "x$ac_cv_lib_m_sin" = xyes; then : ++ libm="-lm" ++fi ++ ++ ac_save_LIBS="$LIBS" ++ LIBS="$LIBS $libm" ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5 ++$as_echo_n "checking for isinf declaration... " >&6; } ++ if test x${glibcxx_cv_func_isinf_use+set} != xset; then ++ if ${glibcxx_cv_func_isinf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ isinf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_isinf_use=yes ++else ++ glibcxx_cv_func_isinf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5 ++$as_echo "$glibcxx_cv_func_isinf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_isinf_use = x"yes"; then ++ for ac_func in isinf ++do : ++ ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf" ++if test "x$ac_cv_func_isinf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ISINF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5 ++$as_echo_n "checking for _isinf declaration... " >&6; } ++ if test x${glibcxx_cv_func__isinf_use+set} != xset; then ++ if ${glibcxx_cv_func__isinf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _isinf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__isinf_use=yes ++else ++ glibcxx_cv_func__isinf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5 ++$as_echo "$glibcxx_cv_func__isinf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__isinf_use = x"yes"; then ++ for ac_func in _isinf ++do : ++ ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf" ++if test "x$ac_cv_func__isinf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ISINF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5 ++$as_echo_n "checking for isnan declaration... " >&6; } ++ if test x${glibcxx_cv_func_isnan_use+set} != xset; then ++ if ${glibcxx_cv_func_isnan_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ isnan(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_isnan_use=yes ++else ++ glibcxx_cv_func_isnan_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5 ++$as_echo "$glibcxx_cv_func_isnan_use" >&6; } ++ ++ if test x$glibcxx_cv_func_isnan_use = x"yes"; then ++ for ac_func in isnan ++do : ++ ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan" ++if test "x$ac_cv_func_isnan" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ISNAN 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5 ++$as_echo_n "checking for _isnan declaration... " >&6; } ++ if test x${glibcxx_cv_func__isnan_use+set} != xset; then ++ if ${glibcxx_cv_func__isnan_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _isnan(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__isnan_use=yes ++else ++ glibcxx_cv_func__isnan_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5 ++$as_echo "$glibcxx_cv_func__isnan_use" >&6; } ++ ++ if test x$glibcxx_cv_func__isnan_use = x"yes"; then ++ for ac_func in _isnan ++do : ++ ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan" ++if test "x$ac_cv_func__isnan" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ISNAN 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5 ++$as_echo_n "checking for finite declaration... " >&6; } ++ if test x${glibcxx_cv_func_finite_use+set} != xset; then ++ if ${glibcxx_cv_func_finite_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ finite(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_finite_use=yes ++else ++ glibcxx_cv_func_finite_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5 ++$as_echo "$glibcxx_cv_func_finite_use" >&6; } ++ ++ if test x$glibcxx_cv_func_finite_use = x"yes"; then ++ for ac_func in finite ++do : ++ ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" ++if test "x$ac_cv_func_finite" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FINITE 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5 ++$as_echo_n "checking for _finite declaration... " >&6; } ++ if test x${glibcxx_cv_func__finite_use+set} != xset; then ++ if ${glibcxx_cv_func__finite_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _finite(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__finite_use=yes ++else ++ glibcxx_cv_func__finite_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5 ++$as_echo "$glibcxx_cv_func__finite_use" >&6; } ++ ++ if test x$glibcxx_cv_func__finite_use = x"yes"; then ++ for ac_func in _finite ++do : ++ ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite" ++if test "x$ac_cv_func__finite" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FINITE 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5 ++$as_echo_n "checking for sincos declaration... " >&6; } ++ if test x${glibcxx_cv_func_sincos_use+set} != xset; then ++ if ${glibcxx_cv_func_sincos_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ sincos(0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_sincos_use=yes ++else ++ glibcxx_cv_func_sincos_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5 ++$as_echo "$glibcxx_cv_func_sincos_use" >&6; } ++ ++ if test x$glibcxx_cv_func_sincos_use = x"yes"; then ++ for ac_func in sincos ++do : ++ ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos" ++if test "x$ac_cv_func_sincos" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_SINCOS 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5 ++$as_echo_n "checking for _sincos declaration... " >&6; } ++ if test x${glibcxx_cv_func__sincos_use+set} != xset; then ++ if ${glibcxx_cv_func__sincos_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _sincos(0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__sincos_use=yes ++else ++ glibcxx_cv_func__sincos_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5 ++$as_echo "$glibcxx_cv_func__sincos_use" >&6; } ++ ++ if test x$glibcxx_cv_func__sincos_use = x"yes"; then ++ for ac_func in _sincos ++do : ++ ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos" ++if test "x$ac_cv_func__sincos" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__SINCOS 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5 ++$as_echo_n "checking for fpclass declaration... " >&6; } ++ if test x${glibcxx_cv_func_fpclass_use+set} != xset; then ++ if ${glibcxx_cv_func_fpclass_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ fpclass(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_fpclass_use=yes ++else ++ glibcxx_cv_func_fpclass_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5 ++$as_echo "$glibcxx_cv_func_fpclass_use" >&6; } ++ ++ if test x$glibcxx_cv_func_fpclass_use = x"yes"; then ++ for ac_func in fpclass ++do : ++ ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass" ++if test "x$ac_cv_func_fpclass" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FPCLASS 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5 ++$as_echo_n "checking for _fpclass declaration... " >&6; } ++ if test x${glibcxx_cv_func__fpclass_use+set} != xset; then ++ if ${glibcxx_cv_func__fpclass_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _fpclass(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__fpclass_use=yes ++else ++ glibcxx_cv_func__fpclass_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5 ++$as_echo "$glibcxx_cv_func__fpclass_use" >&6; } ++ ++ if test x$glibcxx_cv_func__fpclass_use = x"yes"; then ++ for ac_func in _fpclass ++do : ++ ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass" ++if test "x$ac_cv_func__fpclass" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FPCLASS 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5 ++$as_echo_n "checking for qfpclass declaration... " >&6; } ++ if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then ++ if ${glibcxx_cv_func_qfpclass_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ qfpclass(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_qfpclass_use=yes ++else ++ glibcxx_cv_func_qfpclass_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5 ++$as_echo "$glibcxx_cv_func_qfpclass_use" >&6; } ++ ++ if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then ++ for ac_func in qfpclass ++do : ++ ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass" ++if test "x$ac_cv_func_qfpclass" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_QFPCLASS 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5 ++$as_echo_n "checking for _qfpclass declaration... " >&6; } ++ if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then ++ if ${glibcxx_cv_func__qfpclass_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _qfpclass(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__qfpclass_use=yes ++else ++ glibcxx_cv_func__qfpclass_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5 ++$as_echo "$glibcxx_cv_func__qfpclass_use" >&6; } ++ ++ if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then ++ for ac_func in _qfpclass ++do : ++ ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass" ++if test "x$ac_cv_func__qfpclass" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__QFPCLASS 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5 ++$as_echo_n "checking for hypot declaration... " >&6; } ++ if test x${glibcxx_cv_func_hypot_use+set} != xset; then ++ if ${glibcxx_cv_func_hypot_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ hypot(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_hypot_use=yes ++else ++ glibcxx_cv_func_hypot_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5 ++$as_echo "$glibcxx_cv_func_hypot_use" >&6; } ++ ++ if test x$glibcxx_cv_func_hypot_use = x"yes"; then ++ for ac_func in hypot ++do : ++ ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" ++if test "x$ac_cv_func_hypot" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_HYPOT 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5 ++$as_echo_n "checking for _hypot declaration... " >&6; } ++ if test x${glibcxx_cv_func__hypot_use+set} != xset; then ++ if ${glibcxx_cv_func__hypot_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _hypot(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__hypot_use=yes ++else ++ glibcxx_cv_func__hypot_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5 ++$as_echo "$glibcxx_cv_func__hypot_use" >&6; } ++ ++ if test x$glibcxx_cv_func__hypot_use = x"yes"; then ++ for ac_func in _hypot ++do : ++ ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot" ++if test "x$ac_cv_func__hypot" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__HYPOT 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5 ++$as_echo_n "checking for float trig functions... " >&6; } ++ if ${glibcxx_cv_func_float_trig_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_float_trig_use=yes ++else ++ glibcxx_cv_func_float_trig_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5 ++$as_echo "$glibcxx_cv_func_float_trig_use" >&6; } ++ if test x$glibcxx_cv_func_float_trig_use = x"yes"; then ++ for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5 ++$as_echo_n "checking for _float trig functions... " >&6; } ++ if ${glibcxx_cv_func__float_trig_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__float_trig_use=yes ++else ++ glibcxx_cv_func__float_trig_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5 ++$as_echo "$glibcxx_cv_func__float_trig_use" >&6; } ++ if test x$glibcxx_cv_func__float_trig_use = x"yes"; then ++ for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5 ++$as_echo_n "checking for float round functions... " >&6; } ++ if ${glibcxx_cv_func_float_round_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ceilf (0); floorf (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_float_round_use=yes ++else ++ glibcxx_cv_func_float_round_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5 ++$as_echo "$glibcxx_cv_func_float_round_use" >&6; } ++ if test x$glibcxx_cv_func_float_round_use = x"yes"; then ++ for ac_func in ceilf floorf ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5 ++$as_echo_n "checking for _float round functions... " >&6; } ++ if ${glibcxx_cv_func__float_round_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++_ceilf (0); _floorf (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__float_round_use=yes ++else ++ glibcxx_cv_func__float_round_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5 ++$as_echo "$glibcxx_cv_func__float_round_use" >&6; } ++ if test x$glibcxx_cv_func__float_round_use = x"yes"; then ++ for ac_func in _ceilf _floorf ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5 ++$as_echo_n "checking for expf declaration... " >&6; } ++ if test x${glibcxx_cv_func_expf_use+set} != xset; then ++ if ${glibcxx_cv_func_expf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ expf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_expf_use=yes ++else ++ glibcxx_cv_func_expf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5 ++$as_echo "$glibcxx_cv_func_expf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_expf_use = x"yes"; then ++ for ac_func in expf ++do : ++ ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf" ++if test "x$ac_cv_func_expf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_EXPF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5 ++$as_echo_n "checking for _expf declaration... " >&6; } ++ if test x${glibcxx_cv_func__expf_use+set} != xset; then ++ if ${glibcxx_cv_func__expf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _expf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__expf_use=yes ++else ++ glibcxx_cv_func__expf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5 ++$as_echo "$glibcxx_cv_func__expf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__expf_use = x"yes"; then ++ for ac_func in _expf ++do : ++ ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf" ++if test "x$ac_cv_func__expf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__EXPF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5 ++$as_echo_n "checking for isnanf declaration... " >&6; } ++ if test x${glibcxx_cv_func_isnanf_use+set} != xset; then ++ if ${glibcxx_cv_func_isnanf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ isnanf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_isnanf_use=yes ++else ++ glibcxx_cv_func_isnanf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5 ++$as_echo "$glibcxx_cv_func_isnanf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_isnanf_use = x"yes"; then ++ for ac_func in isnanf ++do : ++ ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf" ++if test "x$ac_cv_func_isnanf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ISNANF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5 ++$as_echo_n "checking for _isnanf declaration... " >&6; } ++ if test x${glibcxx_cv_func__isnanf_use+set} != xset; then ++ if ${glibcxx_cv_func__isnanf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _isnanf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__isnanf_use=yes ++else ++ glibcxx_cv_func__isnanf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5 ++$as_echo "$glibcxx_cv_func__isnanf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__isnanf_use = x"yes"; then ++ for ac_func in _isnanf ++do : ++ ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf" ++if test "x$ac_cv_func__isnanf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ISNANF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5 ++$as_echo_n "checking for isinff declaration... " >&6; } ++ if test x${glibcxx_cv_func_isinff_use+set} != xset; then ++ if ${glibcxx_cv_func_isinff_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ isinff(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_isinff_use=yes ++else ++ glibcxx_cv_func_isinff_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5 ++$as_echo "$glibcxx_cv_func_isinff_use" >&6; } ++ ++ if test x$glibcxx_cv_func_isinff_use = x"yes"; then ++ for ac_func in isinff ++do : ++ ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff" ++if test "x$ac_cv_func_isinff" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ISINFF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5 ++$as_echo_n "checking for _isinff declaration... " >&6; } ++ if test x${glibcxx_cv_func__isinff_use+set} != xset; then ++ if ${glibcxx_cv_func__isinff_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _isinff(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__isinff_use=yes ++else ++ glibcxx_cv_func__isinff_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5 ++$as_echo "$glibcxx_cv_func__isinff_use" >&6; } ++ ++ if test x$glibcxx_cv_func__isinff_use = x"yes"; then ++ for ac_func in _isinff ++do : ++ ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff" ++if test "x$ac_cv_func__isinff" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ISINFF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5 ++$as_echo_n "checking for atan2f declaration... " >&6; } ++ if test x${glibcxx_cv_func_atan2f_use+set} != xset; then ++ if ${glibcxx_cv_func_atan2f_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ atan2f(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_atan2f_use=yes ++else ++ glibcxx_cv_func_atan2f_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5 ++$as_echo "$glibcxx_cv_func_atan2f_use" >&6; } ++ ++ if test x$glibcxx_cv_func_atan2f_use = x"yes"; then ++ for ac_func in atan2f ++do : ++ ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f" ++if test "x$ac_cv_func_atan2f" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ATAN2F 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5 ++$as_echo_n "checking for _atan2f declaration... " >&6; } ++ if test x${glibcxx_cv_func__atan2f_use+set} != xset; then ++ if ${glibcxx_cv_func__atan2f_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _atan2f(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__atan2f_use=yes ++else ++ glibcxx_cv_func__atan2f_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5 ++$as_echo "$glibcxx_cv_func__atan2f_use" >&6; } ++ ++ if test x$glibcxx_cv_func__atan2f_use = x"yes"; then ++ for ac_func in _atan2f ++do : ++ ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f" ++if test "x$ac_cv_func__atan2f" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ATAN2F 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5 ++$as_echo_n "checking for fabsf declaration... " >&6; } ++ if test x${glibcxx_cv_func_fabsf_use+set} != xset; then ++ if ${glibcxx_cv_func_fabsf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ fabsf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_fabsf_use=yes ++else ++ glibcxx_cv_func_fabsf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5 ++$as_echo "$glibcxx_cv_func_fabsf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_fabsf_use = x"yes"; then ++ for ac_func in fabsf ++do : ++ ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf" ++if test "x$ac_cv_func_fabsf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FABSF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5 ++$as_echo_n "checking for _fabsf declaration... " >&6; } ++ if test x${glibcxx_cv_func__fabsf_use+set} != xset; then ++ if ${glibcxx_cv_func__fabsf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _fabsf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__fabsf_use=yes ++else ++ glibcxx_cv_func__fabsf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5 ++$as_echo "$glibcxx_cv_func__fabsf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__fabsf_use = x"yes"; then ++ for ac_func in _fabsf ++do : ++ ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf" ++if test "x$ac_cv_func__fabsf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FABSF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5 ++$as_echo_n "checking for fmodf declaration... " >&6; } ++ if test x${glibcxx_cv_func_fmodf_use+set} != xset; then ++ if ${glibcxx_cv_func_fmodf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ fmodf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_fmodf_use=yes ++else ++ glibcxx_cv_func_fmodf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5 ++$as_echo "$glibcxx_cv_func_fmodf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_fmodf_use = x"yes"; then ++ for ac_func in fmodf ++do : ++ ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf" ++if test "x$ac_cv_func_fmodf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FMODF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5 ++$as_echo_n "checking for _fmodf declaration... " >&6; } ++ if test x${glibcxx_cv_func__fmodf_use+set} != xset; then ++ if ${glibcxx_cv_func__fmodf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _fmodf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__fmodf_use=yes ++else ++ glibcxx_cv_func__fmodf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5 ++$as_echo "$glibcxx_cv_func__fmodf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__fmodf_use = x"yes"; then ++ for ac_func in _fmodf ++do : ++ ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf" ++if test "x$ac_cv_func__fmodf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FMODF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5 ++$as_echo_n "checking for frexpf declaration... " >&6; } ++ if test x${glibcxx_cv_func_frexpf_use+set} != xset; then ++ if ${glibcxx_cv_func_frexpf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ frexpf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_frexpf_use=yes ++else ++ glibcxx_cv_func_frexpf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5 ++$as_echo "$glibcxx_cv_func_frexpf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_frexpf_use = x"yes"; then ++ for ac_func in frexpf ++do : ++ ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf" ++if test "x$ac_cv_func_frexpf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FREXPF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5 ++$as_echo_n "checking for _frexpf declaration... " >&6; } ++ if test x${glibcxx_cv_func__frexpf_use+set} != xset; then ++ if ${glibcxx_cv_func__frexpf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _frexpf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__frexpf_use=yes ++else ++ glibcxx_cv_func__frexpf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5 ++$as_echo "$glibcxx_cv_func__frexpf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__frexpf_use = x"yes"; then ++ for ac_func in _frexpf ++do : ++ ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf" ++if test "x$ac_cv_func__frexpf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FREXPF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5 ++$as_echo_n "checking for hypotf declaration... " >&6; } ++ if test x${glibcxx_cv_func_hypotf_use+set} != xset; then ++ if ${glibcxx_cv_func_hypotf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ hypotf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_hypotf_use=yes ++else ++ glibcxx_cv_func_hypotf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5 ++$as_echo "$glibcxx_cv_func_hypotf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_hypotf_use = x"yes"; then ++ for ac_func in hypotf ++do : ++ ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf" ++if test "x$ac_cv_func_hypotf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_HYPOTF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5 ++$as_echo_n "checking for _hypotf declaration... " >&6; } ++ if test x${glibcxx_cv_func__hypotf_use+set} != xset; then ++ if ${glibcxx_cv_func__hypotf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _hypotf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__hypotf_use=yes ++else ++ glibcxx_cv_func__hypotf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5 ++$as_echo "$glibcxx_cv_func__hypotf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__hypotf_use = x"yes"; then ++ for ac_func in _hypotf ++do : ++ ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf" ++if test "x$ac_cv_func__hypotf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__HYPOTF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5 ++$as_echo_n "checking for ldexpf declaration... " >&6; } ++ if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then ++ if ${glibcxx_cv_func_ldexpf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ ldexpf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_ldexpf_use=yes ++else ++ glibcxx_cv_func_ldexpf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5 ++$as_echo "$glibcxx_cv_func_ldexpf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then ++ for ac_func in ldexpf ++do : ++ ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf" ++if test "x$ac_cv_func_ldexpf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_LDEXPF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5 ++$as_echo_n "checking for _ldexpf declaration... " >&6; } ++ if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then ++ if ${glibcxx_cv_func__ldexpf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _ldexpf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__ldexpf_use=yes ++else ++ glibcxx_cv_func__ldexpf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5 ++$as_echo "$glibcxx_cv_func__ldexpf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then ++ for ac_func in _ldexpf ++do : ++ ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf" ++if test "x$ac_cv_func__ldexpf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__LDEXPF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5 ++$as_echo_n "checking for logf declaration... " >&6; } ++ if test x${glibcxx_cv_func_logf_use+set} != xset; then ++ if ${glibcxx_cv_func_logf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ logf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_logf_use=yes ++else ++ glibcxx_cv_func_logf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5 ++$as_echo "$glibcxx_cv_func_logf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_logf_use = x"yes"; then ++ for ac_func in logf ++do : ++ ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf" ++if test "x$ac_cv_func_logf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_LOGF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5 ++$as_echo_n "checking for _logf declaration... " >&6; } ++ if test x${glibcxx_cv_func__logf_use+set} != xset; then ++ if ${glibcxx_cv_func__logf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _logf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__logf_use=yes ++else ++ glibcxx_cv_func__logf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5 ++$as_echo "$glibcxx_cv_func__logf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__logf_use = x"yes"; then ++ for ac_func in _logf ++do : ++ ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf" ++if test "x$ac_cv_func__logf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__LOGF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5 ++$as_echo_n "checking for log10f declaration... " >&6; } ++ if test x${glibcxx_cv_func_log10f_use+set} != xset; then ++ if ${glibcxx_cv_func_log10f_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ log10f(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_log10f_use=yes ++else ++ glibcxx_cv_func_log10f_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5 ++$as_echo "$glibcxx_cv_func_log10f_use" >&6; } ++ ++ if test x$glibcxx_cv_func_log10f_use = x"yes"; then ++ for ac_func in log10f ++do : ++ ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f" ++if test "x$ac_cv_func_log10f" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_LOG10F 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5 ++$as_echo_n "checking for _log10f declaration... " >&6; } ++ if test x${glibcxx_cv_func__log10f_use+set} != xset; then ++ if ${glibcxx_cv_func__log10f_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _log10f(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__log10f_use=yes ++else ++ glibcxx_cv_func__log10f_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5 ++$as_echo "$glibcxx_cv_func__log10f_use" >&6; } ++ ++ if test x$glibcxx_cv_func__log10f_use = x"yes"; then ++ for ac_func in _log10f ++do : ++ ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f" ++if test "x$ac_cv_func__log10f" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__LOG10F 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5 ++$as_echo_n "checking for modff declaration... " >&6; } ++ if test x${glibcxx_cv_func_modff_use+set} != xset; then ++ if ${glibcxx_cv_func_modff_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ modff(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_modff_use=yes ++else ++ glibcxx_cv_func_modff_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5 ++$as_echo "$glibcxx_cv_func_modff_use" >&6; } ++ ++ if test x$glibcxx_cv_func_modff_use = x"yes"; then ++ for ac_func in modff ++do : ++ ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff" ++if test "x$ac_cv_func_modff" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_MODFF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5 ++$as_echo_n "checking for _modff declaration... " >&6; } ++ if test x${glibcxx_cv_func__modff_use+set} != xset; then ++ if ${glibcxx_cv_func__modff_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _modff(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__modff_use=yes ++else ++ glibcxx_cv_func__modff_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5 ++$as_echo "$glibcxx_cv_func__modff_use" >&6; } ++ ++ if test x$glibcxx_cv_func__modff_use = x"yes"; then ++ for ac_func in _modff ++do : ++ ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff" ++if test "x$ac_cv_func__modff" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__MODFF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5 ++$as_echo_n "checking for modf declaration... " >&6; } ++ if test x${glibcxx_cv_func_modf_use+set} != xset; then ++ if ${glibcxx_cv_func_modf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ modf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_modf_use=yes ++else ++ glibcxx_cv_func_modf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5 ++$as_echo "$glibcxx_cv_func_modf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_modf_use = x"yes"; then ++ for ac_func in modf ++do : ++ ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf" ++if test "x$ac_cv_func_modf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_MODF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5 ++$as_echo_n "checking for _modf declaration... " >&6; } ++ if test x${glibcxx_cv_func__modf_use+set} != xset; then ++ if ${glibcxx_cv_func__modf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _modf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__modf_use=yes ++else ++ glibcxx_cv_func__modf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5 ++$as_echo "$glibcxx_cv_func__modf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__modf_use = x"yes"; then ++ for ac_func in _modf ++do : ++ ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf" ++if test "x$ac_cv_func__modf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__MODF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5 ++$as_echo_n "checking for powf declaration... " >&6; } ++ if test x${glibcxx_cv_func_powf_use+set} != xset; then ++ if ${glibcxx_cv_func_powf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ powf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_powf_use=yes ++else ++ glibcxx_cv_func_powf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5 ++$as_echo "$glibcxx_cv_func_powf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_powf_use = x"yes"; then ++ for ac_func in powf ++do : ++ ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf" ++if test "x$ac_cv_func_powf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_POWF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5 ++$as_echo_n "checking for _powf declaration... " >&6; } ++ if test x${glibcxx_cv_func__powf_use+set} != xset; then ++ if ${glibcxx_cv_func__powf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _powf(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__powf_use=yes ++else ++ glibcxx_cv_func__powf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5 ++$as_echo "$glibcxx_cv_func__powf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__powf_use = x"yes"; then ++ for ac_func in _powf ++do : ++ ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf" ++if test "x$ac_cv_func__powf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__POWF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5 ++$as_echo_n "checking for sqrtf declaration... " >&6; } ++ if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then ++ if ${glibcxx_cv_func_sqrtf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ sqrtf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_sqrtf_use=yes ++else ++ glibcxx_cv_func_sqrtf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5 ++$as_echo "$glibcxx_cv_func_sqrtf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then ++ for ac_func in sqrtf ++do : ++ ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf" ++if test "x$ac_cv_func_sqrtf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_SQRTF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5 ++$as_echo_n "checking for _sqrtf declaration... " >&6; } ++ if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then ++ if ${glibcxx_cv_func__sqrtf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _sqrtf(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__sqrtf_use=yes ++else ++ glibcxx_cv_func__sqrtf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5 ++$as_echo "$glibcxx_cv_func__sqrtf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then ++ for ac_func in _sqrtf ++do : ++ ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf" ++if test "x$ac_cv_func__sqrtf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__SQRTF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5 ++$as_echo_n "checking for sincosf declaration... " >&6; } ++ if test x${glibcxx_cv_func_sincosf_use+set} != xset; then ++ if ${glibcxx_cv_func_sincosf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ sincosf(0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_sincosf_use=yes ++else ++ glibcxx_cv_func_sincosf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5 ++$as_echo "$glibcxx_cv_func_sincosf_use" >&6; } ++ ++ if test x$glibcxx_cv_func_sincosf_use = x"yes"; then ++ for ac_func in sincosf ++do : ++ ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf" ++if test "x$ac_cv_func_sincosf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_SINCOSF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5 ++$as_echo_n "checking for _sincosf declaration... " >&6; } ++ if test x${glibcxx_cv_func__sincosf_use+set} != xset; then ++ if ${glibcxx_cv_func__sincosf_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _sincosf(0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__sincosf_use=yes ++else ++ glibcxx_cv_func__sincosf_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5 ++$as_echo "$glibcxx_cv_func__sincosf_use" >&6; } ++ ++ if test x$glibcxx_cv_func__sincosf_use = x"yes"; then ++ for ac_func in _sincosf ++do : ++ ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf" ++if test "x$ac_cv_func__sincosf" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__SINCOSF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5 ++$as_echo_n "checking for finitef declaration... " >&6; } ++ if test x${glibcxx_cv_func_finitef_use+set} != xset; then ++ if ${glibcxx_cv_func_finitef_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ finitef(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_finitef_use=yes ++else ++ glibcxx_cv_func_finitef_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5 ++$as_echo "$glibcxx_cv_func_finitef_use" >&6; } ++ ++ if test x$glibcxx_cv_func_finitef_use = x"yes"; then ++ for ac_func in finitef ++do : ++ ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef" ++if test "x$ac_cv_func_finitef" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FINITEF 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5 ++$as_echo_n "checking for _finitef declaration... " >&6; } ++ if test x${glibcxx_cv_func__finitef_use+set} != xset; then ++ if ${glibcxx_cv_func__finitef_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _finitef(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__finitef_use=yes ++else ++ glibcxx_cv_func__finitef_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5 ++$as_echo "$glibcxx_cv_func__finitef_use" >&6; } ++ ++ if test x$glibcxx_cv_func__finitef_use = x"yes"; then ++ for ac_func in _finitef ++do : ++ ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef" ++if test "x$ac_cv_func__finitef" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FINITEF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5 ++$as_echo_n "checking for long double trig functions... " >&6; } ++ if ${glibcxx_cv_func_long_double_trig_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_long_double_trig_use=yes ++else ++ glibcxx_cv_func_long_double_trig_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5 ++$as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; } ++ if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then ++ for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5 ++$as_echo_n "checking for _long double trig functions... " >&6; } ++ if ${glibcxx_cv_func__long_double_trig_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++_acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__long_double_trig_use=yes ++else ++ glibcxx_cv_func__long_double_trig_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5 ++$as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; } ++ if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then ++ for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5 ++$as_echo_n "checking for long double round functions... " >&6; } ++ if ${glibcxx_cv_func_long_double_round_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ceill (0); floorl (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_long_double_round_use=yes ++else ++ glibcxx_cv_func_long_double_round_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5 ++$as_echo "$glibcxx_cv_func_long_double_round_use" >&6; } ++ if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then ++ for ac_func in ceill floorl ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5 ++$as_echo_n "checking for _long double round functions... " >&6; } ++ if ${glibcxx_cv_func__long_double_round_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++_ceill (0); _floorl (0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__long_double_round_use=yes ++else ++ glibcxx_cv_func__long_double_round_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++fi ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5 ++$as_echo "$glibcxx_cv_func__long_double_round_use" >&6; } ++ if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then ++ for ac_func in _ceill _floorl ++do : ++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ++if eval test \"x\$"$as_ac_var"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5 ++$as_echo_n "checking for isnanl declaration... " >&6; } ++ if test x${glibcxx_cv_func_isnanl_use+set} != xset; then ++ if ${glibcxx_cv_func_isnanl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ isnanl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_isnanl_use=yes ++else ++ glibcxx_cv_func_isnanl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5 ++$as_echo "$glibcxx_cv_func_isnanl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_isnanl_use = x"yes"; then ++ for ac_func in isnanl ++do : ++ ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl" ++if test "x$ac_cv_func_isnanl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ISNANL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5 ++$as_echo_n "checking for _isnanl declaration... " >&6; } ++ if test x${glibcxx_cv_func__isnanl_use+set} != xset; then ++ if ${glibcxx_cv_func__isnanl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _isnanl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__isnanl_use=yes ++else ++ glibcxx_cv_func__isnanl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5 ++$as_echo "$glibcxx_cv_func__isnanl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__isnanl_use = x"yes"; then ++ for ac_func in _isnanl ++do : ++ ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl" ++if test "x$ac_cv_func__isnanl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ISNANL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5 ++$as_echo_n "checking for isinfl declaration... " >&6; } ++ if test x${glibcxx_cv_func_isinfl_use+set} != xset; then ++ if ${glibcxx_cv_func_isinfl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ isinfl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_isinfl_use=yes ++else ++ glibcxx_cv_func_isinfl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5 ++$as_echo "$glibcxx_cv_func_isinfl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_isinfl_use = x"yes"; then ++ for ac_func in isinfl ++do : ++ ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl" ++if test "x$ac_cv_func_isinfl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ISINFL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5 ++$as_echo_n "checking for _isinfl declaration... " >&6; } ++ if test x${glibcxx_cv_func__isinfl_use+set} != xset; then ++ if ${glibcxx_cv_func__isinfl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _isinfl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__isinfl_use=yes ++else ++ glibcxx_cv_func__isinfl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5 ++$as_echo "$glibcxx_cv_func__isinfl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__isinfl_use = x"yes"; then ++ for ac_func in _isinfl ++do : ++ ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl" ++if test "x$ac_cv_func__isinfl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ISINFL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5 ++$as_echo_n "checking for atan2l declaration... " >&6; } ++ if test x${glibcxx_cv_func_atan2l_use+set} != xset; then ++ if ${glibcxx_cv_func_atan2l_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ atan2l(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_atan2l_use=yes ++else ++ glibcxx_cv_func_atan2l_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5 ++$as_echo "$glibcxx_cv_func_atan2l_use" >&6; } ++ ++ if test x$glibcxx_cv_func_atan2l_use = x"yes"; then ++ for ac_func in atan2l ++do : ++ ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l" ++if test "x$ac_cv_func_atan2l" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_ATAN2L 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5 ++$as_echo_n "checking for _atan2l declaration... " >&6; } ++ if test x${glibcxx_cv_func__atan2l_use+set} != xset; then ++ if ${glibcxx_cv_func__atan2l_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _atan2l(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__atan2l_use=yes ++else ++ glibcxx_cv_func__atan2l_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5 ++$as_echo "$glibcxx_cv_func__atan2l_use" >&6; } ++ ++ if test x$glibcxx_cv_func__atan2l_use = x"yes"; then ++ for ac_func in _atan2l ++do : ++ ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l" ++if test "x$ac_cv_func__atan2l" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__ATAN2L 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5 ++$as_echo_n "checking for expl declaration... " >&6; } ++ if test x${glibcxx_cv_func_expl_use+set} != xset; then ++ if ${glibcxx_cv_func_expl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ expl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_expl_use=yes ++else ++ glibcxx_cv_func_expl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5 ++$as_echo "$glibcxx_cv_func_expl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_expl_use = x"yes"; then ++ for ac_func in expl ++do : ++ ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl" ++if test "x$ac_cv_func_expl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_EXPL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5 ++$as_echo_n "checking for _expl declaration... " >&6; } ++ if test x${glibcxx_cv_func__expl_use+set} != xset; then ++ if ${glibcxx_cv_func__expl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _expl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__expl_use=yes ++else ++ glibcxx_cv_func__expl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5 ++$as_echo "$glibcxx_cv_func__expl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__expl_use = x"yes"; then ++ for ac_func in _expl ++do : ++ ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl" ++if test "x$ac_cv_func__expl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__EXPL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5 ++$as_echo_n "checking for fabsl declaration... " >&6; } ++ if test x${glibcxx_cv_func_fabsl_use+set} != xset; then ++ if ${glibcxx_cv_func_fabsl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ fabsl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_fabsl_use=yes ++else ++ glibcxx_cv_func_fabsl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5 ++$as_echo "$glibcxx_cv_func_fabsl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_fabsl_use = x"yes"; then ++ for ac_func in fabsl ++do : ++ ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl" ++if test "x$ac_cv_func_fabsl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FABSL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5 ++$as_echo_n "checking for _fabsl declaration... " >&6; } ++ if test x${glibcxx_cv_func__fabsl_use+set} != xset; then ++ if ${glibcxx_cv_func__fabsl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _fabsl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__fabsl_use=yes ++else ++ glibcxx_cv_func__fabsl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5 ++$as_echo "$glibcxx_cv_func__fabsl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__fabsl_use = x"yes"; then ++ for ac_func in _fabsl ++do : ++ ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl" ++if test "x$ac_cv_func__fabsl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FABSL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5 ++$as_echo_n "checking for fmodl declaration... " >&6; } ++ if test x${glibcxx_cv_func_fmodl_use+set} != xset; then ++ if ${glibcxx_cv_func_fmodl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ fmodl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_fmodl_use=yes ++else ++ glibcxx_cv_func_fmodl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5 ++$as_echo "$glibcxx_cv_func_fmodl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_fmodl_use = x"yes"; then ++ for ac_func in fmodl ++do : ++ ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl" ++if test "x$ac_cv_func_fmodl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FMODL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5 ++$as_echo_n "checking for _fmodl declaration... " >&6; } ++ if test x${glibcxx_cv_func__fmodl_use+set} != xset; then ++ if ${glibcxx_cv_func__fmodl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _fmodl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__fmodl_use=yes ++else ++ glibcxx_cv_func__fmodl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5 ++$as_echo "$glibcxx_cv_func__fmodl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__fmodl_use = x"yes"; then ++ for ac_func in _fmodl ++do : ++ ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl" ++if test "x$ac_cv_func__fmodl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FMODL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5 ++$as_echo_n "checking for frexpl declaration... " >&6; } ++ if test x${glibcxx_cv_func_frexpl_use+set} != xset; then ++ if ${glibcxx_cv_func_frexpl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ frexpl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_frexpl_use=yes ++else ++ glibcxx_cv_func_frexpl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5 ++$as_echo "$glibcxx_cv_func_frexpl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_frexpl_use = x"yes"; then ++ for ac_func in frexpl ++do : ++ ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl" ++if test "x$ac_cv_func_frexpl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FREXPL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5 ++$as_echo_n "checking for _frexpl declaration... " >&6; } ++ if test x${glibcxx_cv_func__frexpl_use+set} != xset; then ++ if ${glibcxx_cv_func__frexpl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _frexpl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__frexpl_use=yes ++else ++ glibcxx_cv_func__frexpl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5 ++$as_echo "$glibcxx_cv_func__frexpl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__frexpl_use = x"yes"; then ++ for ac_func in _frexpl ++do : ++ ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl" ++if test "x$ac_cv_func__frexpl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FREXPL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5 ++$as_echo_n "checking for hypotl declaration... " >&6; } ++ if test x${glibcxx_cv_func_hypotl_use+set} != xset; then ++ if ${glibcxx_cv_func_hypotl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ hypotl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_hypotl_use=yes ++else ++ glibcxx_cv_func_hypotl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5 ++$as_echo "$glibcxx_cv_func_hypotl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_hypotl_use = x"yes"; then ++ for ac_func in hypotl ++do : ++ ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl" ++if test "x$ac_cv_func_hypotl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_HYPOTL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5 ++$as_echo_n "checking for _hypotl declaration... " >&6; } ++ if test x${glibcxx_cv_func__hypotl_use+set} != xset; then ++ if ${glibcxx_cv_func__hypotl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _hypotl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__hypotl_use=yes ++else ++ glibcxx_cv_func__hypotl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5 ++$as_echo "$glibcxx_cv_func__hypotl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__hypotl_use = x"yes"; then ++ for ac_func in _hypotl ++do : ++ ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl" ++if test "x$ac_cv_func__hypotl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__HYPOTL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5 ++$as_echo_n "checking for ldexpl declaration... " >&6; } ++ if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then ++ if ${glibcxx_cv_func_ldexpl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ ldexpl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_ldexpl_use=yes ++else ++ glibcxx_cv_func_ldexpl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5 ++$as_echo "$glibcxx_cv_func_ldexpl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then ++ for ac_func in ldexpl ++do : ++ ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl" ++if test "x$ac_cv_func_ldexpl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_LDEXPL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5 ++$as_echo_n "checking for _ldexpl declaration... " >&6; } ++ if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then ++ if ${glibcxx_cv_func__ldexpl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _ldexpl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__ldexpl_use=yes ++else ++ glibcxx_cv_func__ldexpl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5 ++$as_echo "$glibcxx_cv_func__ldexpl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then ++ for ac_func in _ldexpl ++do : ++ ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl" ++if test "x$ac_cv_func__ldexpl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__LDEXPL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5 ++$as_echo_n "checking for logl declaration... " >&6; } ++ if test x${glibcxx_cv_func_logl_use+set} != xset; then ++ if ${glibcxx_cv_func_logl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ logl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_logl_use=yes ++else ++ glibcxx_cv_func_logl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5 ++$as_echo "$glibcxx_cv_func_logl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_logl_use = x"yes"; then ++ for ac_func in logl ++do : ++ ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl" ++if test "x$ac_cv_func_logl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_LOGL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5 ++$as_echo_n "checking for _logl declaration... " >&6; } ++ if test x${glibcxx_cv_func__logl_use+set} != xset; then ++ if ${glibcxx_cv_func__logl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _logl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__logl_use=yes ++else ++ glibcxx_cv_func__logl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5 ++$as_echo "$glibcxx_cv_func__logl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__logl_use = x"yes"; then ++ for ac_func in _logl ++do : ++ ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl" ++if test "x$ac_cv_func__logl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__LOGL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5 ++$as_echo_n "checking for log10l declaration... " >&6; } ++ if test x${glibcxx_cv_func_log10l_use+set} != xset; then ++ if ${glibcxx_cv_func_log10l_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ log10l(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_log10l_use=yes ++else ++ glibcxx_cv_func_log10l_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5 ++$as_echo "$glibcxx_cv_func_log10l_use" >&6; } ++ ++ if test x$glibcxx_cv_func_log10l_use = x"yes"; then ++ for ac_func in log10l ++do : ++ ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l" ++if test "x$ac_cv_func_log10l" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_LOG10L 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5 ++$as_echo_n "checking for _log10l declaration... " >&6; } ++ if test x${glibcxx_cv_func__log10l_use+set} != xset; then ++ if ${glibcxx_cv_func__log10l_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _log10l(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__log10l_use=yes ++else ++ glibcxx_cv_func__log10l_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5 ++$as_echo "$glibcxx_cv_func__log10l_use" >&6; } ++ ++ if test x$glibcxx_cv_func__log10l_use = x"yes"; then ++ for ac_func in _log10l ++do : ++ ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l" ++if test "x$ac_cv_func__log10l" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__LOG10L 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5 ++$as_echo_n "checking for modfl declaration... " >&6; } ++ if test x${glibcxx_cv_func_modfl_use+set} != xset; then ++ if ${glibcxx_cv_func_modfl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ modfl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_modfl_use=yes ++else ++ glibcxx_cv_func_modfl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5 ++$as_echo "$glibcxx_cv_func_modfl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_modfl_use = x"yes"; then ++ for ac_func in modfl ++do : ++ ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl" ++if test "x$ac_cv_func_modfl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_MODFL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5 ++$as_echo_n "checking for _modfl declaration... " >&6; } ++ if test x${glibcxx_cv_func__modfl_use+set} != xset; then ++ if ${glibcxx_cv_func__modfl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _modfl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__modfl_use=yes ++else ++ glibcxx_cv_func__modfl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5 ++$as_echo "$glibcxx_cv_func__modfl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__modfl_use = x"yes"; then ++ for ac_func in _modfl ++do : ++ ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl" ++if test "x$ac_cv_func__modfl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__MODFL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5 ++$as_echo_n "checking for powl declaration... " >&6; } ++ if test x${glibcxx_cv_func_powl_use+set} != xset; then ++ if ${glibcxx_cv_func_powl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ powl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_powl_use=yes ++else ++ glibcxx_cv_func_powl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5 ++$as_echo "$glibcxx_cv_func_powl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_powl_use = x"yes"; then ++ for ac_func in powl ++do : ++ ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl" ++if test "x$ac_cv_func_powl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_POWL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5 ++$as_echo_n "checking for _powl declaration... " >&6; } ++ if test x${glibcxx_cv_func__powl_use+set} != xset; then ++ if ${glibcxx_cv_func__powl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _powl(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__powl_use=yes ++else ++ glibcxx_cv_func__powl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5 ++$as_echo "$glibcxx_cv_func__powl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__powl_use = x"yes"; then ++ for ac_func in _powl ++do : ++ ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl" ++if test "x$ac_cv_func__powl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__POWL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5 ++$as_echo_n "checking for sqrtl declaration... " >&6; } ++ if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then ++ if ${glibcxx_cv_func_sqrtl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ sqrtl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_sqrtl_use=yes ++else ++ glibcxx_cv_func_sqrtl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5 ++$as_echo "$glibcxx_cv_func_sqrtl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then ++ for ac_func in sqrtl ++do : ++ ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl" ++if test "x$ac_cv_func_sqrtl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_SQRTL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5 ++$as_echo_n "checking for _sqrtl declaration... " >&6; } ++ if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then ++ if ${glibcxx_cv_func__sqrtl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _sqrtl(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__sqrtl_use=yes ++else ++ glibcxx_cv_func__sqrtl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5 ++$as_echo "$glibcxx_cv_func__sqrtl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then ++ for ac_func in _sqrtl ++do : ++ ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl" ++if test "x$ac_cv_func__sqrtl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__SQRTL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5 ++$as_echo_n "checking for sincosl declaration... " >&6; } ++ if test x${glibcxx_cv_func_sincosl_use+set} != xset; then ++ if ${glibcxx_cv_func_sincosl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ sincosl(0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_sincosl_use=yes ++else ++ glibcxx_cv_func_sincosl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5 ++$as_echo "$glibcxx_cv_func_sincosl_use" >&6; } ++ ++ if test x$glibcxx_cv_func_sincosl_use = x"yes"; then ++ for ac_func in sincosl ++do : ++ ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl" ++if test "x$ac_cv_func_sincosl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_SINCOSL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5 ++$as_echo_n "checking for _sincosl declaration... " >&6; } ++ if test x${glibcxx_cv_func__sincosl_use+set} != xset; then ++ if ${glibcxx_cv_func__sincosl_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ _sincosl(0, 0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__sincosl_use=yes ++else ++ glibcxx_cv_func__sincosl_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5 ++$as_echo "$glibcxx_cv_func__sincosl_use" >&6; } ++ ++ if test x$glibcxx_cv_func__sincosl_use = x"yes"; then ++ for ac_func in _sincosl ++do : ++ ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl" ++if test "x$ac_cv_func__sincosl" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__SINCOSL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5 ++$as_echo_n "checking for finitel declaration... " >&6; } ++ if test x${glibcxx_cv_func_finitel_use+set} != xset; then ++ if ${glibcxx_cv_func_finitel_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ finitel(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_finitel_use=yes ++else ++ glibcxx_cv_func_finitel_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5 ++$as_echo "$glibcxx_cv_func_finitel_use" >&6; } ++ ++ if test x$glibcxx_cv_func_finitel_use = x"yes"; then ++ for ac_func in finitel ++do : ++ ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel" ++if test "x$ac_cv_func_finitel" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_FINITEL 1 ++_ACEOF ++ ++fi ++done ++ ++ else ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5 ++$as_echo_n "checking for _finitel declaration... " >&6; } ++ if test x${glibcxx_cv_func__finitel_use+set} != xset; then ++ if ${glibcxx_cv_func__finitel_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++ #ifdef HAVE_IEEEFP_H ++ #include ++ #endif ++ ++int ++main () ++{ ++ _finitel(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func__finitel_use=yes ++else ++ glibcxx_cv_func__finitel_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5 ++$as_echo "$glibcxx_cv_func__finitel_use" >&6; } ++ ++ if test x$glibcxx_cv_func__finitel_use = x"yes"; then ++ for ac_func in _finitel ++do : ++ ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel" ++if test "x$ac_cv_func__finitel" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE__FINITEL 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ fi ++ ++ ++ ++ ++ LIBS="$ac_save_LIBS" ++ CXXFLAGS="$ac_save_CXXFLAGS" ++ ++ ++ ac_test_CXXFLAGS="${CXXFLAGS+set}" ++ ac_save_CXXFLAGS="$CXXFLAGS" ++ CXXFLAGS='-fno-builtin -D_GNU_SOURCE' ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5 ++$as_echo_n "checking for at_quick_exit declaration... " >&6; } ++ if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then ++ if ${glibcxx_cv_func_at_quick_exit_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ at_quick_exit(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_at_quick_exit_use=yes ++else ++ glibcxx_cv_func_at_quick_exit_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5 ++$as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; } ++ if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then ++ for ac_func in at_quick_exit ++do : ++ ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit" ++if test "x$ac_cv_func_at_quick_exit" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_AT_QUICK_EXIT 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5 ++$as_echo_n "checking for quick_exit declaration... " >&6; } ++ if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then ++ if ${glibcxx_cv_func_quick_exit_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ quick_exit(0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_quick_exit_use=yes ++else ++ glibcxx_cv_func_quick_exit_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5 ++$as_echo "$glibcxx_cv_func_quick_exit_use" >&6; } ++ if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then ++ for ac_func in quick_exit ++do : ++ ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit" ++if test "x$ac_cv_func_quick_exit" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_QUICK_EXIT 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5 ++$as_echo_n "checking for strtold declaration... " >&6; } ++ if test x${glibcxx_cv_func_strtold_use+set} != xset; then ++ if ${glibcxx_cv_func_strtold_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ strtold(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_strtold_use=yes ++else ++ glibcxx_cv_func_strtold_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5 ++$as_echo "$glibcxx_cv_func_strtold_use" >&6; } ++ if test x$glibcxx_cv_func_strtold_use = x"yes"; then ++ for ac_func in strtold ++do : ++ ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold" ++if test "x$ac_cv_func_strtold" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_STRTOLD 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ ++ ++ ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5 ++$as_echo_n "checking for strtof declaration... " >&6; } ++ if test x${glibcxx_cv_func_strtof_use+set} != xset; then ++ if ${glibcxx_cv_func_strtof_use+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ++ ++ ac_ext=cpp ++ac_cpp='$CXXCPP $CPPFLAGS' ++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ++ ++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++ strtof(0, 0); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_cxx_try_compile "$LINENO"; then : ++ glibcxx_cv_func_strtof_use=yes ++else ++ glibcxx_cv_func_strtof_use=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++ ac_ext=c ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ++ac_compiler_gnu=$ac_cv_c_compiler_gnu ++ ++ ++fi ++ ++ fi ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5 ++$as_echo "$glibcxx_cv_func_strtof_use" >&6; } ++ if test x$glibcxx_cv_func_strtof_use = x"yes"; then ++ for ac_func in strtof ++do : ++ ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" ++if test "x$ac_cv_func_strtof" = xyes; then : ++ cat >>confdefs.h <<_ACEOF ++#define HAVE_STRTOF 1 ++_ACEOF ++ ++fi ++done ++ ++ fi ++ ++ ++ ++ ++ CXXFLAGS="$ac_save_CXXFLAGS" ++ ++ ;; + avr*-*-*) + $as_echo "#define HAVE_ACOSF 1" >>confdefs.h + -- 2.45.1