Attachment 'gcc-4.7.3-barrelfish.patch'

Download

   1 diff --git a/config.sub b/config.sub
   2 index 78176a4..e16a497 100755
   3 --- a/config.sub
   4 +++ b/config.sub
   5 @@ -1334,6 +1334,7 @@ case $os in
   6  	      | -sym* | -kopensolaris* \
   7  	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
   8  	      | -aos* | -aros* \
   9 +	      | -barrelfish* \
  10  	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  11  	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  12  	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  13 diff --git a/gcc/config.gcc b/gcc/config.gcc
  14 index 7282a68..3933f4d 100644
  15 --- a/gcc/config.gcc
  16 +++ b/gcc/config.gcc
  17 @@ -651,6 +651,12 @@ case ${target} in
  18        ;;
  19    esac
  20    ;;
  21 +*-*-barrelfish*)
  22 +  extra_parts="crtbegin.o crtend.o"
  23 +  gas=yes
  24 +  gnu_ld=yes
  25 +  default_use_cxa_atexit=yes
  26 +  ;;
  27  *-*-netbsd*)
  28    tmake_file="t-slibgcc"
  29    gas=yes
  30 @@ -1213,9 +1219,23 @@ x86_64-*-darwin*)
  31  i[34567]86-*-elf*)
  32  	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h"
  33  	;;
  34 +i[34567]86-pc-barrelfish*)
  35 +	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/barrelfish-x86_32.h"
  36 +	tmake_file="${tmake_file} i386/t-i386elf i386/t-crtstuff"
  37 +	use_fixproto=yes
  38 +	;;
  39 +i[34567]86-scc-barrelfish*)
  40 +	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/barrelfish-scc.h"
  41 +	tmake_file="${tmake_file} i386/t-i386elf i386/t-crtstuff"
  42 +	use_fixproto=yes
  43 +	;;
  44  x86_64-*-elf*)
  45  	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
  46  	;;
  47 +x86_64-*-barrelfish*)
  48 +	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/barrelfish-x86_64.h"
  49 +	tmake_file="${tmake_file} i386/t-i386elf i386/t-crtstuff"
  50 +	;;
  51  i[34567]86-*-freebsd*)
  52  	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
  53  	;;
  54 diff --git a/gcc/config/i386/barrelfish-scc.h b/gcc/config/i386/barrelfish-scc.h
  55 new file mode 100644
  56 index 0000000..930451c
  57 --- /dev/null
  58 +++ b/gcc/config/i386/barrelfish-scc.h
  59 @@ -0,0 +1,72 @@
  60 +#define BF_SRC   "{{BF_SRC}}"
  61 +#define BF_BUILD "{{BF_BUILD}}"
  62 +
  63 +#undef TARGET_OS_CPP_BUILTINS
  64 +#define TARGET_OS_CPP_BUILTINS()                        \
  65 +  do {                                                  \
  66 +    builtin_define ("BARRELFISH");                      \
  67 +    builtin_define_std ("barrelfish");                  \
  68 +    builtin_define_std ("unix");                        \
  69 +    builtin_define_std ("scc");                         \
  70 +    builtin_define ("CONFIG_LAZY_THC");                 \
  71 +    builtin_define ("CONFIG_NEWLIB");                   \
  72 +    builtin_define ("CONFIG_INTERCONNECT_DRIVER_LMP");  \
  73 +    builtin_define ("CONFIG_INTERCONNECT_DRIVER_UMP");  \
  74 +    builtin_define ("CONFIG_FLOUNDER_BACKEND_LMP");     \
  75 +    builtin_define ("CONFIG_FLOUNDER_BACKEND_UMP_IPI"); \
  76 +    builtin_define ("BF_BUILD_DIR=\"" BF_BUILD "\"");   \
  77 +    builtin_define ("BF_SRC_DIR=\"" BF_SRC "\"");       \
  78 +    builtin_assert ("system=barrelfish");               \
  79 +    builtin_assert ("system=unix");                     \
  80 +  } while(0);
  81 +
  82 +#undef  CC1_SPEC
  83 +#define CC1_SPEC "%(cc1_cpu) -mno-red-zone"
  84 +
  85 +/* Default #includes are defined in 'hake/ArchDefaults.hs' (see 'cStdIncs'). */
  86 +#undef  CPP_SPEC
  87 +#define CPP_SPEC                                       \
  88 +  "-isystem" BF_SRC "/include "                        \
  89 +  "-isystem" BF_SRC "/include/arch/scc "               \
  90 +  "-isystem" BF_SRC "/include/arch/x86_32 "            \
  91 +  "-isystem" BF_SRC "/lib/newlib/newlib/libc/include " \
  92 +  "-isystem" BF_SRC "/include/c "                      \
  93 +  "-isystem" BF_SRC "/include/target/x86_32 "          \
  94 +  "-isystem" BF_SRC "/include/ipv4 "                   \
  95 +  "-isystem" BF_BUILD "/scc/include "                  \
  96 +  "-isystem" BF_BUILD "/scc/include/dev"
  97 +
  98 +/* Default libraries are specified in 'hake/ArchDefaults.hs' (see 'stdLibs').
  99 +   Follows the order given by 'libDeps' in '{BF_SRC}/hake/RuleDefs.hs'. */
 100 +#undef LIB_SPEC
 101 +#define LIB_SPEC                  \
 102 +  "-L" BF_BUILD "/scc/lib "       \
 103 +  "-lbarrelfish "                 \
 104 +  "-loctopus_parser "             \
 105 +  BF_BUILD "/scc/errors/errno.o " \
 106 +  "-lnewlib "                     \
 107 +  "-lposixcompat "                \
 108 +  "-lvfs "                        \
 109 +  "-lahci "                       \
 110 +  "-lnfs "                        \
 111 +  "-llwip "                       \
 112 +  "-lbarrelfish "                 \
 113 +  "-lnewlib"
 114 +
 115 +#undef  STARTFILE_SPEC
 116 +#define STARTFILE_SPEC             \
 117 +  BF_BUILD "/scc/lib/crt0.o%s "    \
 118 +  BF_BUILD "/scc/lib/crtbegin.o%s"
 119 +
 120 +#undef  ENDFILE_SPEC
 121 +#define ENDFILE_SPEC                                                \
 122 +  "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \
 123 +  "%{mpc32:crtprec32.o%s} "                                         \
 124 +  "%{mpc64:crtprec64.o%s} "                                         \
 125 +  "%{mpc80:crtprec80.o%s} "                                         \
 126 +  BF_BUILD "/scc/lib/crtend.o%s "                                   \
 127 +  "-lcollections"
 128 +
 129 +/* System header files are C++ ready so don't wrap in extern "C". */
 130 +#undef  NO_IMPLICIT_EXTERN_C
 131 +#define NO_IMPLICIT_EXTERN_C  1
 132 diff --git a/gcc/config/i386/barrelfish-x86_32.h b/gcc/config/i386/barrelfish-x86_32.h
 133 new file mode 100644
 134 index 0000000..84d0bf5
 135 --- /dev/null
 136 +++ b/gcc/config/i386/barrelfish-x86_32.h
 137 @@ -0,0 +1,70 @@
 138 +#define BF_SRC   "{{BF_SRC}}"
 139 +#define BF_BUILD "{{BF_BUILD}}"
 140 +
 141 +#undef TARGET_OS_CPP_BUILTINS
 142 +#define TARGET_OS_CPP_BUILTINS()                       \
 143 +  do {                                                 \
 144 +    builtin_define ("BARRELFISH");                     \
 145 +    builtin_define_std ("barrelfish");                 \
 146 +    builtin_define_std ("unix");                       \
 147 +    builtin_define ("CONFIG_LAZY_THC");                \
 148 +    builtin_define ("CONFIG_NEWLIB");                  \
 149 +    builtin_define ("CONFIG_INTERCONNECT_DRIVER_LMP"); \
 150 +    builtin_define ("CONFIG_INTERCONNECT_DRIVER_UMP"); \
 151 +    builtin_define ("CONFIG_FLOUNDER_BACKEND_LMP");    \
 152 +    builtin_define ("CONFIG_FLOUNDER_BACKEND_UMP");    \
 153 +    builtin_define ("BF_BUILD_DIR=\"" BF_BUILD "\"");  \
 154 +    builtin_define ("BF_SRC_DIR=\"" BF_SRC "\"");      \
 155 +    builtin_assert ("system=barrelfish");              \
 156 +    builtin_assert ("system=unix");                    \
 157 +  } while(0);
 158 +
 159 +#undef  CC1_SPEC
 160 +#define CC1_SPEC "%(cc1_cpu) -mno-red-zone"
 161 +
 162 +/* Default #includes are defined in 'hake/ArchDefaults.hs' (see 'cStdIncs'). */
 163 +#undef  CPP_SPEC
 164 +#define CPP_SPEC                                       \
 165 +  "-isystem" BF_SRC "/include "                        \
 166 +  "-isystem" BF_SRC "/include/arch/x86_32 "            \
 167 +  "-isystem" BF_SRC "/lib/newlib/newlib/libc/include " \
 168 +  "-isystem" BF_SRC "/include/c "                      \
 169 +  "-isystem" BF_SRC "/include/target/x86_32 "          \
 170 +  "-isystem" BF_SRC "/include/ipv4 "                   \
 171 +  "-isystem" BF_BUILD "/x86_32/include "               \
 172 +  "-isystem" BF_BUILD "/x86_32/include/dev"
 173 +
 174 +/* Default libraries are specified in 'hake/ArchDefaults.hs' (see 'stdLibs').
 175 +   Follows the order given by 'libDeps' in '{BF_SRC}/hake/RuleDefs.hs'. */
 176 +#undef LIB_SPEC
 177 +#define LIB_SPEC                     \
 178 +  "-L" BF_BUILD "/x86_32/lib "       \
 179 +  "-lbarrelfish "                    \
 180 +  "-loctopus_parser "                \
 181 +  BF_BUILD "/x86_32/errors/errno.o " \
 182 +  "-lnewlib "                        \
 183 +  "-lposixcompat "                   \
 184 +  "-lvfs "                           \
 185 +  "-lahci "                          \
 186 +  "-lnfs "                           \
 187 +  "-llwip "                          \
 188 +  "-lbarrelfish "                    \
 189 +  "-lnewlib"
 190 +
 191 +#undef  STARTFILE_SPEC
 192 +#define STARTFILE_SPEC                \
 193 +  BF_BUILD "/x86_32/lib/crt0.o%s "    \
 194 +  BF_BUILD "/x86_32/lib/crtbegin.o%s"
 195 +
 196 +#undef  ENDFILE_SPEC
 197 +#define ENDFILE_SPEC                                                \
 198 +  "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \
 199 +  "%{mpc32:crtprec32.o%s} "                                         \
 200 +  "%{mpc64:crtprec64.o%s} "                                         \
 201 +  "%{mpc80:crtprec80.o%s} "                                         \
 202 +  BF_BUILD "/x86_32/lib/crtend.o%s "                                \
 203 +  "-lcollections"
 204 +
 205 +/* System header files are C++ ready so don't wrap in extern "C". */
 206 +#undef  NO_IMPLICIT_EXTERN_C
 207 +#define NO_IMPLICIT_EXTERN_C  1
 208 diff --git a/gcc/config/i386/barrelfish-x86_64.h b/gcc/config/i386/barrelfish-x86_64.h
 209 new file mode 100644
 210 index 0000000..8608b62
 211 --- /dev/null
 212 +++ b/gcc/config/i386/barrelfish-x86_64.h
 213 @@ -0,0 +1,70 @@
 214 +#define BF_SRC   "{{BF_SRC}}"
 215 +#define BF_BUILD "{{BF_BUILD}}"
 216 +
 217 +#undef TARGET_OS_CPP_BUILTINS
 218 +#define TARGET_OS_CPP_BUILTINS()                       \
 219 +  do {                                                 \
 220 +    builtin_define ("BARRELFISH");                     \
 221 +    builtin_define_std ("barrelfish");                 \
 222 +    builtin_define_std ("unix");                       \
 223 +    builtin_define ("CONFIG_LAZY_THC");                \
 224 +    builtin_define ("CONFIG_NEWLIB");                  \
 225 +    builtin_define ("CONFIG_INTERCONNECT_DRIVER_LMP"); \
 226 +    builtin_define ("CONFIG_INTERCONNECT_DRIVER_UMP"); \
 227 +    builtin_define ("CONFIG_FLOUNDER_BACKEND_LMP");    \
 228 +    builtin_define ("CONFIG_FLOUNDER_BACKEND_UMP");    \
 229 +    builtin_define ("BF_BUILD_DIR=\"" BF_BUILD "\"");  \
 230 +    builtin_define ("BF_SRC_DIR=\"" BF_SRC "\"");      \
 231 +    builtin_assert ("system=barrelfish");              \
 232 +    builtin_assert ("system=unix");                    \
 233 +  } while(0);
 234 +
 235 +#undef  CC1_SPEC
 236 +#define CC1_SPEC "%(cc1_cpu) -mno-red-zone"
 237 +
 238 +/* Default #includes are defined in 'hake/ArchDefaults.hs' (see 'cStdIncs'). */
 239 +#undef  CPP_SPEC
 240 +#define CPP_SPEC                                       \
 241 +  "-isystem" BF_SRC "/include "                        \
 242 +  "-isystem" BF_SRC "/include/arch/x86_64 "            \
 243 +  "-isystem" BF_SRC "/lib/newlib/newlib/libc/include " \
 244 +  "-isystem" BF_SRC "/include/c "                      \
 245 +  "-isystem" BF_SRC "/include/target/x86_64 "          \
 246 +  "-isystem" BF_SRC "/include/ipv4 "                   \
 247 +  "-isystem" BF_BUILD "/x86_64/include "               \
 248 +  "-isystem" BF_BUILD "/x86_64/include/dev"
 249 +
 250 +/* Default libraries are specified in 'hake/ArchDefaults.hs' (see 'stdLibs').
 251 +   Follows the order given by 'libDeps' in '{BF_SRC}/hake/RuleDefs.hs'. */
 252 +#undef LIB_SPEC
 253 +#define LIB_SPEC                     \
 254 +  "-L" BF_BUILD "/x86_64/lib "       \
 255 +  "-lbarrelfish "                    \
 256 +  "-loctopus_parser "                \
 257 +  BF_BUILD "/x86_64/errors/errno.o " \
 258 +  "-lnewlib "                        \
 259 +  "-lposixcompat "                   \
 260 +  "-lvfs "                           \
 261 +  "-lahci "                          \
 262 +  "-lnfs "                           \
 263 +  "-llwip "                          \
 264 +  "-lbarrelfish "                    \
 265 +  "-lnewlib"
 266 +
 267 +#undef  STARTFILE_SPEC
 268 +#define STARTFILE_SPEC                \
 269 +  BF_BUILD "/x86_64/lib/crt0.o%s "    \
 270 +  BF_BUILD "/x86_64/lib/crtbegin.o%s"
 271 +
 272 +#undef  ENDFILE_SPEC
 273 +#define ENDFILE_SPEC                                                \
 274 +  "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \
 275 +  "%{mpc32:crtprec32.o%s} "                                         \
 276 +  "%{mpc64:crtprec64.o%s} "                                         \
 277 +  "%{mpc80:crtprec80.o%s} "                                         \
 278 +  BF_BUILD "/x86_64/lib/crtend.o%s "                                \
 279 +  "-lcollections"
 280 +
 281 +/* System header files are C++ ready so don't wrap in extern "C". */
 282 +#undef  NO_IMPLICIT_EXTERN_C
 283 +#define NO_IMPLICIT_EXTERN_C  1
 284 diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h
 285 index 8a03948..fe302bc 100644
 286 --- a/gcc/ginclude/stddef.h
 287 +++ b/gcc/ginclude/stddef.h
 288 @@ -201,7 +201,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
 289  #define _GCC_SIZE_T
 290  #define _SIZET_
 291  #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \
 292 -  || defined(__FreeBSD_kernel__)
 293 +  || defined(__FreeBSD_kernel__) || defined(__barrelfish__)
 294  /* __size_t is a typedef on FreeBSD 5, must not trash it. */
 295  #else
 296  #define __size_t
 297 diff --git a/gcc/testsuite/g++.dg/dg.exp b/gcc/testsuite/g++.dg/dg.exp
 298 index 0730c76..ea56210 100644
 299 --- a/gcc/testsuite/g++.dg/dg.exp
 300 +++ b/gcc/testsuite/g++.dg/dg.exp
 301 @@ -31,6 +31,7 @@ dg-init
 302  # Gather a list of all tests, with the exception of those in directories
 303  # that are handled specially.
 304  set tests [lsort [find $srcdir/$subdir *.C]]
 305 +set tests [prune $tests $srcdir/$subdir/eh/*]
 306  set tests [prune $tests $srcdir/$subdir/bprob/*]
 307  set tests [prune $tests $srcdir/$subdir/charset/*]
 308  set tests [prune $tests $srcdir/$subdir/compat/*]
 309 diff --git a/libgcc/config.host b/libgcc/config.host
 310 index 66b4724..86bb37d 100644
 311 --- a/libgcc/config.host
 312 +++ b/libgcc/config.host
 313 @@ -550,6 +550,10 @@ i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[3
 314  	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 315  	tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
 316  	;;
 317 +i[34567]86-*-barrelfish*)
 318 +	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 319 +	tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
 320 +	;;
 321  x86_64-*-linux*)
 322  	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 323  	tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
 324 @@ -559,6 +563,10 @@ x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
 325  	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 326  	tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
 327  	;;
 328 +x86_64-*-barrelfish*)
 329 +	extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
 330 +	tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm i386/t-crtstuff t-dfprules"
 331 +	;;
 332  i[34567]86-pc-msdosdjgpp*)
 333  	;;
 334  i[34567]86-*-lynxos*)
 335 diff --git a/libiberty/clock.c b/libiberty/clock.c
 336 index 07d902e..4d5817a 100644
 337 --- a/libiberty/clock.c
 338 +++ b/libiberty/clock.c
 339 @@ -66,7 +66,7 @@ number of seconds used.
 340  
 341  /* FIXME: should be able to declare as clock_t. */
 342  
 343 -long
 344 +clock_t
 345  clock (void)
 346  {
 347  #ifdef HAVE_GETRUSAGE
 348 diff --git a/libiberty/gettimeofday.c b/libiberty/gettimeofday.c
 349 index fca1679..88f2f5a 100644
 350 --- a/libiberty/gettimeofday.c
 351 +++ b/libiberty/gettimeofday.c
 352 @@ -19,7 +19,7 @@ that @var{tz} be NULL.  Returns 0 on success, -1 on failure.
 353  */ 
 354  
 355  int
 356 -gettimeofday (struct timeval *tp, void *tz)
 357 +gettimeofday (struct timeval *tp, struct timezone *tz)
 358  {
 359    if (tz)
 360      abort ();
 361 diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
 362 index b642495..45e3ed3 100755
 363 --- a/libstdc++-v3/configure
 364 +++ b/libstdc++-v3/configure
 365 @@ -51752,6 +51752,5867 @@ _ACEOF
 366    fi
 367  
 368      ;;
 369 +  *-barrelfish*)
 370 +
 371 +  # All these tests are for C++; save the language and the compiler flags.
 372 +  # The CXXFLAGS thing is suspicious, but based on similar bits previously
 373 +  # found in GLIBCXX_CONFIGURE.
 374 +
 375 +  ac_ext=cpp
 376 +ac_cpp='$CXXCPP $CPPFLAGS'
 377 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 378 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 379 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 380 +
 381 +  ac_test_CXXFLAGS="${CXXFLAGS+set}"
 382 +  ac_save_CXXFLAGS="$CXXFLAGS"
 383 +
 384 +  # Check for maintainer-mode bits.
 385 +  if test x"$USE_MAINTAINER_MODE" = xno; then
 386 +    WERROR=''
 387 +  else
 388 +    WERROR='-Werror'
 389 +  fi
 390 +
 391 +  # Check for -ffunction-sections -fdata-sections
 392 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
 393 +$as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
 394 +  CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
 395 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 396 +/* end confdefs.h.  */
 397 +int foo; void bar() { };
 398 +int
 399 +main ()
 400 +{
 401 +
 402 +  ;
 403 +  return 0;
 404 +}
 405 +_ACEOF
 406 +if ac_fn_cxx_try_compile "$LINENO"; then :
 407 +  ac_fdsections=yes
 408 +else
 409 +  ac_fdsections=no
 410 +fi
 411 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 412 +  if test "$ac_test_CXXFLAGS" = set; then
 413 +    CXXFLAGS="$ac_save_CXXFLAGS"
 414 +  else
 415 +    # this is the suspicious part
 416 +    CXXFLAGS=''
 417 +  fi
 418 +  if test x"$ac_fdsections" = x"yes"; then
 419 +    SECTION_FLAGS='-ffunction-sections -fdata-sections'
 420 +  fi
 421 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
 422 +$as_echo "$ac_fdsections" >&6; }
 423 +
 424 +  ac_ext=c
 425 +ac_cpp='$CPP $CPPFLAGS'
 426 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 427 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 428 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 429 +
 430 +
 431 +
 432 +
 433 +
 434 +  # If we're not using GNU ld, then there's no point in even trying these
 435 +  # tests.  Check for that first.  We should have already tested for gld
 436 +  # by now (in libtool), but require it now just to be safe...
 437 +  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
 438 +  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
 439 +
 440 +
 441 +
 442 +  # The name set by libtool depends on the version of libtool.  Shame on us
 443 +  # for depending on an impl detail, but c'est la vie.  Older versions used
 444 +  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
 445 +  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
 446 +  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
 447 +  # set (hence we're using an older libtool), then set it.
 448 +  if test x${with_gnu_ld+set} != xset; then
 449 +    if test x${ac_cv_prog_gnu_ld+set} != xset; then
 450 +      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
 451 +      with_gnu_ld=no
 452 +    else
 453 +      with_gnu_ld=$ac_cv_prog_gnu_ld
 454 +    fi
 455 +  fi
 456 +
 457 +  # Start by getting the version number.  I think the libtool test already
 458 +  # does some of this, but throws away the result.
 459 +  glibcxx_ld_is_gold=no
 460 +  if test x"$with_gnu_ld" = x"yes"; then
 461 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
 462 +$as_echo_n "checking for ld version... " >&6; }
 463 +
 464 +    if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
 465 +      glibcxx_ld_is_gold=yes
 466 +    fi
 467 +    ldver=`$LD --version 2>/dev/null |
 468 +	   sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
 469 +
 470 +    glibcxx_gnu_ld_version=`echo $ldver | \
 471 +	   $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
 472 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
 473 +$as_echo "$glibcxx_gnu_ld_version" >&6; }
 474 +  fi
 475 +
 476 +  # Set --gc-sections.
 477 +  glibcxx_have_gc_sections=no
 478 +  if test "$glibcxx_ld_is_gold" = "yes"; then
 479 +    if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
 480 +      glibcxx_have_gc_sections=yes
 481 +    fi
 482 +  else
 483 +    glibcxx_gcsections_min_ld=21602
 484 +    if test x"$with_gnu_ld" = x"yes" &&
 485 +	test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
 486 +      glibcxx_have_gc_sections=yes
 487 +    fi
 488 +  fi
 489 +  if test "$glibcxx_have_gc_sections" = "yes"; then
 490 +    # Sufficiently young GNU ld it is!  Joy and bunny rabbits!
 491 +    # NB: This flag only works reliably after 2.16.1. Configure tests
 492 +    # for this are difficult, so hard wire a value that should work.
 493 +
 494 +    ac_test_CFLAGS="${CFLAGS+set}"
 495 +    ac_save_CFLAGS="$CFLAGS"
 496 +    CFLAGS='-Wl,--gc-sections'
 497 +
 498 +    # Check for -Wl,--gc-sections
 499 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
 500 +$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
 501 +    if test x$gcc_no_link = xyes; then
 502 +  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
 503 +fi
 504 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 505 +/* end confdefs.h.  */
 506 + int one(void) { return 1; }
 507 +     int two(void) { return 2; }
 508 +
 509 +int
 510 +main ()
 511 +{
 512 + two();
 513 +  ;
 514 +  return 0;
 515 +}
 516 +_ACEOF
 517 +if ac_fn_c_try_link "$LINENO"; then :
 518 +  ac_gcsections=yes
 519 +else
 520 +  ac_gcsections=no
 521 +fi
 522 +rm -f core conftest.err conftest.$ac_objext \
 523 +    conftest$ac_exeext conftest.$ac_ext
 524 +    if test "$ac_gcsections" = "yes"; then
 525 +      rm -f conftest.c
 526 +      touch conftest.c
 527 +      if $CC -c conftest.c; then
 528 +	if $LD --gc-sections -o conftest conftest.o 2>&1 | \
 529 +	   grep "Warning: gc-sections option ignored" > /dev/null; then
 530 +	  ac_gcsections=no
 531 +	fi
 532 +      fi
 533 +      rm -f conftest.c conftest.o conftest
 534 +    fi
 535 +    if test "$ac_gcsections" = "yes"; then
 536 +      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
 537 +    fi
 538 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 539 +$as_echo "$ac_gcsections" >&6; }
 540 +
 541 +    if test "$ac_test_CFLAGS" = set; then
 542 +      CFLAGS="$ac_save_CFLAGS"
 543 +    else
 544 +      # this is the suspicious part
 545 +      CFLAGS=''
 546 +    fi
 547 +  fi
 548 +
 549 +  # Set -z,relro.
 550 +  # Note this is only for shared objects.
 551 +  ac_ld_relro=no
 552 +  if test x"$with_gnu_ld" = x"yes"; then
 553 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
 554 +$as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
 555 +    cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
 556 +    if test -n "$cxx_z_relo"; then
 557 +      OPT_LDFLAGS="-Wl,-z,relro"
 558 +      ac_ld_relro=yes
 559 +    fi
 560 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
 561 +$as_echo "$ac_ld_relro" >&6; }
 562 +  fi
 563 +
 564 +  # Set linker optimization flags.
 565 +  if test x"$with_gnu_ld" = x"yes"; then
 566 +    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
 567 +  fi
 568 +
 569 +
 570 +
 571 +
 572 +
 573 +  ac_test_CXXFLAGS="${CXXFLAGS+set}"
 574 +  ac_save_CXXFLAGS="$CXXFLAGS"
 575 +  CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
 576 +
 577 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
 578 +$as_echo_n "checking for sin in -lm... " >&6; }
 579 +if test "${ac_cv_lib_m_sin+set}" = set; then :
 580 +  $as_echo_n "(cached) " >&6
 581 +else
 582 +  ac_check_lib_save_LIBS=$LIBS
 583 +LIBS="-lm  $LIBS"
 584 +if test x$gcc_no_link = xyes; then
 585 +  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
 586 +fi
 587 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 588 +/* end confdefs.h.  */
 589 +
 590 +/* Override any GCC internal prototype to avoid an error.
 591 +   Use char because int might match the return type of a GCC
 592 +   builtin and then its argument prototype would still apply.  */
 593 +#ifdef __cplusplus
 594 +extern "C"
 595 +#endif
 596 +char sin ();
 597 +int
 598 +main ()
 599 +{
 600 +return sin ();
 601 +  ;
 602 +  return 0;
 603 +}
 604 +_ACEOF
 605 +if ac_fn_c_try_link "$LINENO"; then :
 606 +  ac_cv_lib_m_sin=yes
 607 +else
 608 +  ac_cv_lib_m_sin=no
 609 +fi
 610 +rm -f core conftest.err conftest.$ac_objext \
 611 +    conftest$ac_exeext conftest.$ac_ext
 612 +LIBS=$ac_check_lib_save_LIBS
 613 +fi
 614 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
 615 +$as_echo "$ac_cv_lib_m_sin" >&6; }
 616 +if test "x$ac_cv_lib_m_sin" = x""yes; then :
 617 +  libm="-lm"
 618 +fi
 619 +
 620 +  ac_save_LIBS="$LIBS"
 621 +  LIBS="$LIBS $libm"
 622 +
 623 +
 624 +
 625 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
 626 +$as_echo_n "checking for isinf declaration... " >&6; }
 627 +  if test x${glibcxx_cv_func_isinf_use+set} != xset; then
 628 +    if test "${glibcxx_cv_func_isinf_use+set}" = set; then :
 629 +  $as_echo_n "(cached) " >&6
 630 +else
 631 +
 632 +
 633 +      ac_ext=cpp
 634 +ac_cpp='$CXXCPP $CPPFLAGS'
 635 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 636 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 637 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 638 +
 639 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 640 +/* end confdefs.h.  */
 641 +#include <math.h>
 642 +		      #ifdef HAVE_IEEEFP_H
 643 +		      #include <ieeefp.h>
 644 +		      #endif
 645 +
 646 +int
 647 +main ()
 648 +{
 649 + isinf(0);
 650 +  ;
 651 +  return 0;
 652 +}
 653 +_ACEOF
 654 +if ac_fn_cxx_try_compile "$LINENO"; then :
 655 +  glibcxx_cv_func_isinf_use=yes
 656 +else
 657 +  glibcxx_cv_func_isinf_use=no
 658 +fi
 659 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 660 +      ac_ext=c
 661 +ac_cpp='$CPP $CPPFLAGS'
 662 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 663 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 664 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 665 +
 666 +
 667 +fi
 668 +
 669 +  fi
 670 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
 671 +$as_echo "$glibcxx_cv_func_isinf_use" >&6; }
 672 +
 673 +  if test x$glibcxx_cv_func_isinf_use = x"yes"; then
 674 +    for ac_func in isinf
 675 +do :
 676 +  ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
 677 +if test "x$ac_cv_func_isinf" = x""yes; then :
 678 +  cat >>confdefs.h <<_ACEOF
 679 +#define HAVE_ISINF 1
 680 +_ACEOF
 681 +
 682 +fi
 683 +done
 684 +
 685 +  else
 686 +
 687 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
 688 +$as_echo_n "checking for _isinf declaration... " >&6; }
 689 +  if test x${glibcxx_cv_func__isinf_use+set} != xset; then
 690 +    if test "${glibcxx_cv_func__isinf_use+set}" = set; then :
 691 +  $as_echo_n "(cached) " >&6
 692 +else
 693 +
 694 +
 695 +      ac_ext=cpp
 696 +ac_cpp='$CXXCPP $CPPFLAGS'
 697 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 698 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 699 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 700 +
 701 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 702 +/* end confdefs.h.  */
 703 +#include <math.h>
 704 +		      #ifdef HAVE_IEEEFP_H
 705 +		      #include <ieeefp.h>
 706 +		      #endif
 707 +
 708 +int
 709 +main ()
 710 +{
 711 + _isinf(0);
 712 +  ;
 713 +  return 0;
 714 +}
 715 +_ACEOF
 716 +if ac_fn_cxx_try_compile "$LINENO"; then :
 717 +  glibcxx_cv_func__isinf_use=yes
 718 +else
 719 +  glibcxx_cv_func__isinf_use=no
 720 +fi
 721 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 722 +      ac_ext=c
 723 +ac_cpp='$CPP $CPPFLAGS'
 724 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 725 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 726 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 727 +
 728 +
 729 +fi
 730 +
 731 +  fi
 732 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
 733 +$as_echo "$glibcxx_cv_func__isinf_use" >&6; }
 734 +
 735 +    if test x$glibcxx_cv_func__isinf_use = x"yes"; then
 736 +      for ac_func in _isinf
 737 +do :
 738 +  ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
 739 +if test "x$ac_cv_func__isinf" = x""yes; then :
 740 +  cat >>confdefs.h <<_ACEOF
 741 +#define HAVE__ISINF 1
 742 +_ACEOF
 743 +
 744 +fi
 745 +done
 746 +
 747 +    fi
 748 +  fi
 749 +
 750 +
 751 +
 752 +
 753 +
 754 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
 755 +$as_echo_n "checking for isnan declaration... " >&6; }
 756 +  if test x${glibcxx_cv_func_isnan_use+set} != xset; then
 757 +    if test "${glibcxx_cv_func_isnan_use+set}" = set; then :
 758 +  $as_echo_n "(cached) " >&6
 759 +else
 760 +
 761 +
 762 +      ac_ext=cpp
 763 +ac_cpp='$CXXCPP $CPPFLAGS'
 764 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 765 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 766 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 767 +
 768 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 769 +/* end confdefs.h.  */
 770 +#include <math.h>
 771 +		      #ifdef HAVE_IEEEFP_H
 772 +		      #include <ieeefp.h>
 773 +		      #endif
 774 +
 775 +int
 776 +main ()
 777 +{
 778 + isnan(0);
 779 +  ;
 780 +  return 0;
 781 +}
 782 +_ACEOF
 783 +if ac_fn_cxx_try_compile "$LINENO"; then :
 784 +  glibcxx_cv_func_isnan_use=yes
 785 +else
 786 +  glibcxx_cv_func_isnan_use=no
 787 +fi
 788 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 789 +      ac_ext=c
 790 +ac_cpp='$CPP $CPPFLAGS'
 791 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 792 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 793 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 794 +
 795 +
 796 +fi
 797 +
 798 +  fi
 799 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
 800 +$as_echo "$glibcxx_cv_func_isnan_use" >&6; }
 801 +
 802 +  if test x$glibcxx_cv_func_isnan_use = x"yes"; then
 803 +    for ac_func in isnan
 804 +do :
 805 +  ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
 806 +if test "x$ac_cv_func_isnan" = x""yes; then :
 807 +  cat >>confdefs.h <<_ACEOF
 808 +#define HAVE_ISNAN 1
 809 +_ACEOF
 810 +
 811 +fi
 812 +done
 813 +
 814 +  else
 815 +
 816 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
 817 +$as_echo_n "checking for _isnan declaration... " >&6; }
 818 +  if test x${glibcxx_cv_func__isnan_use+set} != xset; then
 819 +    if test "${glibcxx_cv_func__isnan_use+set}" = set; then :
 820 +  $as_echo_n "(cached) " >&6
 821 +else
 822 +
 823 +
 824 +      ac_ext=cpp
 825 +ac_cpp='$CXXCPP $CPPFLAGS'
 826 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 827 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 828 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 829 +
 830 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 831 +/* end confdefs.h.  */
 832 +#include <math.h>
 833 +		      #ifdef HAVE_IEEEFP_H
 834 +		      #include <ieeefp.h>
 835 +		      #endif
 836 +
 837 +int
 838 +main ()
 839 +{
 840 + _isnan(0);
 841 +  ;
 842 +  return 0;
 843 +}
 844 +_ACEOF
 845 +if ac_fn_cxx_try_compile "$LINENO"; then :
 846 +  glibcxx_cv_func__isnan_use=yes
 847 +else
 848 +  glibcxx_cv_func__isnan_use=no
 849 +fi
 850 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 851 +      ac_ext=c
 852 +ac_cpp='$CPP $CPPFLAGS'
 853 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 854 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 855 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 856 +
 857 +
 858 +fi
 859 +
 860 +  fi
 861 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
 862 +$as_echo "$glibcxx_cv_func__isnan_use" >&6; }
 863 +
 864 +    if test x$glibcxx_cv_func__isnan_use = x"yes"; then
 865 +      for ac_func in _isnan
 866 +do :
 867 +  ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
 868 +if test "x$ac_cv_func__isnan" = x""yes; then :
 869 +  cat >>confdefs.h <<_ACEOF
 870 +#define HAVE__ISNAN 1
 871 +_ACEOF
 872 +
 873 +fi
 874 +done
 875 +
 876 +    fi
 877 +  fi
 878 +
 879 +
 880 +
 881 +
 882 +
 883 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
 884 +$as_echo_n "checking for finite declaration... " >&6; }
 885 +  if test x${glibcxx_cv_func_finite_use+set} != xset; then
 886 +    if test "${glibcxx_cv_func_finite_use+set}" = set; then :
 887 +  $as_echo_n "(cached) " >&6
 888 +else
 889 +
 890 +
 891 +      ac_ext=cpp
 892 +ac_cpp='$CXXCPP $CPPFLAGS'
 893 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 894 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 895 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 896 +
 897 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 898 +/* end confdefs.h.  */
 899 +#include <math.h>
 900 +		      #ifdef HAVE_IEEEFP_H
 901 +		      #include <ieeefp.h>
 902 +		      #endif
 903 +
 904 +int
 905 +main ()
 906 +{
 907 + finite(0);
 908 +  ;
 909 +  return 0;
 910 +}
 911 +_ACEOF
 912 +if ac_fn_cxx_try_compile "$LINENO"; then :
 913 +  glibcxx_cv_func_finite_use=yes
 914 +else
 915 +  glibcxx_cv_func_finite_use=no
 916 +fi
 917 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 918 +      ac_ext=c
 919 +ac_cpp='$CPP $CPPFLAGS'
 920 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 921 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 922 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 923 +
 924 +
 925 +fi
 926 +
 927 +  fi
 928 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
 929 +$as_echo "$glibcxx_cv_func_finite_use" >&6; }
 930 +
 931 +  if test x$glibcxx_cv_func_finite_use = x"yes"; then
 932 +    for ac_func in finite
 933 +do :
 934 +  ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
 935 +if test "x$ac_cv_func_finite" = x""yes; then :
 936 +  cat >>confdefs.h <<_ACEOF
 937 +#define HAVE_FINITE 1
 938 +_ACEOF
 939 +
 940 +fi
 941 +done
 942 +
 943 +  else
 944 +
 945 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
 946 +$as_echo_n "checking for _finite declaration... " >&6; }
 947 +  if test x${glibcxx_cv_func__finite_use+set} != xset; then
 948 +    if test "${glibcxx_cv_func__finite_use+set}" = set; then :
 949 +  $as_echo_n "(cached) " >&6
 950 +else
 951 +
 952 +
 953 +      ac_ext=cpp
 954 +ac_cpp='$CXXCPP $CPPFLAGS'
 955 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 956 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 957 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 958 +
 959 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 960 +/* end confdefs.h.  */
 961 +#include <math.h>
 962 +		      #ifdef HAVE_IEEEFP_H
 963 +		      #include <ieeefp.h>
 964 +		      #endif
 965 +
 966 +int
 967 +main ()
 968 +{
 969 + _finite(0);
 970 +  ;
 971 +  return 0;
 972 +}
 973 +_ACEOF
 974 +if ac_fn_cxx_try_compile "$LINENO"; then :
 975 +  glibcxx_cv_func__finite_use=yes
 976 +else
 977 +  glibcxx_cv_func__finite_use=no
 978 +fi
 979 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 980 +      ac_ext=c
 981 +ac_cpp='$CPP $CPPFLAGS'
 982 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 983 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 984 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
 985 +
 986 +
 987 +fi
 988 +
 989 +  fi
 990 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
 991 +$as_echo "$glibcxx_cv_func__finite_use" >&6; }
 992 +
 993 +    if test x$glibcxx_cv_func__finite_use = x"yes"; then
 994 +      for ac_func in _finite
 995 +do :
 996 +  ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
 997 +if test "x$ac_cv_func__finite" = x""yes; then :
 998 +  cat >>confdefs.h <<_ACEOF
 999 +#define HAVE__FINITE 1
1000 +_ACEOF
1001 +
1002 +fi
1003 +done
1004 +
1005 +    fi
1006 +  fi
1007 +
1008 +
1009 +
1010 +
1011 +
1012 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
1013 +$as_echo_n "checking for sincos declaration... " >&6; }
1014 +  if test x${glibcxx_cv_func_sincos_use+set} != xset; then
1015 +    if test "${glibcxx_cv_func_sincos_use+set}" = set; then :
1016 +  $as_echo_n "(cached) " >&6
1017 +else
1018 +
1019 +
1020 +      ac_ext=cpp
1021 +ac_cpp='$CXXCPP $CPPFLAGS'
1022 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1023 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1024 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1025 +
1026 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1027 +/* end confdefs.h.  */
1028 +#include <math.h>
1029 +int
1030 +main ()
1031 +{
1032 + sincos(0, 0, 0);
1033 +  ;
1034 +  return 0;
1035 +}
1036 +_ACEOF
1037 +if ac_fn_cxx_try_compile "$LINENO"; then :
1038 +  glibcxx_cv_func_sincos_use=yes
1039 +else
1040 +  glibcxx_cv_func_sincos_use=no
1041 +fi
1042 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1043 +      ac_ext=c
1044 +ac_cpp='$CPP $CPPFLAGS'
1045 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1046 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1047 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1048 +
1049 +
1050 +fi
1051 +
1052 +  fi
1053 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
1054 +$as_echo "$glibcxx_cv_func_sincos_use" >&6; }
1055 +
1056 +  if test x$glibcxx_cv_func_sincos_use = x"yes"; then
1057 +    for ac_func in sincos
1058 +do :
1059 +  ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
1060 +if test "x$ac_cv_func_sincos" = x""yes; then :
1061 +  cat >>confdefs.h <<_ACEOF
1062 +#define HAVE_SINCOS 1
1063 +_ACEOF
1064 +
1065 +fi
1066 +done
1067 +
1068 +  else
1069 +
1070 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
1071 +$as_echo_n "checking for _sincos declaration... " >&6; }
1072 +  if test x${glibcxx_cv_func__sincos_use+set} != xset; then
1073 +    if test "${glibcxx_cv_func__sincos_use+set}" = set; then :
1074 +  $as_echo_n "(cached) " >&6
1075 +else
1076 +
1077 +
1078 +      ac_ext=cpp
1079 +ac_cpp='$CXXCPP $CPPFLAGS'
1080 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1081 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1082 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1083 +
1084 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1085 +/* end confdefs.h.  */
1086 +#include <math.h>
1087 +int
1088 +main ()
1089 +{
1090 + _sincos(0, 0, 0);
1091 +  ;
1092 +  return 0;
1093 +}
1094 +_ACEOF
1095 +if ac_fn_cxx_try_compile "$LINENO"; then :
1096 +  glibcxx_cv_func__sincos_use=yes
1097 +else
1098 +  glibcxx_cv_func__sincos_use=no
1099 +fi
1100 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1101 +      ac_ext=c
1102 +ac_cpp='$CPP $CPPFLAGS'
1103 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1104 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1105 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1106 +
1107 +
1108 +fi
1109 +
1110 +  fi
1111 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
1112 +$as_echo "$glibcxx_cv_func__sincos_use" >&6; }
1113 +
1114 +    if test x$glibcxx_cv_func__sincos_use = x"yes"; then
1115 +      for ac_func in _sincos
1116 +do :
1117 +  ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
1118 +if test "x$ac_cv_func__sincos" = x""yes; then :
1119 +  cat >>confdefs.h <<_ACEOF
1120 +#define HAVE__SINCOS 1
1121 +_ACEOF
1122 +
1123 +fi
1124 +done
1125 +
1126 +    fi
1127 +  fi
1128 +
1129 +
1130 +
1131 +
1132 +
1133 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
1134 +$as_echo_n "checking for fpclass declaration... " >&6; }
1135 +  if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
1136 +    if test "${glibcxx_cv_func_fpclass_use+set}" = set; then :
1137 +  $as_echo_n "(cached) " >&6
1138 +else
1139 +
1140 +
1141 +      ac_ext=cpp
1142 +ac_cpp='$CXXCPP $CPPFLAGS'
1143 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1144 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1145 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1146 +
1147 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1148 +/* end confdefs.h.  */
1149 +#include <math.h>
1150 +		      #ifdef HAVE_IEEEFP_H
1151 +		      #include <ieeefp.h>
1152 +		      #endif
1153 +
1154 +int
1155 +main ()
1156 +{
1157 + fpclass(0);
1158 +  ;
1159 +  return 0;
1160 +}
1161 +_ACEOF
1162 +if ac_fn_cxx_try_compile "$LINENO"; then :
1163 +  glibcxx_cv_func_fpclass_use=yes
1164 +else
1165 +  glibcxx_cv_func_fpclass_use=no
1166 +fi
1167 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1168 +      ac_ext=c
1169 +ac_cpp='$CPP $CPPFLAGS'
1170 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1171 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1172 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1173 +
1174 +
1175 +fi
1176 +
1177 +  fi
1178 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
1179 +$as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
1180 +
1181 +  if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
1182 +    for ac_func in fpclass
1183 +do :
1184 +  ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
1185 +if test "x$ac_cv_func_fpclass" = x""yes; then :
1186 +  cat >>confdefs.h <<_ACEOF
1187 +#define HAVE_FPCLASS 1
1188 +_ACEOF
1189 +
1190 +fi
1191 +done
1192 +
1193 +  else
1194 +
1195 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
1196 +$as_echo_n "checking for _fpclass declaration... " >&6; }
1197 +  if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
1198 +    if test "${glibcxx_cv_func__fpclass_use+set}" = set; then :
1199 +  $as_echo_n "(cached) " >&6
1200 +else
1201 +
1202 +
1203 +      ac_ext=cpp
1204 +ac_cpp='$CXXCPP $CPPFLAGS'
1205 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1206 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1207 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1208 +
1209 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1210 +/* end confdefs.h.  */
1211 +#include <math.h>
1212 +		      #ifdef HAVE_IEEEFP_H
1213 +		      #include <ieeefp.h>
1214 +		      #endif
1215 +
1216 +int
1217 +main ()
1218 +{
1219 + _fpclass(0);
1220 +  ;
1221 +  return 0;
1222 +}
1223 +_ACEOF
1224 +if ac_fn_cxx_try_compile "$LINENO"; then :
1225 +  glibcxx_cv_func__fpclass_use=yes
1226 +else
1227 +  glibcxx_cv_func__fpclass_use=no
1228 +fi
1229 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1230 +      ac_ext=c
1231 +ac_cpp='$CPP $CPPFLAGS'
1232 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1235 +
1236 +
1237 +fi
1238 +
1239 +  fi
1240 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
1241 +$as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
1242 +
1243 +    if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
1244 +      for ac_func in _fpclass
1245 +do :
1246 +  ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
1247 +if test "x$ac_cv_func__fpclass" = x""yes; then :
1248 +  cat >>confdefs.h <<_ACEOF
1249 +#define HAVE__FPCLASS 1
1250 +_ACEOF
1251 +
1252 +fi
1253 +done
1254 +
1255 +    fi
1256 +  fi
1257 +
1258 +
1259 +
1260 +
1261 +
1262 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
1263 +$as_echo_n "checking for qfpclass declaration... " >&6; }
1264 +  if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
1265 +    if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then :
1266 +  $as_echo_n "(cached) " >&6
1267 +else
1268 +
1269 +
1270 +      ac_ext=cpp
1271 +ac_cpp='$CXXCPP $CPPFLAGS'
1272 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1275 +
1276 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1277 +/* end confdefs.h.  */
1278 +#include <math.h>
1279 +		      #ifdef HAVE_IEEEFP_H
1280 +		      #include <ieeefp.h>
1281 +		      #endif
1282 +
1283 +int
1284 +main ()
1285 +{
1286 + qfpclass(0);
1287 +  ;
1288 +  return 0;
1289 +}
1290 +_ACEOF
1291 +if ac_fn_cxx_try_compile "$LINENO"; then :
1292 +  glibcxx_cv_func_qfpclass_use=yes
1293 +else
1294 +  glibcxx_cv_func_qfpclass_use=no
1295 +fi
1296 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1297 +      ac_ext=c
1298 +ac_cpp='$CPP $CPPFLAGS'
1299 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 +
1303 +
1304 +fi
1305 +
1306 +  fi
1307 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
1308 +$as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
1309 +
1310 +  if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
1311 +    for ac_func in qfpclass
1312 +do :
1313 +  ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
1314 +if test "x$ac_cv_func_qfpclass" = x""yes; then :
1315 +  cat >>confdefs.h <<_ACEOF
1316 +#define HAVE_QFPCLASS 1
1317 +_ACEOF
1318 +
1319 +fi
1320 +done
1321 +
1322 +  else
1323 +
1324 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
1325 +$as_echo_n "checking for _qfpclass declaration... " >&6; }
1326 +  if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
1327 +    if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then :
1328 +  $as_echo_n "(cached) " >&6
1329 +else
1330 +
1331 +
1332 +      ac_ext=cpp
1333 +ac_cpp='$CXXCPP $CPPFLAGS'
1334 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1335 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1336 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1337 +
1338 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1339 +/* end confdefs.h.  */
1340 +#include <math.h>
1341 +		      #ifdef HAVE_IEEEFP_H
1342 +		      #include <ieeefp.h>
1343 +		      #endif
1344 +
1345 +int
1346 +main ()
1347 +{
1348 + _qfpclass(0);
1349 +  ;
1350 +  return 0;
1351 +}
1352 +_ACEOF
1353 +if ac_fn_cxx_try_compile "$LINENO"; then :
1354 +  glibcxx_cv_func__qfpclass_use=yes
1355 +else
1356 +  glibcxx_cv_func__qfpclass_use=no
1357 +fi
1358 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1359 +      ac_ext=c
1360 +ac_cpp='$CPP $CPPFLAGS'
1361 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 +
1365 +
1366 +fi
1367 +
1368 +  fi
1369 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
1370 +$as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
1371 +
1372 +    if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
1373 +      for ac_func in _qfpclass
1374 +do :
1375 +  ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
1376 +if test "x$ac_cv_func__qfpclass" = x""yes; then :
1377 +  cat >>confdefs.h <<_ACEOF
1378 +#define HAVE__QFPCLASS 1
1379 +_ACEOF
1380 +
1381 +fi
1382 +done
1383 +
1384 +    fi
1385 +  fi
1386 +
1387 +
1388 +
1389 +
1390 +
1391 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
1392 +$as_echo_n "checking for hypot declaration... " >&6; }
1393 +  if test x${glibcxx_cv_func_hypot_use+set} != xset; then
1394 +    if test "${glibcxx_cv_func_hypot_use+set}" = set; then :
1395 +  $as_echo_n "(cached) " >&6
1396 +else
1397 +
1398 +
1399 +      ac_ext=cpp
1400 +ac_cpp='$CXXCPP $CPPFLAGS'
1401 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1402 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1403 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1404 +
1405 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1406 +/* end confdefs.h.  */
1407 +#include <math.h>
1408 +int
1409 +main ()
1410 +{
1411 + hypot(0, 0);
1412 +  ;
1413 +  return 0;
1414 +}
1415 +_ACEOF
1416 +if ac_fn_cxx_try_compile "$LINENO"; then :
1417 +  glibcxx_cv_func_hypot_use=yes
1418 +else
1419 +  glibcxx_cv_func_hypot_use=no
1420 +fi
1421 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1422 +      ac_ext=c
1423 +ac_cpp='$CPP $CPPFLAGS'
1424 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1425 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1426 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1427 +
1428 +
1429 +fi
1430 +
1431 +  fi
1432 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
1433 +$as_echo "$glibcxx_cv_func_hypot_use" >&6; }
1434 +
1435 +  if test x$glibcxx_cv_func_hypot_use = x"yes"; then
1436 +    for ac_func in hypot
1437 +do :
1438 +  ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
1439 +if test "x$ac_cv_func_hypot" = x""yes; then :
1440 +  cat >>confdefs.h <<_ACEOF
1441 +#define HAVE_HYPOT 1
1442 +_ACEOF
1443 +
1444 +fi
1445 +done
1446 +
1447 +  else
1448 +
1449 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
1450 +$as_echo_n "checking for _hypot declaration... " >&6; }
1451 +  if test x${glibcxx_cv_func__hypot_use+set} != xset; then
1452 +    if test "${glibcxx_cv_func__hypot_use+set}" = set; then :
1453 +  $as_echo_n "(cached) " >&6
1454 +else
1455 +
1456 +
1457 +      ac_ext=cpp
1458 +ac_cpp='$CXXCPP $CPPFLAGS'
1459 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1462 +
1463 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1464 +/* end confdefs.h.  */
1465 +#include <math.h>
1466 +int
1467 +main ()
1468 +{
1469 + _hypot(0, 0);
1470 +  ;
1471 +  return 0;
1472 +}
1473 +_ACEOF
1474 +if ac_fn_cxx_try_compile "$LINENO"; then :
1475 +  glibcxx_cv_func__hypot_use=yes
1476 +else
1477 +  glibcxx_cv_func__hypot_use=no
1478 +fi
1479 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1480 +      ac_ext=c
1481 +ac_cpp='$CPP $CPPFLAGS'
1482 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 +
1486 +
1487 +fi
1488 +
1489 +  fi
1490 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
1491 +$as_echo "$glibcxx_cv_func__hypot_use" >&6; }
1492 +
1493 +    if test x$glibcxx_cv_func__hypot_use = x"yes"; then
1494 +      for ac_func in _hypot
1495 +do :
1496 +  ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
1497 +if test "x$ac_cv_func__hypot" = x""yes; then :
1498 +  cat >>confdefs.h <<_ACEOF
1499 +#define HAVE__HYPOT 1
1500 +_ACEOF
1501 +
1502 +fi
1503 +done
1504 +
1505 +    fi
1506 +  fi
1507 +
1508 +
1509 +
1510 +
1511 +
1512 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
1513 +$as_echo_n "checking for float trig functions... " >&6; }
1514 +  if test "${glibcxx_cv_func_float_trig_use+set}" = set; then :
1515 +  $as_echo_n "(cached) " >&6
1516 +else
1517 +
1518 +
1519 +    ac_ext=cpp
1520 +ac_cpp='$CXXCPP $CPPFLAGS'
1521 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1524 +
1525 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1526 +/* end confdefs.h.  */
1527 +#include <math.h>
1528 +int
1529 +main ()
1530 +{
1531 +acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
1532 +  ;
1533 +  return 0;
1534 +}
1535 +_ACEOF
1536 +if ac_fn_cxx_try_compile "$LINENO"; then :
1537 +  glibcxx_cv_func_float_trig_use=yes
1538 +else
1539 +  glibcxx_cv_func_float_trig_use=no
1540 +fi
1541 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1542 +    ac_ext=c
1543 +ac_cpp='$CPP $CPPFLAGS'
1544 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1545 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1546 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547 +
1548 +fi
1549 +
1550 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
1551 +$as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
1552 +  if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
1553 +    for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
1554 +do :
1555 +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1556 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1557 +eval as_val=\$$as_ac_var
1558 +   if test "x$as_val" = x""yes; then :
1559 +  cat >>confdefs.h <<_ACEOF
1560 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1561 +_ACEOF
1562 +
1563 +fi
1564 +done
1565 +
1566 +  else
1567 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
1568 +$as_echo_n "checking for _float trig functions... " >&6; }
1569 +    if test "${glibcxx_cv_func__float_trig_use+set}" = set; then :
1570 +  $as_echo_n "(cached) " >&6
1571 +else
1572 +
1573 +
1574 +      ac_ext=cpp
1575 +ac_cpp='$CXXCPP $CPPFLAGS'
1576 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1577 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1578 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1579 +
1580 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 +/* end confdefs.h.  */
1582 +#include <math.h>
1583 +int
1584 +main ()
1585 +{
1586 +_acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
1587 +  ;
1588 +  return 0;
1589 +}
1590 +_ACEOF
1591 +if ac_fn_cxx_try_compile "$LINENO"; then :
1592 +  glibcxx_cv_func__float_trig_use=yes
1593 +else
1594 +  glibcxx_cv_func__float_trig_use=no
1595 +fi
1596 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597 +      ac_ext=c
1598 +ac_cpp='$CPP $CPPFLAGS'
1599 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602 +
1603 +fi
1604 +
1605 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
1606 +$as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
1607 +    if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
1608 +      for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
1609 +do :
1610 +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1611 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1612 +eval as_val=\$$as_ac_var
1613 +   if test "x$as_val" = x""yes; then :
1614 +  cat >>confdefs.h <<_ACEOF
1615 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1616 +_ACEOF
1617 +
1618 +fi
1619 +done
1620 +
1621 +    fi
1622 +  fi
1623 +
1624 +
1625 +
1626 +
1627 +
1628 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
1629 +$as_echo_n "checking for float round functions... " >&6; }
1630 +  if test "${glibcxx_cv_func_float_round_use+set}" = set; then :
1631 +  $as_echo_n "(cached) " >&6
1632 +else
1633 +
1634 +
1635 +    ac_ext=cpp
1636 +ac_cpp='$CXXCPP $CPPFLAGS'
1637 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1640 +
1641 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 +/* end confdefs.h.  */
1643 +#include <math.h>
1644 +int
1645 +main ()
1646 +{
1647 +ceilf (0); floorf (0);
1648 +  ;
1649 +  return 0;
1650 +}
1651 +_ACEOF
1652 +if ac_fn_cxx_try_compile "$LINENO"; then :
1653 +  glibcxx_cv_func_float_round_use=yes
1654 +else
1655 +  glibcxx_cv_func_float_round_use=no
1656 +fi
1657 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 +    ac_ext=c
1659 +ac_cpp='$CPP $CPPFLAGS'
1660 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663 +
1664 +fi
1665 +
1666 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
1667 +$as_echo "$glibcxx_cv_func_float_round_use" >&6; }
1668 +  if test x$glibcxx_cv_func_float_round_use = x"yes"; then
1669 +    for ac_func in ceilf floorf
1670 +do :
1671 +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1672 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1673 +eval as_val=\$$as_ac_var
1674 +   if test "x$as_val" = x""yes; then :
1675 +  cat >>confdefs.h <<_ACEOF
1676 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1677 +_ACEOF
1678 +
1679 +fi
1680 +done
1681 +
1682 +  else
1683 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
1684 +$as_echo_n "checking for _float round functions... " >&6; }
1685 +    if test "${glibcxx_cv_func__float_round_use+set}" = set; then :
1686 +  $as_echo_n "(cached) " >&6
1687 +else
1688 +
1689 +
1690 +      ac_ext=cpp
1691 +ac_cpp='$CXXCPP $CPPFLAGS'
1692 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1693 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1694 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1695 +
1696 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 +/* end confdefs.h.  */
1698 +#include <math.h>
1699 +int
1700 +main ()
1701 +{
1702 +_ceilf (0); _floorf (0);
1703 +  ;
1704 +  return 0;
1705 +}
1706 +_ACEOF
1707 +if ac_fn_cxx_try_compile "$LINENO"; then :
1708 +  glibcxx_cv_func__float_round_use=yes
1709 +else
1710 +  glibcxx_cv_func__float_round_use=no
1711 +fi
1712 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 +      ac_ext=c
1714 +ac_cpp='$CPP $CPPFLAGS'
1715 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1716 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1717 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1718 +
1719 +fi
1720 +
1721 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
1722 +$as_echo "$glibcxx_cv_func__float_round_use" >&6; }
1723 +    if test x$glibcxx_cv_func__float_round_use = x"yes"; then
1724 +      for ac_func in _ceilf _floorf
1725 +do :
1726 +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1727 +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1728 +eval as_val=\$$as_ac_var
1729 +   if test "x$as_val" = x""yes; then :
1730 +  cat >>confdefs.h <<_ACEOF
1731 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1732 +_ACEOF
1733 +
1734 +fi
1735 +done
1736 +
1737 +    fi
1738 +  fi
1739 +
1740 +
1741 +
1742 +
1743 +
1744 +
1745 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
1746 +$as_echo_n "checking for expf declaration... " >&6; }
1747 +  if test x${glibcxx_cv_func_expf_use+set} != xset; then
1748 +    if test "${glibcxx_cv_func_expf_use+set}" = set; then :
1749 +  $as_echo_n "(cached) " >&6
1750 +else
1751 +
1752 +
1753 +      ac_ext=cpp
1754 +ac_cpp='$CXXCPP $CPPFLAGS'
1755 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1758 +
1759 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 +/* end confdefs.h.  */
1761 +#include <math.h>
1762 +		      #ifdef HAVE_IEEEFP_H
1763 +		      #include <ieeefp.h>
1764 +		      #endif
1765 +
1766 +int
1767 +main ()
1768 +{
1769 + expf(0);
1770 +  ;
1771 +  return 0;
1772 +}
1773 +_ACEOF
1774 +if ac_fn_cxx_try_compile "$LINENO"; then :
1775 +  glibcxx_cv_func_expf_use=yes
1776 +else
1777 +  glibcxx_cv_func_expf_use=no
1778 +fi
1779 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 +      ac_ext=c
1781 +ac_cpp='$CPP $CPPFLAGS'
1782 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 +
1786 +
1787 +fi
1788 +
1789 +  fi
1790 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
1791 +$as_echo "$glibcxx_cv_func_expf_use" >&6; }
1792 +
1793 +  if test x$glibcxx_cv_func_expf_use = x"yes"; then
1794 +    for ac_func in expf
1795 +do :
1796 +  ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
1797 +if test "x$ac_cv_func_expf" = x""yes; then :
1798 +  cat >>confdefs.h <<_ACEOF
1799 +#define HAVE_EXPF 1
1800 +_ACEOF
1801 +
1802 +fi
1803 +done
1804 +
1805 +  else
1806 +
1807 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
1808 +$as_echo_n "checking for _expf declaration... " >&6; }
1809 +  if test x${glibcxx_cv_func__expf_use+set} != xset; then
1810 +    if test "${glibcxx_cv_func__expf_use+set}" = set; then :
1811 +  $as_echo_n "(cached) " >&6
1812 +else
1813 +
1814 +
1815 +      ac_ext=cpp
1816 +ac_cpp='$CXXCPP $CPPFLAGS'
1817 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1820 +
1821 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 +/* end confdefs.h.  */
1823 +#include <math.h>
1824 +		      #ifdef HAVE_IEEEFP_H
1825 +		      #include <ieeefp.h>
1826 +		      #endif
1827 +
1828 +int
1829 +main ()
1830 +{
1831 + _expf(0);
1832 +  ;
1833 +  return 0;
1834 +}
1835 +_ACEOF
1836 +if ac_fn_cxx_try_compile "$LINENO"; then :
1837 +  glibcxx_cv_func__expf_use=yes
1838 +else
1839 +  glibcxx_cv_func__expf_use=no
1840 +fi
1841 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 +      ac_ext=c
1843 +ac_cpp='$CPP $CPPFLAGS'
1844 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847 +
1848 +
1849 +fi
1850 +
1851 +  fi
1852 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
1853 +$as_echo "$glibcxx_cv_func__expf_use" >&6; }
1854 +
1855 +    if test x$glibcxx_cv_func__expf_use = x"yes"; then
1856 +      for ac_func in _expf
1857 +do :
1858 +  ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
1859 +if test "x$ac_cv_func__expf" = x""yes; then :
1860 +  cat >>confdefs.h <<_ACEOF
1861 +#define HAVE__EXPF 1
1862 +_ACEOF
1863 +
1864 +fi
1865 +done
1866 +
1867 +    fi
1868 +  fi
1869 +
1870 +
1871 +
1872 +
1873 +
1874 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
1875 +$as_echo_n "checking for isnanf declaration... " >&6; }
1876 +  if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
1877 +    if test "${glibcxx_cv_func_isnanf_use+set}" = set; then :
1878 +  $as_echo_n "(cached) " >&6
1879 +else
1880 +
1881 +
1882 +      ac_ext=cpp
1883 +ac_cpp='$CXXCPP $CPPFLAGS'
1884 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1887 +
1888 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 +/* end confdefs.h.  */
1890 +#include <math.h>
1891 +		      #ifdef HAVE_IEEEFP_H
1892 +		      #include <ieeefp.h>
1893 +		      #endif
1894 +
1895 +int
1896 +main ()
1897 +{
1898 + isnanf(0);
1899 +  ;
1900 +  return 0;
1901 +}
1902 +_ACEOF
1903 +if ac_fn_cxx_try_compile "$LINENO"; then :
1904 +  glibcxx_cv_func_isnanf_use=yes
1905 +else
1906 +  glibcxx_cv_func_isnanf_use=no
1907 +fi
1908 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 +      ac_ext=c
1910 +ac_cpp='$CPP $CPPFLAGS'
1911 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 +
1915 +
1916 +fi
1917 +
1918 +  fi
1919 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
1920 +$as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
1921 +
1922 +  if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
1923 +    for ac_func in isnanf
1924 +do :
1925 +  ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
1926 +if test "x$ac_cv_func_isnanf" = x""yes; then :
1927 +  cat >>confdefs.h <<_ACEOF
1928 +#define HAVE_ISNANF 1
1929 +_ACEOF
1930 +
1931 +fi
1932 +done
1933 +
1934 +  else
1935 +
1936 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
1937 +$as_echo_n "checking for _isnanf declaration... " >&6; }
1938 +  if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
1939 +    if test "${glibcxx_cv_func__isnanf_use+set}" = set; then :
1940 +  $as_echo_n "(cached) " >&6
1941 +else
1942 +
1943 +
1944 +      ac_ext=cpp
1945 +ac_cpp='$CXXCPP $CPPFLAGS'
1946 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1949 +
1950 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 +/* end confdefs.h.  */
1952 +#include <math.h>
1953 +		      #ifdef HAVE_IEEEFP_H
1954 +		      #include <ieeefp.h>
1955 +		      #endif
1956 +
1957 +int
1958 +main ()
1959 +{
1960 + _isnanf(0);
1961 +  ;
1962 +  return 0;
1963 +}
1964 +_ACEOF
1965 +if ac_fn_cxx_try_compile "$LINENO"; then :
1966 +  glibcxx_cv_func__isnanf_use=yes
1967 +else
1968 +  glibcxx_cv_func__isnanf_use=no
1969 +fi
1970 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 +      ac_ext=c
1972 +ac_cpp='$CPP $CPPFLAGS'
1973 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 +
1977 +
1978 +fi
1979 +
1980 +  fi
1981 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
1982 +$as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
1983 +
1984 +    if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
1985 +      for ac_func in _isnanf
1986 +do :
1987 +  ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
1988 +if test "x$ac_cv_func__isnanf" = x""yes; then :
1989 +  cat >>confdefs.h <<_ACEOF
1990 +#define HAVE__ISNANF 1
1991 +_ACEOF
1992 +
1993 +fi
1994 +done
1995 +
1996 +    fi
1997 +  fi
1998 +
1999 +
2000 +
2001 +
2002 +
2003 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
2004 +$as_echo_n "checking for isinff declaration... " >&6; }
2005 +  if test x${glibcxx_cv_func_isinff_use+set} != xset; then
2006 +    if test "${glibcxx_cv_func_isinff_use+set}" = set; then :
2007 +  $as_echo_n "(cached) " >&6
2008 +else
2009 +
2010 +
2011 +      ac_ext=cpp
2012 +ac_cpp='$CXXCPP $CPPFLAGS'
2013 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2016 +
2017 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 +/* end confdefs.h.  */
2019 +#include <math.h>
2020 +		      #ifdef HAVE_IEEEFP_H
2021 +		      #include <ieeefp.h>
2022 +		      #endif
2023 +
2024 +int
2025 +main ()
2026 +{
2027 + isinff(0);
2028 +  ;
2029 +  return 0;
2030 +}
2031 +_ACEOF
2032 +if ac_fn_cxx_try_compile "$LINENO"; then :
2033 +  glibcxx_cv_func_isinff_use=yes
2034 +else
2035 +  glibcxx_cv_func_isinff_use=no
2036 +fi
2037 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 +      ac_ext=c
2039 +ac_cpp='$CPP $CPPFLAGS'
2040 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043 +
2044 +
2045 +fi
2046 +
2047 +  fi
2048 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
2049 +$as_echo "$glibcxx_cv_func_isinff_use" >&6; }
2050 +
2051 +  if test x$glibcxx_cv_func_isinff_use = x"yes"; then
2052 +    for ac_func in isinff
2053 +do :
2054 +  ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
2055 +if test "x$ac_cv_func_isinff" = x""yes; then :
2056 +  cat >>confdefs.h <<_ACEOF
2057 +#define HAVE_ISINFF 1
2058 +_ACEOF
2059 +
2060 +fi
2061 +done
2062 +
2063 +  else
2064 +
2065 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
2066 +$as_echo_n "checking for _isinff declaration... " >&6; }
2067 +  if test x${glibcxx_cv_func__isinff_use+set} != xset; then
2068 +    if test "${glibcxx_cv_func__isinff_use+set}" = set; then :
2069 +  $as_echo_n "(cached) " >&6
2070 +else
2071 +
2072 +
2073 +      ac_ext=cpp
2074 +ac_cpp='$CXXCPP $CPPFLAGS'
2075 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2078 +
2079 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 +/* end confdefs.h.  */
2081 +#include <math.h>
2082 +		      #ifdef HAVE_IEEEFP_H
2083 +		      #include <ieeefp.h>
2084 +		      #endif
2085 +
2086 +int
2087 +main ()
2088 +{
2089 + _isinff(0);
2090 +  ;
2091 +  return 0;
2092 +}
2093 +_ACEOF
2094 +if ac_fn_cxx_try_compile "$LINENO"; then :
2095 +  glibcxx_cv_func__isinff_use=yes
2096 +else
2097 +  glibcxx_cv_func__isinff_use=no
2098 +fi
2099 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 +      ac_ext=c
2101 +ac_cpp='$CPP $CPPFLAGS'
2102 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 +
2106 +
2107 +fi
2108 +
2109 +  fi
2110 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
2111 +$as_echo "$glibcxx_cv_func__isinff_use" >&6; }
2112 +
2113 +    if test x$glibcxx_cv_func__isinff_use = x"yes"; then
2114 +      for ac_func in _isinff
2115 +do :
2116 +  ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
2117 +if test "x$ac_cv_func__isinff" = x""yes; then :
2118 +  cat >>confdefs.h <<_ACEOF
2119 +#define HAVE__ISINFF 1
2120 +_ACEOF
2121 +
2122 +fi
2123 +done
2124 +
2125 +    fi
2126 +  fi
2127 +
2128 +
2129 +
2130 +
2131 +
2132 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
2133 +$as_echo_n "checking for atan2f declaration... " >&6; }
2134 +  if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
2135 +    if test "${glibcxx_cv_func_atan2f_use+set}" = set; then :
2136 +  $as_echo_n "(cached) " >&6
2137 +else
2138 +
2139 +
2140 +      ac_ext=cpp
2141 +ac_cpp='$CXXCPP $CPPFLAGS'
2142 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2145 +
2146 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 +/* end confdefs.h.  */
2148 +#include <math.h>
2149 +int
2150 +main ()
2151 +{
2152 + atan2f(0, 0);
2153 +  ;
2154 +  return 0;
2155 +}
2156 +_ACEOF
2157 +if ac_fn_cxx_try_compile "$LINENO"; then :
2158 +  glibcxx_cv_func_atan2f_use=yes
2159 +else
2160 +  glibcxx_cv_func_atan2f_use=no
2161 +fi
2162 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 +      ac_ext=c
2164 +ac_cpp='$CPP $CPPFLAGS'
2165 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168 +
2169 +
2170 +fi
2171 +
2172 +  fi
2173 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
2174 +$as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
2175 +
2176 +  if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
2177 +    for ac_func in atan2f
2178 +do :
2179 +  ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
2180 +if test "x$ac_cv_func_atan2f" = x""yes; then :
2181 +  cat >>confdefs.h <<_ACEOF
2182 +#define HAVE_ATAN2F 1
2183 +_ACEOF
2184 +
2185 +fi
2186 +done
2187 +
2188 +  else
2189 +
2190 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
2191 +$as_echo_n "checking for _atan2f declaration... " >&6; }
2192 +  if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
2193 +    if test "${glibcxx_cv_func__atan2f_use+set}" = set; then :
2194 +  $as_echo_n "(cached) " >&6
2195 +else
2196 +
2197 +
2198 +      ac_ext=cpp
2199 +ac_cpp='$CXXCPP $CPPFLAGS'
2200 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2203 +
2204 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 +/* end confdefs.h.  */
2206 +#include <math.h>
2207 +int
2208 +main ()
2209 +{
2210 + _atan2f(0, 0);
2211 +  ;
2212 +  return 0;
2213 +}
2214 +_ACEOF
2215 +if ac_fn_cxx_try_compile "$LINENO"; then :
2216 +  glibcxx_cv_func__atan2f_use=yes
2217 +else
2218 +  glibcxx_cv_func__atan2f_use=no
2219 +fi
2220 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 +      ac_ext=c
2222 +ac_cpp='$CPP $CPPFLAGS'
2223 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226 +
2227 +
2228 +fi
2229 +
2230 +  fi
2231 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
2232 +$as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
2233 +
2234 +    if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
2235 +      for ac_func in _atan2f
2236 +do :
2237 +  ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
2238 +if test "x$ac_cv_func__atan2f" = x""yes; then :
2239 +  cat >>confdefs.h <<_ACEOF
2240 +#define HAVE__ATAN2F 1
2241 +_ACEOF
2242 +
2243 +fi
2244 +done
2245 +
2246 +    fi
2247 +  fi
2248 +
2249 +
2250 +
2251 +
2252 +
2253 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
2254 +$as_echo_n "checking for fabsf declaration... " >&6; }
2255 +  if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
2256 +    if test "${glibcxx_cv_func_fabsf_use+set}" = set; then :
2257 +  $as_echo_n "(cached) " >&6
2258 +else
2259 +
2260 +
2261 +      ac_ext=cpp
2262 +ac_cpp='$CXXCPP $CPPFLAGS'
2263 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2266 +
2267 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 +/* end confdefs.h.  */
2269 +#include <math.h>
2270 +		      #ifdef HAVE_IEEEFP_H
2271 +		      #include <ieeefp.h>
2272 +		      #endif
2273 +
2274 +int
2275 +main ()
2276 +{
2277 + fabsf(0);
2278 +  ;
2279 +  return 0;
2280 +}
2281 +_ACEOF
2282 +if ac_fn_cxx_try_compile "$LINENO"; then :
2283 +  glibcxx_cv_func_fabsf_use=yes
2284 +else
2285 +  glibcxx_cv_func_fabsf_use=no
2286 +fi
2287 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 +      ac_ext=c
2289 +ac_cpp='$CPP $CPPFLAGS'
2290 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 +
2294 +
2295 +fi
2296 +
2297 +  fi
2298 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
2299 +$as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
2300 +
2301 +  if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
2302 +    for ac_func in fabsf
2303 +do :
2304 +  ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
2305 +if test "x$ac_cv_func_fabsf" = x""yes; then :
2306 +  cat >>confdefs.h <<_ACEOF
2307 +#define HAVE_FABSF 1
2308 +_ACEOF
2309 +
2310 +fi
2311 +done
2312 +
2313 +  else
2314 +
2315 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
2316 +$as_echo_n "checking for _fabsf declaration... " >&6; }
2317 +  if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
2318 +    if test "${glibcxx_cv_func__fabsf_use+set}" = set; then :
2319 +  $as_echo_n "(cached) " >&6
2320 +else
2321 +
2322 +
2323 +      ac_ext=cpp
2324 +ac_cpp='$CXXCPP $CPPFLAGS'
2325 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2328 +
2329 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 +/* end confdefs.h.  */
2331 +#include <math.h>
2332 +		      #ifdef HAVE_IEEEFP_H
2333 +		      #include <ieeefp.h>
2334 +		      #endif
2335 +
2336 +int
2337 +main ()
2338 +{
2339 + _fabsf(0);
2340 +  ;
2341 +  return 0;
2342 +}
2343 +_ACEOF
2344 +if ac_fn_cxx_try_compile "$LINENO"; then :
2345 +  glibcxx_cv_func__fabsf_use=yes
2346 +else
2347 +  glibcxx_cv_func__fabsf_use=no
2348 +fi
2349 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 +      ac_ext=c
2351 +ac_cpp='$CPP $CPPFLAGS'
2352 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 +
2356 +
2357 +fi
2358 +
2359 +  fi
2360 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
2361 +$as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
2362 +
2363 +    if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
2364 +      for ac_func in _fabsf
2365 +do :
2366 +  ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
2367 +if test "x$ac_cv_func__fabsf" = x""yes; then :
2368 +  cat >>confdefs.h <<_ACEOF
2369 +#define HAVE__FABSF 1
2370 +_ACEOF
2371 +
2372 +fi
2373 +done
2374 +
2375 +    fi
2376 +  fi
2377 +
2378 +
2379 +
2380 +
2381 +
2382 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
2383 +$as_echo_n "checking for fmodf declaration... " >&6; }
2384 +  if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
2385 +    if test "${glibcxx_cv_func_fmodf_use+set}" = set; then :
2386 +  $as_echo_n "(cached) " >&6
2387 +else
2388 +
2389 +
2390 +      ac_ext=cpp
2391 +ac_cpp='$CXXCPP $CPPFLAGS'
2392 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2395 +
2396 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 +/* end confdefs.h.  */
2398 +#include <math.h>
2399 +int
2400 +main ()
2401 +{
2402 + fmodf(0, 0);
2403 +  ;
2404 +  return 0;
2405 +}
2406 +_ACEOF
2407 +if ac_fn_cxx_try_compile "$LINENO"; then :
2408 +  glibcxx_cv_func_fmodf_use=yes
2409 +else
2410 +  glibcxx_cv_func_fmodf_use=no
2411 +fi
2412 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 +      ac_ext=c
2414 +ac_cpp='$CPP $CPPFLAGS'
2415 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418 +
2419 +
2420 +fi
2421 +
2422 +  fi
2423 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
2424 +$as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
2425 +
2426 +  if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
2427 +    for ac_func in fmodf
2428 +do :
2429 +  ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
2430 +if test "x$ac_cv_func_fmodf" = x""yes; then :
2431 +  cat >>confdefs.h <<_ACEOF
2432 +#define HAVE_FMODF 1
2433 +_ACEOF
2434 +
2435 +fi
2436 +done
2437 +
2438 +  else
2439 +
2440 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
2441 +$as_echo_n "checking for _fmodf declaration... " >&6; }
2442 +  if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
2443 +    if test "${glibcxx_cv_func__fmodf_use+set}" = set; then :
2444 +  $as_echo_n "(cached) " >&6
2445 +else
2446 +
2447 +
2448 +      ac_ext=cpp
2449 +ac_cpp='$CXXCPP $CPPFLAGS'
2450 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2453 +
2454 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 +/* end confdefs.h.  */
2456 +#include <math.h>
2457 +int
2458 +main ()
2459 +{
2460 + _fmodf(0, 0);
2461 +  ;
2462 +  return 0;
2463 +}
2464 +_ACEOF
2465 +if ac_fn_cxx_try_compile "$LINENO"; then :
2466 +  glibcxx_cv_func__fmodf_use=yes
2467 +else
2468 +  glibcxx_cv_func__fmodf_use=no
2469 +fi
2470 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 +      ac_ext=c
2472 +ac_cpp='$CPP $CPPFLAGS'
2473 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476 +
2477 +
2478 +fi
2479 +
2480 +  fi
2481 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
2482 +$as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
2483 +
2484 +    if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
2485 +      for ac_func in _fmodf
2486 +do :
2487 +  ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
2488 +if test "x$ac_cv_func__fmodf" = x""yes; then :
2489 +  cat >>confdefs.h <<_ACEOF
2490 +#define HAVE__FMODF 1
2491 +_ACEOF
2492 +
2493 +fi
2494 +done
2495 +
2496 +    fi
2497 +  fi
2498 +
2499 +
2500 +
2501 +
2502 +
2503 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
2504 +$as_echo_n "checking for frexpf declaration... " >&6; }
2505 +  if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
2506 +    if test "${glibcxx_cv_func_frexpf_use+set}" = set; then :
2507 +  $as_echo_n "(cached) " >&6
2508 +else
2509 +
2510 +
2511 +      ac_ext=cpp
2512 +ac_cpp='$CXXCPP $CPPFLAGS'
2513 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2516 +
2517 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 +/* end confdefs.h.  */
2519 +#include <math.h>
2520 +int
2521 +main ()
2522 +{
2523 + frexpf(0, 0);
2524 +  ;
2525 +  return 0;
2526 +}
2527 +_ACEOF
2528 +if ac_fn_cxx_try_compile "$LINENO"; then :
2529 +  glibcxx_cv_func_frexpf_use=yes
2530 +else
2531 +  glibcxx_cv_func_frexpf_use=no
2532 +fi
2533 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 +      ac_ext=c
2535 +ac_cpp='$CPP $CPPFLAGS'
2536 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 +
2540 +
2541 +fi
2542 +
2543 +  fi
2544 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
2545 +$as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
2546 +
2547 +  if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
2548 +    for ac_func in frexpf
2549 +do :
2550 +  ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
2551 +if test "x$ac_cv_func_frexpf" = x""yes; then :
2552 +  cat >>confdefs.h <<_ACEOF
2553 +#define HAVE_FREXPF 1
2554 +_ACEOF
2555 +
2556 +fi
2557 +done
2558 +
2559 +  else
2560 +
2561 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
2562 +$as_echo_n "checking for _frexpf declaration... " >&6; }
2563 +  if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
2564 +    if test "${glibcxx_cv_func__frexpf_use+set}" = set; then :
2565 +  $as_echo_n "(cached) " >&6
2566 +else
2567 +
2568 +
2569 +      ac_ext=cpp
2570 +ac_cpp='$CXXCPP $CPPFLAGS'
2571 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 +
2575 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 +/* end confdefs.h.  */
2577 +#include <math.h>
2578 +int
2579 +main ()
2580 +{
2581 + _frexpf(0, 0);
2582 +  ;
2583 +  return 0;
2584 +}
2585 +_ACEOF
2586 +if ac_fn_cxx_try_compile "$LINENO"; then :
2587 +  glibcxx_cv_func__frexpf_use=yes
2588 +else
2589 +  glibcxx_cv_func__frexpf_use=no
2590 +fi
2591 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 +      ac_ext=c
2593 +ac_cpp='$CPP $CPPFLAGS'
2594 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597 +
2598 +
2599 +fi
2600 +
2601 +  fi
2602 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
2603 +$as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
2604 +
2605 +    if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
2606 +      for ac_func in _frexpf
2607 +do :
2608 +  ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
2609 +if test "x$ac_cv_func__frexpf" = x""yes; then :
2610 +  cat >>confdefs.h <<_ACEOF
2611 +#define HAVE__FREXPF 1
2612 +_ACEOF
2613 +
2614 +fi
2615 +done
2616 +
2617 +    fi
2618 +  fi
2619 +
2620 +
2621 +
2622 +
2623 +
2624 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
2625 +$as_echo_n "checking for hypotf declaration... " >&6; }
2626 +  if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
2627 +    if test "${glibcxx_cv_func_hypotf_use+set}" = set; then :
2628 +  $as_echo_n "(cached) " >&6
2629 +else
2630 +
2631 +
2632 +      ac_ext=cpp
2633 +ac_cpp='$CXXCPP $CPPFLAGS'
2634 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2637 +
2638 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 +/* end confdefs.h.  */
2640 +#include <math.h>
2641 +int
2642 +main ()
2643 +{
2644 + hypotf(0, 0);
2645 +  ;
2646 +  return 0;
2647 +}
2648 +_ACEOF
2649 +if ac_fn_cxx_try_compile "$LINENO"; then :
2650 +  glibcxx_cv_func_hypotf_use=yes
2651 +else
2652 +  glibcxx_cv_func_hypotf_use=no
2653 +fi
2654 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 +      ac_ext=c
2656 +ac_cpp='$CPP $CPPFLAGS'
2657 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 +
2661 +
2662 +fi
2663 +
2664 +  fi
2665 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
2666 +$as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
2667 +
2668 +  if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
2669 +    for ac_func in hypotf
2670 +do :
2671 +  ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
2672 +if test "x$ac_cv_func_hypotf" = x""yes; then :
2673 +  cat >>confdefs.h <<_ACEOF
2674 +#define HAVE_HYPOTF 1
2675 +_ACEOF
2676 +
2677 +fi
2678 +done
2679 +
2680 +  else
2681 +
2682 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
2683 +$as_echo_n "checking for _hypotf declaration... " >&6; }
2684 +  if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
2685 +    if test "${glibcxx_cv_func__hypotf_use+set}" = set; then :
2686 +  $as_echo_n "(cached) " >&6
2687 +else
2688 +
2689 +
2690 +      ac_ext=cpp
2691 +ac_cpp='$CXXCPP $CPPFLAGS'
2692 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2695 +
2696 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 +/* end confdefs.h.  */
2698 +#include <math.h>
2699 +int
2700 +main ()
2701 +{
2702 + _hypotf(0, 0);
2703 +  ;
2704 +  return 0;
2705 +}
2706 +_ACEOF
2707 +if ac_fn_cxx_try_compile "$LINENO"; then :
2708 +  glibcxx_cv_func__hypotf_use=yes
2709 +else
2710 +  glibcxx_cv_func__hypotf_use=no
2711 +fi
2712 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 +      ac_ext=c
2714 +ac_cpp='$CPP $CPPFLAGS'
2715 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 +
2719 +
2720 +fi
2721 +
2722 +  fi
2723 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
2724 +$as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
2725 +
2726 +    if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
2727 +      for ac_func in _hypotf
2728 +do :
2729 +  ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
2730 +if test "x$ac_cv_func__hypotf" = x""yes; then :
2731 +  cat >>confdefs.h <<_ACEOF
2732 +#define HAVE__HYPOTF 1
2733 +_ACEOF
2734 +
2735 +fi
2736 +done
2737 +
2738 +    fi
2739 +  fi
2740 +
2741 +
2742 +
2743 +
2744 +
2745 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
2746 +$as_echo_n "checking for ldexpf declaration... " >&6; }
2747 +  if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
2748 +    if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then :
2749 +  $as_echo_n "(cached) " >&6
2750 +else
2751 +
2752 +
2753 +      ac_ext=cpp
2754 +ac_cpp='$CXXCPP $CPPFLAGS'
2755 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2758 +
2759 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 +/* end confdefs.h.  */
2761 +#include <math.h>
2762 +int
2763 +main ()
2764 +{
2765 + ldexpf(0, 0);
2766 +  ;
2767 +  return 0;
2768 +}
2769 +_ACEOF
2770 +if ac_fn_cxx_try_compile "$LINENO"; then :
2771 +  glibcxx_cv_func_ldexpf_use=yes
2772 +else
2773 +  glibcxx_cv_func_ldexpf_use=no
2774 +fi
2775 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 +      ac_ext=c
2777 +ac_cpp='$CPP $CPPFLAGS'
2778 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 +
2782 +
2783 +fi
2784 +
2785 +  fi
2786 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
2787 +$as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
2788 +
2789 +  if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
2790 +    for ac_func in ldexpf
2791 +do :
2792 +  ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
2793 +if test "x$ac_cv_func_ldexpf" = x""yes; then :
2794 +  cat >>confdefs.h <<_ACEOF
2795 +#define HAVE_LDEXPF 1
2796 +_ACEOF
2797 +
2798 +fi
2799 +done
2800 +
2801 +  else
2802 +
2803 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
2804 +$as_echo_n "checking for _ldexpf declaration... " >&6; }
2805 +  if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
2806 +    if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then :
2807 +  $as_echo_n "(cached) " >&6
2808 +else
2809 +
2810 +
2811 +      ac_ext=cpp
2812 +ac_cpp='$CXXCPP $CPPFLAGS'
2813 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2816 +
2817 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 +/* end confdefs.h.  */
2819 +#include <math.h>
2820 +int
2821 +main ()
2822 +{
2823 + _ldexpf(0, 0);
2824 +  ;
2825 +  return 0;
2826 +}
2827 +_ACEOF
2828 +if ac_fn_cxx_try_compile "$LINENO"; then :
2829 +  glibcxx_cv_func__ldexpf_use=yes
2830 +else
2831 +  glibcxx_cv_func__ldexpf_use=no
2832 +fi
2833 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834 +      ac_ext=c
2835 +ac_cpp='$CPP $CPPFLAGS'
2836 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 +
2840 +
2841 +fi
2842 +
2843 +  fi
2844 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
2845 +$as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
2846 +
2847 +    if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
2848 +      for ac_func in _ldexpf
2849 +do :
2850 +  ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
2851 +if test "x$ac_cv_func__ldexpf" = x""yes; then :
2852 +  cat >>confdefs.h <<_ACEOF
2853 +#define HAVE__LDEXPF 1
2854 +_ACEOF
2855 +
2856 +fi
2857 +done
2858 +
2859 +    fi
2860 +  fi
2861 +
2862 +
2863 +
2864 +
2865 +
2866 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
2867 +$as_echo_n "checking for logf declaration... " >&6; }
2868 +  if test x${glibcxx_cv_func_logf_use+set} != xset; then
2869 +    if test "${glibcxx_cv_func_logf_use+set}" = set; then :
2870 +  $as_echo_n "(cached) " >&6
2871 +else
2872 +
2873 +
2874 +      ac_ext=cpp
2875 +ac_cpp='$CXXCPP $CPPFLAGS'
2876 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2879 +
2880 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 +/* end confdefs.h.  */
2882 +#include <math.h>
2883 +		      #ifdef HAVE_IEEEFP_H
2884 +		      #include <ieeefp.h>
2885 +		      #endif
2886 +
2887 +int
2888 +main ()
2889 +{
2890 + logf(0);
2891 +  ;
2892 +  return 0;
2893 +}
2894 +_ACEOF
2895 +if ac_fn_cxx_try_compile "$LINENO"; then :
2896 +  glibcxx_cv_func_logf_use=yes
2897 +else
2898 +  glibcxx_cv_func_logf_use=no
2899 +fi
2900 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 +      ac_ext=c
2902 +ac_cpp='$CPP $CPPFLAGS'
2903 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906 +
2907 +
2908 +fi
2909 +
2910 +  fi
2911 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
2912 +$as_echo "$glibcxx_cv_func_logf_use" >&6; }
2913 +
2914 +  if test x$glibcxx_cv_func_logf_use = x"yes"; then
2915 +    for ac_func in logf
2916 +do :
2917 +  ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
2918 +if test "x$ac_cv_func_logf" = x""yes; then :
2919 +  cat >>confdefs.h <<_ACEOF
2920 +#define HAVE_LOGF 1
2921 +_ACEOF
2922 +
2923 +fi
2924 +done
2925 +
2926 +  else
2927 +
2928 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
2929 +$as_echo_n "checking for _logf declaration... " >&6; }
2930 +  if test x${glibcxx_cv_func__logf_use+set} != xset; then
2931 +    if test "${glibcxx_cv_func__logf_use+set}" = set; then :
2932 +  $as_echo_n "(cached) " >&6
2933 +else
2934 +
2935 +
2936 +      ac_ext=cpp
2937 +ac_cpp='$CXXCPP $CPPFLAGS'
2938 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2941 +
2942 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 +/* end confdefs.h.  */
2944 +#include <math.h>
2945 +		      #ifdef HAVE_IEEEFP_H
2946 +		      #include <ieeefp.h>
2947 +		      #endif
2948 +
2949 +int
2950 +main ()
2951 +{
2952 + _logf(0);
2953 +  ;
2954 +  return 0;
2955 +}
2956 +_ACEOF
2957 +if ac_fn_cxx_try_compile "$LINENO"; then :
2958 +  glibcxx_cv_func__logf_use=yes
2959 +else
2960 +  glibcxx_cv_func__logf_use=no
2961 +fi
2962 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 +      ac_ext=c
2964 +ac_cpp='$CPP $CPPFLAGS'
2965 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968 +
2969 +
2970 +fi
2971 +
2972 +  fi
2973 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
2974 +$as_echo "$glibcxx_cv_func__logf_use" >&6; }
2975 +
2976 +    if test x$glibcxx_cv_func__logf_use = x"yes"; then
2977 +      for ac_func in _logf
2978 +do :
2979 +  ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
2980 +if test "x$ac_cv_func__logf" = x""yes; then :
2981 +  cat >>confdefs.h <<_ACEOF
2982 +#define HAVE__LOGF 1
2983 +_ACEOF
2984 +
2985 +fi
2986 +done
2987 +
2988 +    fi
2989 +  fi