* collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
[official-gcc.git] / libstdc++-v3 / configure
blobd8623e8f0530b624674bb2654b29c54babdde129
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for package-unused version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='package-unused'
269 PACKAGE_TARNAME='libstdc++'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="src/ios.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_INC_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
767 # Report the --help message.
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
775 Usage: $0 [OPTION]... [VAR=VALUE]...
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
780 Defaults for the options are specified in brackets.
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
793 _ACEOF
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
807 For better control, use the options below.
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
824 cat <<\_ACEOF
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of package-unused version-unused:";;
841 esac
842 cat <<\_ACEOF
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-multilib build many library versions (default)
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --disable-hosted-libstdcxx
855 only build freestanding C++ runtime support
856 --enable-sjlj-exceptions
857 force use of builtin_setjmp for exceptions [default=auto]
858 --enable-libstdcxx-pch
859 build pre-compiled libstdc++ headers [default=$is_hosted]
860 --enable-cstdio=PACKAGE
861 use target-specific I/O package [default=stdio]
862 --enable-clocale[=MODEL]
863 use MODEL for target locale package [default=auto]
864 --enable-nls
865 use Native Language Support (default)
866 --enable-cheaders=KIND
867 construct "C" headers for g++ [default=$c_model]
868 --enable-c-mbchar
869 enable multibyte (wide) characters [default=yes]
870 --enable-c99
871 turns on ISO/IEC 9899:1999 support [default=yes]
872 --enable-long-long
873 enables I/O support for 'long long' [default=yes]
874 --enable-concept-checks
875 use Boost-derived template checks [default=no]
876 --enable-libstdcxx-debug-flags=FLAGS
877 pass compiler FLAGS when building debug library [default="-g3
878 -O0"]
879 --enable-libstdcxx-debug
880 build extra debug library [default=no]
881 --enable-cxx-flags=FLAGS
882 pass compiler FLAGS when building library [default=]
883 --enable-symvers=STYLE
884 enables symbol versioning of the shared library [default=yes]
885 --enable-version-specific-runtime-libs
886 Specify that runtime libraries should be installed in
887 a compiler-specific directory
889 Optional Packages:
890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
892 --with-target-subdir=SUBDIR
893 configuring in a subdirectory
894 --with-cross-host=HOST
895 configuring with a cross compiler
896 --with-newlib
897 assume newlib as a system C library
898 --with-gnu-ld assume the C compiler uses GNU ld default=no
899 --with-pic try to use only PIC/non-PIC objects default=use both
900 --with-gxx-include-dir=DIR
901 installation directory for include files
903 Some influential environment variables:
905 C compiler command
906 CFLAGS
907 C compiler flags
908 LDFLAGS
909 linker flags, e.g. -L<lib dir> if you have
910 libraries in a nonstandard directory <lib dir>
911 CPPFLAGS
912 C/C++ preprocessor flags, e.g. -I<include dir> if you
913 have headers in a nonstandard directory <include dir>
915 C++ compiler command
916 CXXFLAGS
917 C++ compiler flags
918 CXXCPP
919 C++ preprocessor
921 C preprocessor
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
926 _ACEOF
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
931 ac_popdir=`pwd`
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
934 ac_builddir=.
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 else
941 ac_dir_suffix= ac_top_builddir=
944 case $srcdir in
945 .) # No --srcdir option. We are building in place.
946 ac_srcdir=.
947 if test -z "$ac_top_builddir"; then
948 ac_top_srcdir=.
949 else
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951 fi ;;
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
955 *) # Relative path.
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 esac
960 # Do not use `cd foo && pwd` to compute absolute paths, because
961 # the directories may not exist.
962 case `pwd` in
963 .) ac_abs_builddir="$ac_dir";;
965 case "$ac_dir" in
966 .) ac_abs_builddir=`pwd`;;
967 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
968 *) ac_abs_builddir=`pwd`/"$ac_dir";;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_top_builddir=${ac_top_builddir}.;;
974 case ${ac_top_builddir}. in
975 .) ac_abs_top_builddir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
977 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_srcdir=$ac_srcdir;;
983 case $ac_srcdir in
984 .) ac_abs_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
986 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
987 esac;;
988 esac
989 case $ac_abs_builddir in
990 .) ac_abs_top_srcdir=$ac_top_srcdir;;
992 case $ac_top_srcdir in
993 .) ac_abs_top_srcdir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
995 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
996 esac;;
997 esac
999 cd $ac_dir
1000 # Check for guested configure; otherwise get Cygnus style configure.
1001 if test -f $ac_srcdir/configure.gnu; then
1002 echo
1003 $SHELL $ac_srcdir/configure.gnu --help=recursive
1004 elif test -f $ac_srcdir/configure; then
1005 echo
1006 $SHELL $ac_srcdir/configure --help=recursive
1007 elif test -f $ac_srcdir/configure.ac ||
1008 test -f $ac_srcdir/configure.in; then
1009 echo
1010 $ac_configure --help
1011 else
1012 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1014 cd "$ac_popdir"
1015 done
1018 test -n "$ac_init_help" && exit 0
1019 if $ac_init_version; then
1020 cat <<\_ACEOF
1021 package-unused configure version-unused
1022 generated by GNU Autoconf 2.58
1024 Copyright (C) 2003 Free Software Foundation, Inc.
1025 This configure script is free software; the Free Software Foundation
1026 gives unlimited permission to copy, distribute and modify it.
1027 _ACEOF
1028 exit 0
1030 exec 5>config.log
1031 cat >&5 <<_ACEOF
1032 This file contains any messages produced by compilers while
1033 running configure, to aid debugging if configure makes a mistake.
1035 It was created by package-unused $as_me version-unused, which was
1036 generated by GNU Autoconf 2.58. Invocation command line was
1038 $ $0 $@
1040 _ACEOF
1042 cat <<_ASUNAME
1043 ## --------- ##
1044 ## Platform. ##
1045 ## --------- ##
1047 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1048 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1049 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1050 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1051 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1053 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1054 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1056 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1057 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1058 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1059 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1060 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1061 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1062 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1064 _ASUNAME
1066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1067 for as_dir in $PATH
1069 IFS=$as_save_IFS
1070 test -z "$as_dir" && as_dir=.
1071 echo "PATH: $as_dir"
1072 done
1074 } >&5
1076 cat >&5 <<_ACEOF
1079 ## ----------- ##
1080 ## Core tests. ##
1081 ## ----------- ##
1083 _ACEOF
1086 # Keep a trace of the command line.
1087 # Strip out --no-create and --no-recursion so they do not pile up.
1088 # Strip out --silent because we don't want to record it for future runs.
1089 # Also quote any args containing shell meta-characters.
1090 # Make two passes to allow for proper duplicate-argument suppression.
1091 ac_configure_args=
1092 ac_configure_args0=
1093 ac_configure_args1=
1094 ac_sep=
1095 ac_must_keep_next=false
1096 for ac_pass in 1 2
1098 for ac_arg
1100 case $ac_arg in
1101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 continue ;;
1105 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1106 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1107 esac
1108 case $ac_pass in
1109 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1111 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1112 if test $ac_must_keep_next = true; then
1113 ac_must_keep_next=false # Got value, back to normal.
1114 else
1115 case $ac_arg in
1116 *=* | --config-cache | -C | -disable-* | --disable-* \
1117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1119 | -with-* | --with-* | -without-* | --without-* | --x)
1120 case "$ac_configure_args0 " in
1121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1122 esac
1124 -* ) ac_must_keep_next=true ;;
1125 esac
1127 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1128 # Get rid of the leading space.
1129 ac_sep=" "
1131 esac
1132 done
1133 done
1134 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1135 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1137 # When interrupted or exit'd, cleanup temporary files, and complete
1138 # config.log. We remove comments because anyway the quotes in there
1139 # would cause problems or look ugly.
1140 # WARNING: Be sure not to use single quotes in there, as some shells,
1141 # such as our DU 5.0 friend, will then `close' the trap.
1142 trap 'exit_status=$?
1143 # Save into config.log some information that might help in debugging.
1145 echo
1147 cat <<\_ASBOX
1148 ## ---------------- ##
1149 ## Cache variables. ##
1150 ## ---------------- ##
1151 _ASBOX
1152 echo
1153 # The following way of writing the cache mishandles newlines in values,
1155 (set) 2>&1 |
1156 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1157 *ac_space=\ *)
1158 sed -n \
1159 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163 sed -n \
1164 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1166 esac;
1168 echo
1170 cat <<\_ASBOX
1171 ## ----------------- ##
1172 ## Output variables. ##
1173 ## ----------------- ##
1174 _ASBOX
1175 echo
1176 for ac_var in $ac_subst_vars
1178 eval ac_val=$`echo $ac_var`
1179 echo "$ac_var='"'"'$ac_val'"'"'"
1180 done | sort
1181 echo
1183 if test -n "$ac_subst_files"; then
1184 cat <<\_ASBOX
1185 ## ------------- ##
1186 ## Output files. ##
1187 ## ------------- ##
1188 _ASBOX
1189 echo
1190 for ac_var in $ac_subst_files
1192 eval ac_val=$`echo $ac_var`
1193 echo "$ac_var='"'"'$ac_val'"'"'"
1194 done | sort
1195 echo
1198 if test -s confdefs.h; then
1199 cat <<\_ASBOX
1200 ## ----------- ##
1201 ## confdefs.h. ##
1202 ## ----------- ##
1203 _ASBOX
1204 echo
1205 sed "/^$/d" confdefs.h | sort
1206 echo
1208 test "$ac_signal" != 0 &&
1209 echo "$as_me: caught signal $ac_signal"
1210 echo "$as_me: exit $exit_status"
1211 } >&5
1212 rm -f core *.core &&
1213 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1214 exit $exit_status
1216 for ac_signal in 1 2 13 15; do
1217 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1218 done
1219 ac_signal=0
1221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1222 rm -rf conftest* confdefs.h
1223 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1224 echo >confdefs.h
1226 # Predefined preprocessor variables.
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_NAME "$PACKAGE_NAME"
1230 _ACEOF
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1235 _ACEOF
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1240 _ACEOF
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_STRING "$PACKAGE_STRING"
1245 _ACEOF
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1250 _ACEOF
1253 # Let the site file select an alternate cache file if it wants to.
1254 # Prefer explicitly selected file to automatically selected ones.
1255 if test -z "$CONFIG_SITE"; then
1256 if test "x$prefix" != xNONE; then
1257 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1258 else
1259 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262 for ac_site_file in $CONFIG_SITE; do
1263 if test -r "$ac_site_file"; then
1264 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1265 echo "$as_me: loading site script $ac_site_file" >&6;}
1266 sed 's/^/| /' "$ac_site_file" >&5
1267 . "$ac_site_file"
1269 done
1271 if test -r "$cache_file"; then
1272 # Some versions of bash will fail to source /dev/null (special
1273 # files actually), so we avoid doing that.
1274 if test -f "$cache_file"; then
1275 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1276 echo "$as_me: loading cache $cache_file" >&6;}
1277 case $cache_file in
1278 [\\/]* | ?:[\\/]* ) . $cache_file;;
1279 *) . ./$cache_file;;
1280 esac
1282 else
1283 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1284 echo "$as_me: creating cache $cache_file" >&6;}
1285 >$cache_file
1288 # Check that the precious variables saved in the cache have kept the same
1289 # value.
1290 ac_cache_corrupted=false
1291 for ac_var in `(set) 2>&1 |
1292 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1294 eval ac_new_set=\$ac_env_${ac_var}_set
1295 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1296 eval ac_new_val="\$ac_env_${ac_var}_value"
1297 case $ac_old_set,$ac_new_set in
1298 set,)
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1302 ,set)
1303 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1304 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1305 ac_cache_corrupted=: ;;
1306 ,);;
1308 if test "x$ac_old_val" != "x$ac_new_val"; then
1309 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1310 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1311 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1312 echo "$as_me: former value: $ac_old_val" >&2;}
1313 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1314 echo "$as_me: current value: $ac_new_val" >&2;}
1315 ac_cache_corrupted=:
1316 fi;;
1317 esac
1318 # Pass precious variables to config.status.
1319 if test "$ac_new_set" = set; then
1320 case $ac_new_val in
1321 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1323 *) ac_arg=$ac_var=$ac_new_val ;;
1324 esac
1325 case " $ac_configure_args " in
1326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1327 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1328 esac
1330 done
1331 if $ac_cache_corrupted; then
1332 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1333 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1334 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1335 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1336 { (exit 1); exit 1; }; }
1339 ac_ext=c
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1372 ac_config_headers="$ac_config_headers config.h"
1375 # This works around the fact that libtool configuration may change LD
1376 # for this particular configuration, but some shells, instead of
1377 # keeping the changes in LD private, export them just because LD is
1378 # exported. Only used at the end of this file.
1379 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1381 # For libtool versioning info, format is CURRENT:REVISION:AGE
1382 libtool_VERSION=6:0:0
1385 # Find the rest of the source tree framework.
1387 # Sets up multi_basedir, which is srcdir/.. plus the usual
1388 # "multi_source_toprel_bottom_adjust" lunacy as needed.
1389 # Default to --enable-multilib
1390 # Check whether --enable-multilib or --disable-multilib was given.
1391 if test "${enable_multilib+set}" = set; then
1392 enableval="$enable_multilib"
1393 case "$enableval" in
1394 yes) multilib=yes ;;
1395 no) multilib=no ;;
1396 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1397 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1398 { (exit 1); exit 1; }; } ;;
1399 esac
1400 else
1401 multilib=yes
1404 # We may get other options which we leave undocumented:
1405 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1406 # See config-ml.in if you want the gory details.
1408 if test "$srcdir" = "."; then
1409 if test "$with_target_subdir" != "."; then
1410 multi_basedir="$srcdir/$with_multisrctop../.."
1411 else
1412 multi_basedir="$srcdir/$with_multisrctop.."
1414 else
1415 multi_basedir="$srcdir/.."
1419 ac_config_commands="$ac_config_commands default-1"
1422 # The generated code is exactly the same, except that automake's looks in
1423 # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other
1424 # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1425 # know what they are or what the other differences might be (and they keep
1426 # changing anyhow).
1428 # Looking in multi_basedir seems smarter, so actually execute that branch.
1429 if false; then
1430 # this is for automake
1431 ac_aux_dir=
1432 for ac_dir in .. $srcdir/..; do
1433 if test -f $ac_dir/install-sh; then
1434 ac_aux_dir=$ac_dir
1435 ac_install_sh="$ac_aux_dir/install-sh -c"
1436 break
1437 elif test -f $ac_dir/install.sh; then
1438 ac_aux_dir=$ac_dir
1439 ac_install_sh="$ac_aux_dir/install.sh -c"
1440 break
1441 elif test -f $ac_dir/shtool; then
1442 ac_aux_dir=$ac_dir
1443 ac_install_sh="$ac_aux_dir/shtool install -c"
1444 break
1446 done
1447 if test -z "$ac_aux_dir"; then
1448 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1449 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1450 { (exit 1); exit 1; }; }
1452 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1453 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1454 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1456 else
1457 # this is for autoconf
1458 ac_aux_dir=
1459 for ac_dir in ${multi_basedir}; do
1460 if test -f $ac_dir/install-sh; then
1461 ac_aux_dir=$ac_dir
1462 ac_install_sh="$ac_aux_dir/install-sh -c"
1463 break
1464 elif test -f $ac_dir/install.sh; then
1465 ac_aux_dir=$ac_dir
1466 ac_install_sh="$ac_aux_dir/install.sh -c"
1467 break
1468 elif test -f $ac_dir/shtool; then
1469 ac_aux_dir=$ac_dir
1470 ac_install_sh="$ac_aux_dir/shtool install -c"
1471 break
1473 done
1474 if test -z "$ac_aux_dir"; then
1475 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1476 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1477 { (exit 1); exit 1; }; }
1479 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1480 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1481 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1487 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1489 # You will slowly go insane if you do not grok the following fact: when
1490 # building v3 as part of the compiler, the top-level /target/ becomes the
1491 # library's /host/. configure then causes --target to default to --host,
1492 # exactly like any other package using autoconf. Therefore, 'target' and
1493 # 'host' will always be the same. This makes sense both for native and
1494 # cross compilers, just think about it for a little while. :-)
1496 # Also, if v3 is being configured as part of a cross compiler, the top-level
1497 # configure script will pass the "real" host as $with_cross_host.
1499 # Do not delete or change the following two lines. For why, see
1500 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1501 # Make sure we can run config.sub.
1502 $ac_config_sub sun4 >/dev/null 2>&1 ||
1503 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1504 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1505 { (exit 1); exit 1; }; }
1507 echo "$as_me:$LINENO: checking build system type" >&5
1508 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1509 if test "${ac_cv_build+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512 ac_cv_build_alias=$build_alias
1513 test -z "$ac_cv_build_alias" &&
1514 ac_cv_build_alias=`$ac_config_guess`
1515 test -z "$ac_cv_build_alias" &&
1516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1518 { (exit 1); exit 1; }; }
1519 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1520 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1521 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1522 { (exit 1); exit 1; }; }
1525 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1526 echo "${ECHO_T}$ac_cv_build" >&6
1527 build=$ac_cv_build
1528 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1529 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1530 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533 echo "$as_me:$LINENO: checking host system type" >&5
1534 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1535 if test "${ac_cv_host+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 ac_cv_host_alias=$host_alias
1539 test -z "$ac_cv_host_alias" &&
1540 ac_cv_host_alias=$ac_cv_build_alias
1541 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1543 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1547 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1548 echo "${ECHO_T}$ac_cv_host" >&6
1549 host=$ac_cv_host
1550 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 echo "$as_me:$LINENO: checking target system type" >&5
1556 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1557 if test "${ac_cv_target+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 ac_cv_target_alias=$target_alias
1561 test "x$ac_cv_target_alias" = "x" &&
1562 ac_cv_target_alias=$ac_cv_host_alias
1563 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1570 echo "${ECHO_T}$ac_cv_target" >&6
1571 target=$ac_cv_target
1572 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 # The aliases save the names the user supplied, while $host etc.
1578 # will get canonicalized.
1579 test -n "$target_alias" &&
1580 test "$program_prefix$program_suffix$program_transform_name" = \
1581 NONENONEs,x,x, &&
1582 program_prefix=${target_alias}-
1583 target_alias=${target_alias-$host_alias}
1585 # Handy for debugging:
1586 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1588 if test "$build" != "$host"; then
1589 # We are being configured with some form of cross compiler.
1590 GLIBCXX_IS_NATIVE=false
1592 else
1593 GLIBCXX_IS_NATIVE=true
1596 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1597 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1598 # 1.x: minimum required version
1599 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1600 # of other PACKAGE_* variables will, however, and there's nothing
1601 # we can do about that; they come from AC_INIT).
1602 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1603 # file in the top srcdir, etc, etc), so stop complaining.
1604 # no-dependencies: turns off auto dependency generation (just for now)
1605 # -Wall: turns on all automake warnings...
1606 # -Wno-portability: ...except this one, since GNU make is now required.
1607 am__api_version="1.7"
1608 # Find a good install program. We prefer a C program (faster),
1609 # so one script is as good as another. But avoid the broken or
1610 # incompatible versions:
1611 # SysV /etc/install, /usr/sbin/install
1612 # SunOS /usr/etc/install
1613 # IRIX /sbin/install
1614 # AIX /bin/install
1615 # AmigaOS /C/install, which installs bootblocks on floppy discs
1616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1619 # OS/2's system install, which has a completely different semantic
1620 # ./install, which can be erroneously created by make from ./install.sh.
1621 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1622 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1623 if test -z "$INSTALL"; then
1624 if test "${ac_cv_path_install+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 # Account for people who put trailing slashes in PATH elements.
1633 case $as_dir/ in
1634 ./ | .// | /cC/* | \
1635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1636 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1637 /usr/ucb/* ) ;;
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 # Don't use installbsd from OSF since it installs stuff as root
1641 # by default.
1642 for ac_prog in ginstall scoinst install; do
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1645 if test $ac_prog = install &&
1646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647 # AIX install. It has an incompatible calling convention.
1649 elif test $ac_prog = install &&
1650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # program-specific install script used by HP pwplus--don't use.
1653 else
1654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655 break 3
1658 done
1659 done
1661 esac
1662 done
1666 if test "${ac_cv_path_install+set}" = set; then
1667 INSTALL=$ac_cv_path_install
1668 else
1669 # As a last resort, use the slow shell script. We don't cache a
1670 # path for INSTALL within a source directory, because that will
1671 # break other packages using the cache if that directory is
1672 # removed, or if the path is relative.
1673 INSTALL=$ac_install_sh
1676 echo "$as_me:$LINENO: result: $INSTALL" >&5
1677 echo "${ECHO_T}$INSTALL" >&6
1679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680 # It thinks the first close brace ends the variable substitution.
1681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1687 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1688 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1689 # Just in case
1690 sleep 1
1691 echo timestamp > conftest.file
1692 # Do `set' in a subshell so we don't clobber the current shell's
1693 # arguments. Must try -L first in case configure is actually a
1694 # symlink; some systems play weird games with the mod time of symlinks
1695 # (eg FreeBSD returns the mod time of the symlink's containing
1696 # directory).
1697 if (
1698 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1699 if test "$*" = "X"; then
1700 # -L didn't work.
1701 set X `ls -t $srcdir/configure conftest.file`
1703 rm -f conftest.file
1704 if test "$*" != "X $srcdir/configure conftest.file" \
1705 && test "$*" != "X conftest.file $srcdir/configure"; then
1707 # If neither matched, then we have a broken ls. This can happen
1708 # if, for instance, CONFIG_SHELL is bash and it inherits a
1709 # broken ls alias from the environment. This has actually
1710 # happened. Such a system could not be considered "sane".
1711 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1712 alias in your environment" >&5
1713 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1714 alias in your environment" >&2;}
1715 { (exit 1); exit 1; }; }
1718 test "$2" = conftest.file
1720 then
1721 # Ok.
1723 else
1724 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1725 Check your system clock" >&5
1726 echo "$as_me: error: newly created file is older than distributed files!
1727 Check your system clock" >&2;}
1728 { (exit 1); exit 1; }; }
1730 echo "$as_me:$LINENO: result: yes" >&5
1731 echo "${ECHO_T}yes" >&6
1732 test "$program_prefix" != NONE &&
1733 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1734 # Use a double $ so make ignores it.
1735 test "$program_suffix" != NONE &&
1736 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1737 # Double any \ or $. echo might interpret backslashes.
1738 # By default was `s,x,x', remove it if useless.
1739 cat <<\_ACEOF >conftest.sed
1740 s/[\\$]/&&/g;s/;s,x,x,$//
1741 _ACEOF
1742 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1743 rm conftest.sed
1746 # expand $ac_aux_dir to an absolute path
1747 am_aux_dir=`cd $ac_aux_dir && pwd`
1749 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1750 # Use eval to expand $SHELL
1751 if eval "$MISSING --run true"; then
1752 am_missing_run="$MISSING --run "
1753 else
1754 am_missing_run=
1755 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1756 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759 for ac_prog in gawk mawk nawk awk
1761 # Extract the first word of "$ac_prog", so it can be a program name with args.
1762 set dummy $ac_prog; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_AWK+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$AWK"; then
1769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1770 else
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_AWK="$ac_prog"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 break 2
1782 done
1783 done
1787 AWK=$ac_cv_prog_AWK
1788 if test -n "$AWK"; then
1789 echo "$as_me:$LINENO: result: $AWK" >&5
1790 echo "${ECHO_T}$AWK" >&6
1791 else
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1796 test -n "$AWK" && break
1797 done
1799 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1800 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1801 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1802 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 cat >conftest.make <<\_ACEOF
1806 all:
1807 @echo 'ac_maketemp="$(MAKE)"'
1808 _ACEOF
1809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1810 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1811 if test -n "$ac_maketemp"; then
1812 eval ac_cv_prog_make_${ac_make}_set=yes
1813 else
1814 eval ac_cv_prog_make_${ac_make}_set=no
1816 rm -f conftest.make
1818 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821 SET_MAKE=
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 SET_MAKE="MAKE=${MAKE-make}"
1828 rm -rf .tst 2>/dev/null
1829 mkdir .tst 2>/dev/null
1830 if test -d .tst; then
1831 am__leading_dot=.
1832 else
1833 am__leading_dot=_
1835 rmdir .tst 2>/dev/null
1837 # test to see if srcdir already configured
1838 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1839 test -f $srcdir/config.status; then
1840 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1841 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1842 { (exit 1); exit 1; }; }
1845 # test whether we have cygpath
1846 if test -z "$CYGPATH_W"; then
1847 if (cygpath --version) >/dev/null 2>/dev/null; then
1848 CYGPATH_W='cygpath -w'
1849 else
1850 CYGPATH_W=echo
1855 # Define the identity of the package.
1856 PACKAGE='libstdc++'
1857 VERSION='version-unused'
1860 # Some tools Automake needs.
1862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1877 AMTAR=${AMTAR-"${am_missing_run}tar"}
1879 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881 # Installed binaries are usually stripped using `strip' when the user
1882 # run `make install-strip'. However `strip' might not be the right
1883 # tool to use in cross-compilation environments, therefore Automake
1884 # will honor the `STRIP' environment variable to overrule this program.
1885 if test "$cross_compiling" != no; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}strip; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_STRIP+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$STRIP"; then
1895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 STRIP=$ac_cv_prog_STRIP
1914 if test -n "$STRIP"; then
1915 echo "$as_me:$LINENO: result: $STRIP" >&5
1916 echo "${ECHO_T}$STRIP" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_STRIP"; then
1924 ac_ct_STRIP=$STRIP
1925 # Extract the first word of "strip", so it can be a program name with args.
1926 set dummy strip; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_STRIP"; then
1933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_STRIP="strip"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1949 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1952 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1953 if test -n "$ac_ct_STRIP"; then
1954 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1955 echo "${ECHO_T}$ac_ct_STRIP" >&6
1956 else
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1961 STRIP=$ac_ct_STRIP
1962 else
1963 STRIP="$ac_cv_prog_STRIP"
1967 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1969 # We need awk for the "check" target. The system "awk" is bad on
1970 # some platforms.
1975 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1976 # up critical shell variables.
1978 # Keep these sync'd with the list in Makefile.am. The first provides an
1979 # expandable list at autoconf time; the second provides an expandable list
1980 # (i.e., shell variable) at configure time.
1982 SUBDIRS='include libmath libsupc++ src po testsuite'
1984 # These need to be absolute paths, yet at the same time need to
1985 # canonicalize only relative paths, because then amd will not unmount
1986 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1987 glibcxx_builddir=`${PWDCMD-pwd}`
1988 case $srcdir in
1989 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1990 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1991 esac
1992 toplevel_srcdir=${glibcxx_srcdir}/..
1997 # We use these options to decide which functions to include. They are
1998 # set from the top level.
2000 # Check whether --with-target-subdir or --without-target-subdir was given.
2001 if test "${with_target_subdir+set}" = set; then
2002 withval="$with_target_subdir"
2007 # Check whether --with-cross-host or --without-cross-host was given.
2008 if test "${with_cross_host+set}" = set; then
2009 withval="$with_cross_host"
2014 # Check whether --with-newlib or --without-newlib was given.
2015 if test "${with_newlib+set}" = set; then
2016 withval="$with_newlib"
2020 # We're almost certainly being configured before anything else which uses
2021 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2022 # we not cache the value of CXX that we "discover" here, because it's set
2023 # to something unique for us and libjava. Other target libraries need to
2024 # find CXX for themselves. We yank the rug out from under the normal AC_*
2025 # process by sneakily renaming the cache variable. This also lets us debug
2026 # the value of "our" CXX in postmortems.
2028 # We must also force CXX to /not/ be a precious variable, otherwise the
2029 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2030 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2031 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2032 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2034 # -fno-builtin must be present here so that a non-conflicting form of
2035 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2040 save_CXXFLAGS="$CXXFLAGS"
2041 CXXFLAGS="$CXXFLAGS -fno-builtin"
2042 ac_ext=c
2043 ac_cpp='$CPP $CPPFLAGS'
2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 break 2
2069 done
2070 done
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076 echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6
2078 else
2079 echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2084 if test -z "$ac_cv_prog_CC"; then
2085 ac_ct_CC=$CC
2086 # Extract the first word of "gcc", so it can be a program name with args.
2087 set dummy gcc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$ac_ct_CC"; then
2094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_ac_ct_CC="gcc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113 if test -n "$ac_ct_CC"; then
2114 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115 echo "${ECHO_T}$ac_ct_CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2121 CC=$ac_ct_CC
2122 else
2123 CC="$ac_cv_prog_CC"
2126 if test -z "$CC"; then
2127 if test -n "$ac_tool_prefix"; then
2128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2129 set dummy ${ac_tool_prefix}cc; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_CC+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 if test -n "$CC"; then
2136 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 ac_cv_prog_CC="${ac_tool_prefix}cc"
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 break 2
2149 done
2150 done
2154 CC=$ac_cv_prog_CC
2155 if test -n "$CC"; then
2156 echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6
2158 else
2159 echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2164 if test -z "$ac_cv_prog_CC"; then
2165 ac_ct_CC=$CC
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$ac_ct_CC"; then
2174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_ac_ct_CC="cc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2187 done
2188 done
2192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193 if test -n "$ac_ct_CC"; then
2194 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195 echo "${ECHO_T}$ac_ct_CC" >&6
2196 else
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 CC=$ac_ct_CC
2202 else
2203 CC="$ac_cv_prog_CC"
2207 if test -z "$CC"; then
2208 # Extract the first word of "cc", so it can be a program name with args.
2209 set dummy cc; ac_word=$2
2210 echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
2218 ac_prog_rejected=no
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2227 ac_prog_rejected=yes
2228 continue
2230 ac_cv_prog_CC="cc"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2237 if test $ac_prog_rejected = yes; then
2238 # We found a bogon in the path, so make sure we never use it.
2239 set dummy $ac_cv_prog_CC
2240 shift
2241 if test $# != 0; then
2242 # We chose a different compiler from the bogus one.
2243 # However, it has the same basename, so the bogon will be chosen
2244 # first if we set CC to just the basename; use the full file name.
2245 shift
2246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253 echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6
2255 else
2256 echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2261 if test -z "$CC"; then
2262 if test -n "$ac_tool_prefix"; then
2263 for ac_prog in cl
2265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293 echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2300 test -n "$CC" && break
2301 done
2303 if test -z "$CC"; then
2304 ac_ct_CC=$CC
2305 for ac_prog in cl
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CC="$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2328 done
2329 done
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6
2337 else
2338 echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2342 test -n "$ac_ct_CC" && break
2343 done
2345 CC=$ac_ct_CC
2351 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: no acceptable C compiler found in \$PATH
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2357 # Provide some information about the compiler.
2358 echo "$as_me:$LINENO:" \
2359 "checking for C compiler version" >&5
2360 ac_compiler=`set X $ac_compile; echo $2`
2361 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2362 (eval $ac_compiler --version </dev/null >&5) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2367 (eval $ac_compiler -v </dev/null >&5) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2372 (eval $ac_compiler -V </dev/null >&5) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2385 main ()
2389 return 0;
2391 _ACEOF
2392 # FIXME: Cleanup?
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 gcc_no_link=no
2399 else
2400 gcc_no_link=yes
2403 if test x$gcc_no_link = xyes; then
2404 # Setting cross_compile will disable run tests; it will
2405 # also disable AC_CHECK_FILE but that's generally
2406 # correct if we can't link.
2407 cross_compiling=yes
2408 EXEEXT=
2409 else
2410 cat >conftest.$ac_ext <<_ACEOF
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2418 main ()
2422 return 0;
2424 _ACEOF
2425 ac_clean_files_save=$ac_clean_files
2426 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2427 # Try to create an executable without -o first, disregard a.out.
2428 # It will help us diagnose broken compilers, and finding out an intuition
2429 # of exeext.
2430 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2431 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2432 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2433 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2434 (eval $ac_link_default) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; then
2438 # Find the output, starting from the most likely. This scheme is
2439 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2440 # resort.
2442 # Be careful to initialize this variable, since it used to be cached.
2443 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2444 ac_cv_exeext=
2445 # b.out is created by i960 compilers.
2446 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2448 test -f "$ac_file" || continue
2449 case $ac_file in
2450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2452 conftest.$ac_ext )
2453 # This is the source file.
2455 [ab].out )
2456 # We found the default executable, but exeext='' is most
2457 # certainly right.
2458 break;;
2459 *.* )
2460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2461 # FIXME: I believe we export ac_cv_exeext for Libtool,
2462 # but it would be cool to find out if it's true. Does anybody
2463 # maintain Libtool? --akim.
2464 export ac_cv_exeext
2465 break;;
2467 break;;
2468 esac
2469 done
2470 else
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: C compiler cannot create executables
2477 See \`config.log' for more details." >&2;}
2478 { (exit 77); exit 77; }; }
2481 ac_exeext=$ac_cv_exeext
2482 echo "$as_me:$LINENO: result: $ac_file" >&5
2483 echo "${ECHO_T}$ac_file" >&6
2485 # Check the compiler produces executables we can run. If not, either
2486 # the compiler is broken, or we cross compile.
2487 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2488 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2489 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2490 # If not cross compiling, check that we can run a simple program.
2491 if test "$cross_compiling" != yes; then
2492 if { ac_try='./$ac_file'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 cross_compiling=no
2499 else
2500 if test "$cross_compiling" = maybe; then
2501 cross_compiling=yes
2502 else
2503 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2513 echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6
2516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2517 ac_clean_files=$ac_clean_files_save
2518 # Check the compiler produces executables we can run. If not, either
2519 # the compiler is broken, or we cross compile.
2520 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2522 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2523 echo "${ECHO_T}$cross_compiling" >&6
2525 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528 (eval $ac_link) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 # `rm'.
2536 for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2538 case $ac_file in
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541 export ac_cv_exeext
2542 break;;
2543 * ) break;;
2544 esac
2545 done
2546 else
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2554 rm -f conftest$ac_cv_exeext
2555 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556 echo "${ECHO_T}$ac_cv_exeext" >&6
2558 rm -f conftest.$ac_ext
2559 EXEEXT=$ac_cv_exeext
2560 ac_exeext=$EXEEXT
2562 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2564 if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h. */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2575 main ()
2579 return 0;
2581 _ACEOF
2582 rm -f conftest.o conftest.obj
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
2588 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2589 case $ac_file in
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2592 break;;
2593 esac
2594 done
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2602 See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }
2606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2608 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609 echo "${ECHO_T}$ac_cv_objext" >&6
2610 OBJEXT=$ac_cv_objext
2611 ac_objext=$OBJEXT
2612 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2625 main ()
2627 #ifndef __GNUC__
2628 choke me
2629 #endif
2632 return 0;
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_compiler_gnu=yes
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 ac_compiler_gnu=no
2663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2669 GCC=`test $ac_compiler_gnu = yes && echo yes`
2670 ac_test_CFLAGS=${CFLAGS+set}
2671 ac_save_CFLAGS=$CFLAGS
2672 CFLAGS="-g"
2673 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2686 main ()
2690 return 0;
2692 _ACEOF
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_prog_cc_g=yes
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 ac_cv_prog_cc_g=no
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2725 if test "$ac_test_CFLAGS" = set; then
2726 CFLAGS=$ac_save_CFLAGS
2727 elif test $ac_cv_prog_cc_g = yes; then
2728 if test "$GCC" = yes; then
2729 CFLAGS="-g -O2"
2730 else
2731 CFLAGS="-g"
2733 else
2734 if test "$GCC" = yes; then
2735 CFLAGS="-O2"
2736 else
2737 CFLAGS=
2740 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2741 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2742 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 ac_cv_prog_cc_stdc=no
2746 ac_save_CC=$CC
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753 #include <stdarg.h>
2754 #include <stdio.h>
2755 #include <sys/types.h>
2756 #include <sys/stat.h>
2757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2758 struct buf { int x; };
2759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2760 static char *e (p, i)
2761 char **p;
2762 int i;
2764 return p[i];
2766 static char *f (char * (*g) (char **, int), char **p, ...)
2768 char *s;
2769 va_list v;
2770 va_start (v,p);
2771 s = g (p, va_arg (v,int));
2772 va_end (v);
2773 return s;
2776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2777 function prototypes and stuff, but not '\xHH' hex character constants.
2778 These don't provoke an error unfortunately, instead are silently treated
2779 as 'x'. The following induces an error, until -std1 is added to get
2780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2781 array size at least. It's necessary to write '\x00'==0 to get something
2782 that's true only with -std1. */
2783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2785 int test (int i, double x);
2786 struct s1 {int (*f) (int a);};
2787 struct s2 {int (*f) (double a);};
2788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2789 int argc;
2790 char **argv;
2792 main ()
2794 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2796 return 0;
2798 _ACEOF
2799 # Don't try gcc -ansi; that turns off useful extensions and
2800 # breaks some systems' header files.
2801 # AIX -qlanglvl=ansi
2802 # Ultrix and OSF/1 -std1
2803 # HP-UX 10.20 and later -Ae
2804 # HP-UX older versions -Aa -D_HPUX_SOURCE
2805 # SVR4 -Xc -D__EXTENSIONS__
2806 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2808 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_cv_prog_cc_stdc=$ac_arg
2831 break
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2837 rm -f conftest.err conftest.$ac_objext
2838 done
2839 rm -f conftest.$ac_ext conftest.$ac_objext
2840 CC=$ac_save_CC
2844 case "x$ac_cv_prog_cc_stdc" in
2845 x|xno)
2846 echo "$as_me:$LINENO: result: none needed" >&5
2847 echo "${ECHO_T}none needed" >&6 ;;
2849 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2850 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2851 CC="$CC $ac_cv_prog_cc_stdc" ;;
2852 esac
2854 # Some people use a C++ compiler to compile C. Since we use `exit',
2855 # in C++ we need to declare it. In case someone uses the same compiler
2856 # for both compiling C and C++ we need to have the C++ compiler decide
2857 # the declaration of exit, since it's the most demanding environment.
2858 cat >conftest.$ac_ext <<_ACEOF
2859 #ifndef __cplusplus
2860 choke me
2861 #endif
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 (eval $ac_try) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; } &&
2878 { ac_try='test -s conftest.$ac_objext'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2884 for ac_declaration in \
2885 '' \
2886 'extern "C" void std::exit (int) throw (); using std::exit;' \
2887 'extern "C" void std::exit (int); using std::exit;' \
2888 'extern "C" void exit (int) throw ();' \
2889 'extern "C" void exit (int);' \
2890 'void exit (int);'
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 $ac_declaration
2899 #include <stdlib.h>
2901 main ()
2903 exit (42);
2905 return 0;
2907 _ACEOF
2908 rm -f conftest.$ac_objext
2909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; } &&
2923 { ac_try='test -s conftest.$ac_objext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 continue
2936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 $ac_declaration
2945 main ()
2947 exit (42);
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 (eval $ac_try) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 break
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980 done
2981 rm -f conftest*
2982 if test -n "$ac_declaration"; then
2983 echo '#ifdef __cplusplus' >>confdefs.h
2984 echo $ac_declaration >>confdefs.h
2985 echo '#endif' >>confdefs.h
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 ac_ext=cc
3001 ac_cpp='$CXXCPP $CPPFLAGS'
3002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3005 if test -n "$ac_tool_prefix"; then
3006 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3010 echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 if test -n "$CXX"; then
3016 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3034 CXX=$glibcxx_cv_prog_CXX
3035 if test -n "$CXX"; then
3036 echo "$as_me:$LINENO: result: $CXX" >&5
3037 echo "${ECHO_T}$CXX" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040 echo "${ECHO_T}no" >&6
3043 test -n "$CXX" && break
3044 done
3046 if test -z "$CXX"; then
3047 ac_ct_CXX=$CXX
3048 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3054 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 if test -n "$ac_ct_CXX"; then
3058 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_ac_ct_CXX="$ac_prog"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3071 done
3072 done
3076 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3077 if test -n "$ac_ct_CXX"; then
3078 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3079 echo "${ECHO_T}$ac_ct_CXX" >&6
3080 else
3081 echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3085 test -n "$ac_ct_CXX" && break
3086 done
3087 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3089 CXX=$ac_ct_CXX
3093 # Provide some information about the compiler.
3094 echo "$as_me:$LINENO:" \
3095 "checking for C++ compiler version" >&5
3096 ac_compiler=`set X $ac_compile; echo $2`
3097 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3098 (eval $ac_compiler --version </dev/null >&5) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }
3102 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3103 (eval $ac_compiler -v </dev/null >&5) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }
3107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3108 (eval $ac_compiler -V </dev/null >&5) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }
3113 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3114 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3115 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3126 main ()
3128 #ifndef __GNUC__
3129 choke me
3130 #endif
3133 return 0;
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138 (eval $ac_compile) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 ac_compiler_gnu=yes
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_compiler_gnu=no
3164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3168 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3169 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3170 GXX=`test $ac_compiler_gnu = yes && echo yes`
3171 ac_test_CXXFLAGS=${CXXFLAGS+set}
3172 ac_save_CXXFLAGS=$CXXFLAGS
3173 CXXFLAGS="-g"
3174 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3175 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3176 if test "${ac_cv_prog_cxx_g+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3187 main ()
3191 return 0;
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_prog_cxx_g=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 ac_cv_prog_cxx_g=no
3222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3224 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3226 if test "$ac_test_CXXFLAGS" = set; then
3227 CXXFLAGS=$ac_save_CXXFLAGS
3228 elif test $ac_cv_prog_cxx_g = yes; then
3229 if test "$GXX" = yes; then
3230 CXXFLAGS="-g -O2"
3231 else
3232 CXXFLAGS="-g"
3234 else
3235 if test "$GXX" = yes; then
3236 CXXFLAGS="-O2"
3237 else
3238 CXXFLAGS=
3241 for ac_declaration in \
3242 '' \
3243 'extern "C" void std::exit (int) throw (); using std::exit;' \
3244 'extern "C" void std::exit (int); using std::exit;' \
3245 'extern "C" void exit (int) throw ();' \
3246 'extern "C" void exit (int);' \
3247 'void exit (int);'
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 $ac_declaration
3256 #include <stdlib.h>
3258 main ()
3260 exit (42);
3262 return 0;
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; } &&
3280 { ac_try='test -s conftest.$ac_objext'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 (eval $ac_try) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 continue
3293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3294 cat >conftest.$ac_ext <<_ACEOF
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 $ac_declaration
3302 main ()
3304 exit (42);
3306 return 0;
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 (eval $ac_try) 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 (eval $ac_try) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }; }; then
3330 break
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 done
3338 rm -f conftest*
3339 if test -n "$ac_declaration"; then
3340 echo '#ifdef __cplusplus' >>confdefs.h
3341 echo $ac_declaration >>confdefs.h
3342 echo '#endif' >>confdefs.h
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 CXXFLAGS="$save_CXXFLAGS"
3356 # For directory versioning (e.g., headers) and other variables.
3357 echo "$as_me:$LINENO: checking for GCC version number" >&5
3358 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3359 gcc_version=`$CXX -dumpversion`
3360 echo "$as_me:$LINENO: result: $gcc_version" >&5
3361 echo "${ECHO_T}$gcc_version" >&6
3363 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3364 # available). Uncomment the next line to force a particular method.
3365 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3366 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3367 LN_S=$as_ln_s
3368 if test "$LN_S" = "ln -s"; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3371 else
3372 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3373 echo "${ECHO_T}no, using $LN_S" >&6
3376 #LN_S='cp -p'
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}as; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_AS+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 if test -n "$AS"; then
3387 ac_cv_prog_AS="$AS" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_AS="${ac_tool_prefix}as"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3405 AS=$ac_cv_prog_AS
3406 if test -n "$AS"; then
3407 echo "$as_me:$LINENO: result: $AS" >&5
3408 echo "${ECHO_T}$AS" >&6
3409 else
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3415 if test -z "$ac_cv_prog_AS"; then
3416 ac_ct_AS=$AS
3417 # Extract the first word of "as", so it can be a program name with args.
3418 set dummy as; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$ac_ct_AS"; then
3425 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_AS="as"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3438 done
3439 done
3443 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3444 if test -n "$ac_ct_AS"; then
3445 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3446 echo "${ECHO_T}$ac_ct_AS" >&6
3447 else
3448 echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3452 AS=$ac_ct_AS
3453 else
3454 AS="$ac_cv_prog_AS"
3457 if test -n "$ac_tool_prefix"; then
3458 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3459 set dummy ${ac_tool_prefix}ar; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_prog_AR+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465 if test -n "$AR"; then
3466 ac_cv_prog_AR="$AR" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_AR="${ac_tool_prefix}ar"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3479 done
3480 done
3484 AR=$ac_cv_prog_AR
3485 if test -n "$AR"; then
3486 echo "$as_me:$LINENO: result: $AR" >&5
3487 echo "${ECHO_T}$AR" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no" >&5
3490 echo "${ECHO_T}no" >&6
3494 if test -z "$ac_cv_prog_AR"; then
3495 ac_ct_AR=$AR
3496 # Extract the first word of "ar", so it can be a program name with args.
3497 set dummy ar; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -n "$ac_ct_AR"; then
3504 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_AR="ar"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3522 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3523 if test -n "$ac_ct_AR"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3525 echo "${ECHO_T}$ac_ct_AR" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6
3531 AR=$ac_ct_AR
3532 else
3533 AR="$ac_cv_prog_AR"
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3539 echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541 if test "${ac_cv_prog_RANLIB+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 if test -n "$RANLIB"; then
3545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3558 done
3559 done
3563 RANLIB=$ac_cv_prog_RANLIB
3564 if test -n "$RANLIB"; then
3565 echo "$as_me:$LINENO: result: $RANLIB" >&5
3566 echo "${ECHO_T}$RANLIB" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6
3573 if test -z "$ac_cv_prog_RANLIB"; then
3574 ac_ct_RANLIB=$RANLIB
3575 # Extract the first word of "ranlib", so it can be a program name with args.
3576 set dummy ranlib; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 if test -n "$ac_ct_RANLIB"; then
3583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_RANLIB="ranlib"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3599 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3603 if test -n "$ac_ct_RANLIB"; then
3604 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3605 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3606 else
3607 echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3611 RANLIB=$ac_ct_RANLIB
3612 else
3613 RANLIB="$ac_cv_prog_RANLIB"
3617 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3618 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3619 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3620 if test "${enable_maintainer_mode+set}" = set; then
3621 enableval="$enable_maintainer_mode"
3622 USE_MAINTAINER_MODE=$enableval
3623 else
3624 USE_MAINTAINER_MODE=no
3626 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3627 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3630 if test $USE_MAINTAINER_MODE = yes; then
3631 MAINTAINER_MODE_TRUE=
3632 MAINTAINER_MODE_FALSE='#'
3633 else
3634 MAINTAINER_MODE_TRUE='#'
3635 MAINTAINER_MODE_FALSE=
3638 MAINT=$MAINTAINER_MODE_TRUE
3642 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3643 # which are themselves conditionally expanded.
3644 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3645 ## other macros from doing the same. This should be automated.) -pme
3646 need_libmath=no
3647 enable_wchar_t=no
3648 #enable_libstdcxx_debug=no
3649 #enable_libstdcxx_pch=no
3650 #enable_cheaders=c
3651 #c_compatibility=no
3652 #enable_abi_check=no
3653 #enable_symvers=no
3654 #enable_hosted_libstdcxx=yes
3656 # Find platform-specific directories containing configuration info.
3657 # Also possibly modify flags used elsewhere, as needed by the platform.
3659 . $glibcxx_srcdir/configure.host
3660 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3661 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3662 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3663 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3667 #AC_MSG_NOTICE([====== Starting libtool configuration])
3669 # Check whether --enable-shared or --disable-shared was given.
3670 if test "${enable_shared+set}" = set; then
3671 enableval="$enable_shared"
3672 p=${PACKAGE-default}
3673 case $enableval in
3674 yes) enable_shared=yes ;;
3675 no) enable_shared=no ;;
3677 enable_shared=no
3678 # Look at the argument we got. We use all the common list separators.
3679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3680 for pkg in $enableval; do
3681 if test "X$pkg" = "X$p"; then
3682 enable_shared=yes
3684 done
3685 IFS="$ac_save_ifs"
3687 esac
3688 else
3689 enable_shared=yes
3691 # Check whether --enable-static or --disable-static was given.
3692 if test "${enable_static+set}" = set; then
3693 enableval="$enable_static"
3694 p=${PACKAGE-default}
3695 case $enableval in
3696 yes) enable_static=yes ;;
3697 no) enable_static=no ;;
3699 enable_static=no
3700 # Look at the argument we got. We use all the common list separators.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3702 for pkg in $enableval; do
3703 if test "X$pkg" = "X$p"; then
3704 enable_static=yes
3706 done
3707 IFS="$ac_save_ifs"
3709 esac
3710 else
3711 enable_static=yes
3713 # Check whether --enable-fast-install or --disable-fast-install was given.
3714 if test "${enable_fast_install+set}" = set; then
3715 enableval="$enable_fast_install"
3716 p=${PACKAGE-default}
3717 case $enableval in
3718 yes) enable_fast_install=yes ;;
3719 no) enable_fast_install=no ;;
3721 enable_fast_install=no
3722 # Look at the argument we got. We use all the common list separators.
3723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3724 for pkg in $enableval; do
3725 if test "X$pkg" = "X$p"; then
3726 enable_fast_install=yes
3728 done
3729 IFS="$ac_save_ifs"
3731 esac
3732 else
3733 enable_fast_install=yes
3736 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3737 if test "${with_gnu_ld+set}" = set; then
3738 withval="$with_gnu_ld"
3739 test "$withval" = no || with_gnu_ld=yes
3740 else
3741 with_gnu_ld=no
3743 ac_prog=ld
3744 if test "$GCC" = yes; then
3745 # Check if gcc -print-prog-name=ld gives a path.
3746 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3747 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3748 case $host in
3749 *-*-mingw*)
3750 # gcc leaves a trailing carriage return which upsets mingw
3751 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3753 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3754 esac
3755 case $ac_prog in
3756 # Accept absolute paths.
3757 [\\/]* | [A-Za-z]:[\\/]*)
3758 re_direlt='/[^/][^/]*/\.\./'
3759 # Canonicalize the path of ld
3760 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3761 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3762 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3763 done
3764 test -z "$LD" && LD="$ac_prog"
3767 # If it fails, then pretend we aren't using GCC.
3768 ac_prog=ld
3771 # If it is relative, then search for the first ld in PATH.
3772 with_gnu_ld=unknown
3774 esac
3775 elif test "$with_gnu_ld" = yes; then
3776 echo "$as_me:$LINENO: checking for GNU ld" >&5
3777 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3778 else
3779 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3780 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3782 if test "${lt_cv_path_LD+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 if test -z "$LD"; then
3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3787 for ac_dir in $PATH; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3790 lt_cv_path_LD="$ac_dir/$ac_prog"
3791 # Check to see if the program is GNU ld. I'd rather use --version,
3792 # but apparently some GNU ld's only accept -v.
3793 # Break only if it was the GNU/non-GNU ld that we prefer.
3794 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3795 test "$with_gnu_ld" != no && break
3796 else
3797 test "$with_gnu_ld" != yes && break
3800 done
3801 IFS="$ac_save_ifs"
3802 else
3803 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3807 LD="$lt_cv_path_LD"
3808 if test -n "$LD"; then
3809 echo "$as_me:$LINENO: result: $LD" >&5
3810 echo "${ECHO_T}$LD" >&6
3811 else
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3815 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3816 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3817 { (exit 1); exit 1; }; }
3818 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3819 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3820 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3824 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3825 lt_cv_prog_gnu_ld=yes
3826 else
3827 lt_cv_prog_gnu_ld=no
3830 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3831 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3832 with_gnu_ld=$lt_cv_prog_gnu_ld
3835 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3836 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3837 if test "${lt_cv_ld_reload_flag+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840 lt_cv_ld_reload_flag='-r'
3842 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3843 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3844 reload_flag=$lt_cv_ld_reload_flag
3845 test -n "$reload_flag" && reload_flag=" $reload_flag"
3847 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3848 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3849 if test "${lt_cv_path_NM+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$NM"; then
3853 # Let the user override the test.
3854 lt_cv_path_NM="$NM"
3855 else
3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3857 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3858 test -z "$ac_dir" && ac_dir=.
3859 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3860 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3861 # Check to see if the nm accepts a BSD-compat flag.
3862 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3863 # nm: unknown option "B" ignored
3864 # Tru64's nm complains that /dev/null is an invalid object file
3865 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3866 lt_cv_path_NM="$tmp_nm -B"
3867 break
3868 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3869 lt_cv_path_NM="$tmp_nm -p"
3870 break
3871 else
3872 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3873 continue # so that we can try to find one that supports BSD flags
3876 done
3877 IFS="$ac_save_ifs"
3878 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3882 NM="$lt_cv_path_NM"
3883 echo "$as_me:$LINENO: result: $NM" >&5
3884 echo "${ECHO_T}$NM" >&6
3886 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3887 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3888 if test "${lt_cv_deplibs_check_method+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 lt_cv_file_magic_cmd='$MAGIC_CMD'
3892 lt_cv_file_magic_test_file=
3893 lt_cv_deplibs_check_method='unknown'
3894 # Need to set the preceding variable on all platforms that support
3895 # interlibrary dependencies.
3896 # 'none' -- dependencies not supported.
3897 # `unknown' -- same as none, but documents that we really don't know.
3898 # 'pass_all' -- all dependencies passed with no checks.
3899 # 'test_compile' -- check by making test program.
3900 # 'file_magic [regex]' -- check by looking for files in library path
3901 # which responds to the $file_magic_cmd with a given egrep regex.
3902 # If you have `file' or equivalent on your system and you're not sure
3903 # whether `pass_all' will *always* work, you probably want this one.
3905 case $host_os in
3906 aix*)
3907 lt_cv_deplibs_check_method=pass_all
3910 beos*)
3911 lt_cv_deplibs_check_method=pass_all
3914 bsdi4*)
3915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3916 lt_cv_file_magic_cmd='/usr/bin/file -L'
3917 lt_cv_file_magic_test_file=/shlib/libc.so
3920 cygwin* | mingw* |pw32*)
3921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3922 lt_cv_file_magic_cmd='$OBJDUMP -f'
3925 darwin* | rhapsody*)
3926 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3927 lt_cv_file_magic_cmd='/usr/bin/file -L'
3928 case "$host_os" in
3929 rhapsody* | darwin1.012)
3930 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3932 *) # Darwin 1.3 on
3933 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3935 esac
3938 freebsd* )
3939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3940 case $host_cpu in
3941 i*86 )
3942 # Not sure whether the presence of OpenBSD here was a mistake.
3943 # Let's accept both of them until this is cleared up.
3944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3945 lt_cv_file_magic_cmd=/usr/bin/file
3946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3948 esac
3949 else
3950 lt_cv_deplibs_check_method=pass_all
3954 gnu*)
3955 lt_cv_deplibs_check_method=pass_all
3958 hpux10.20*|hpux11*)
3959 case $host_cpu in
3960 hppa*)
3961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3962 lt_cv_file_magic_cmd=/usr/bin/file
3963 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3965 ia64*)
3966 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3967 lt_cv_file_magic_cmd=/usr/bin/file
3968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3970 esac
3973 irix5* | irix6*)
3974 case $host_os in
3975 irix5*)
3976 # this will be overridden with pass_all, but let us keep it just in case
3977 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3980 case $LD in
3981 *-32|*"-32 ") libmagic=32-bit;;
3982 *-n32|*"-n32 ") libmagic=N32;;
3983 *-64|*"-64 ") libmagic=64-bit;;
3984 *) libmagic=never-match;;
3985 esac
3986 # this will be overridden with pass_all, but let us keep it just in case
3987 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3989 esac
3990 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3991 lt_cv_deplibs_check_method=pass_all
3994 # This must be Linux ELF.
3995 linux-gnu*)
3996 case $host_cpu in
3997 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3998 lt_cv_deplibs_check_method=pass_all ;;
4000 # glibc up to 2.1.1 does not perform some relocations on ARM
4001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4002 esac
4003 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4006 netbsd*)
4007 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4008 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4009 else
4010 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4014 newsos6)
4015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4016 lt_cv_file_magic_cmd=/usr/bin/file
4017 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4020 osf3* | osf4* | osf5*)
4021 # this will be overridden with pass_all, but let us keep it just in case
4022 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4023 lt_cv_file_magic_test_file=/shlib/libc.so
4024 lt_cv_deplibs_check_method=pass_all
4027 sco3.2v5*)
4028 lt_cv_deplibs_check_method=pass_all
4031 solaris*)
4032 lt_cv_deplibs_check_method=pass_all
4033 lt_cv_file_magic_test_file=/lib/libc.so
4036 sysv5uw[78]* | sysv4*uw2*)
4037 lt_cv_deplibs_check_method=pass_all
4040 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4041 case $host_vendor in
4042 ncr)
4043 lt_cv_deplibs_check_method=pass_all
4045 motorola)
4046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4049 esac
4051 esac
4054 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4055 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4056 file_magic_cmd=$lt_cv_file_magic_cmd
4057 deplibs_check_method=$lt_cv_deplibs_check_method
4063 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4065 # Only perform the check for file, if the check method requires it
4066 case $deplibs_check_method in
4067 file_magic*)
4068 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4069 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4070 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4071 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 case $MAGIC_CMD in
4076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4078 ?:/*)
4079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4082 ac_save_MAGIC_CMD="$MAGIC_CMD"
4083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4084 ac_dummy="/usr/bin:$PATH"
4085 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/${ac_tool_prefix}file; then
4088 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4089 if test -n "$file_magic_test_file"; then
4090 case $deplibs_check_method in
4091 "file_magic "*)
4092 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4095 egrep "$file_magic_regex" > /dev/null; then
4097 else
4098 cat <<EOF 1>&2
4100 *** Warning: the command libtool uses to detect shared libraries,
4101 *** $file_magic_cmd, produces output that libtool cannot recognize.
4102 *** The result is that libtool may fail to recognize shared libraries
4103 *** as such. This will affect the creation of libtool libraries that
4104 *** depend on shared libraries, but programs linked with such libtool
4105 *** libraries will work regardless of this problem. Nevertheless, you
4106 *** may want to report the problem to your system manager and/or to
4107 *** bug-libtool@gnu.org
4110 fi ;;
4111 esac
4113 break
4115 done
4116 IFS="$ac_save_ifs"
4117 MAGIC_CMD="$ac_save_MAGIC_CMD"
4119 esac
4122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4123 if test -n "$MAGIC_CMD"; then
4124 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4125 echo "${ECHO_T}$MAGIC_CMD" >&6
4126 else
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4131 if test -z "$lt_cv_path_MAGIC_CMD"; then
4132 if test -n "$ac_tool_prefix"; then
4133 echo "$as_me:$LINENO: checking for file" >&5
4134 echo $ECHO_N "checking for file... $ECHO_C" >&6
4135 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 case $MAGIC_CMD in
4140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4142 ?:/*)
4143 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4146 ac_save_MAGIC_CMD="$MAGIC_CMD"
4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4148 ac_dummy="/usr/bin:$PATH"
4149 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/file; then
4152 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4153 if test -n "$file_magic_test_file"; then
4154 case $deplibs_check_method in
4155 "file_magic "*)
4156 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4159 egrep "$file_magic_regex" > /dev/null; then
4161 else
4162 cat <<EOF 1>&2
4164 *** Warning: the command libtool uses to detect shared libraries,
4165 *** $file_magic_cmd, produces output that libtool cannot recognize.
4166 *** The result is that libtool may fail to recognize shared libraries
4167 *** as such. This will affect the creation of libtool libraries that
4168 *** depend on shared libraries, but programs linked with such libtool
4169 *** libraries will work regardless of this problem. Nevertheless, you
4170 *** may want to report the problem to your system manager and/or to
4171 *** bug-libtool@gnu.org
4174 fi ;;
4175 esac
4177 break
4179 done
4180 IFS="$ac_save_ifs"
4181 MAGIC_CMD="$ac_save_MAGIC_CMD"
4183 esac
4186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4187 if test -n "$MAGIC_CMD"; then
4188 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4189 echo "${ECHO_T}$MAGIC_CMD" >&6
4190 else
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4195 else
4196 MAGIC_CMD=:
4202 esac
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_RANLIB+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 if test -n "$RANLIB"; then
4213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4226 done
4227 done
4231 RANLIB=$ac_cv_prog_RANLIB
4232 if test -n "$RANLIB"; then
4233 echo "$as_me:$LINENO: result: $RANLIB" >&5
4234 echo "${ECHO_T}$RANLIB" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4241 if test -z "$ac_cv_prog_RANLIB"; then
4242 ac_ct_RANLIB=$RANLIB
4243 # Extract the first word of "ranlib", so it can be a program name with args.
4244 set dummy ranlib; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if test -n "$ac_ct_RANLIB"; then
4251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_RANLIB="ranlib"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4267 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4271 if test -n "$ac_ct_RANLIB"; then
4272 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4273 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4274 else
4275 echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6
4279 RANLIB=$ac_ct_RANLIB
4280 else
4281 RANLIB="$ac_cv_prog_RANLIB"
4284 if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4286 set dummy ${ac_tool_prefix}strip; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_prog_STRIP+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 if test -n "$STRIP"; then
4293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4311 STRIP=$ac_cv_prog_STRIP
4312 if test -n "$STRIP"; then
4313 echo "$as_me:$LINENO: result: $STRIP" >&5
4314 echo "${ECHO_T}$STRIP" >&6
4315 else
4316 echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6
4321 if test -z "$ac_cv_prog_STRIP"; then
4322 ac_ct_STRIP=$STRIP
4323 # Extract the first word of "strip", so it can be a program name with args.
4324 set dummy strip; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 if test -n "$ac_ct_STRIP"; then
4331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4332 else
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_prog_ac_ct_STRIP="strip"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4344 done
4345 done
4347 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4351 if test -n "$ac_ct_STRIP"; then
4352 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4353 echo "${ECHO_T}$ac_ct_STRIP" >&6
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4359 STRIP=$ac_ct_STRIP
4360 else
4361 STRIP="$ac_cv_prog_STRIP"
4365 # Check for any special flags to pass to ltconfig.
4366 libtool_flags="--cache-file=$cache_file"
4367 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4368 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4369 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4370 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4371 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4374 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4375 if test "${enable_libtool_lock+set}" = set; then
4376 enableval="$enable_libtool_lock"
4379 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4380 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4383 # Check whether --with-pic or --without-pic was given.
4384 if test "${with_pic+set}" = set; then
4385 withval="$with_pic"
4386 pic_mode="$withval"
4387 else
4388 pic_mode=default
4390 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4391 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4393 # Some flags need to be propagated to the compiler or linker for good
4394 # libtool support.
4395 case $host in
4396 *-*-irix6*)
4397 # Find out which ABI we are using.
4398 echo '#line 4398 "configure"' > conftest.$ac_ext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; then
4404 if test "$lt_cv_prog_gnu_ld" = yes; then
4405 case `/usr/bin/file conftest.$ac_objext` in
4406 *32-bit*)
4407 LD="${LD-ld} -melf32bsmip"
4409 *N32*)
4410 LD="${LD-ld} -melf32bmipn32"
4412 *64-bit*)
4413 LD="${LD-ld} -melf64bmip"
4415 esac
4416 else
4417 case `/usr/bin/file conftest.$ac_objext` in
4418 *32-bit*)
4419 LD="${LD-ld} -32"
4421 *N32*)
4422 LD="${LD-ld} -n32"
4424 *64-bit*)
4425 LD="${LD-ld} -64"
4427 esac
4430 rm -rf conftest*
4433 ia64-*-hpux*)
4434 # Find out which ABI we are using.
4435 echo 'int i;' > conftest.$ac_ext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4437 (eval $ac_compile) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; then
4441 case "`/usr/bin/file conftest.o`" in
4442 *ELF-32*)
4443 HPUX_IA64_MODE="32"
4445 *ELF-64*)
4446 HPUX_IA64_MODE="64"
4448 esac
4450 rm -rf conftest*
4453 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4454 # Find out which ABI we are using.
4455 echo 'int i;' > conftest.$ac_ext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; then
4461 case "`/usr/bin/file conftest.o`" in
4462 *32-bit*)
4463 case $host in
4464 x86_64-*linux*)
4465 LD="${LD-ld} -m elf_i386"
4467 ppc64-*linux*|powerpc64-*linux*)
4468 LD="${LD-ld} -m elf32ppclinux"
4470 s390x-*linux*)
4471 LD="${LD-ld} -m elf_s390"
4473 sparc64-*linux*)
4474 LD="${LD-ld} -m elf32_sparc"
4476 esac
4478 *64-bit*)
4479 case $host in
4480 x86_64-*linux*)
4481 LD="${LD-ld} -m elf_x86_64"
4483 ppc*-*linux*|powerpc*-*linux*)
4484 LD="${LD-ld} -m elf64ppc"
4486 s390*-*linux*)
4487 LD="${LD-ld} -m elf64_s390"
4489 sparc*-*linux*)
4490 LD="${LD-ld} -m elf64_sparc"
4492 esac
4494 esac
4496 rm -rf conftest*
4499 *-*-sco3.2v5*)
4500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4501 SAVE_CFLAGS="$CFLAGS"
4502 CFLAGS="$CFLAGS -belf"
4503 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4504 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4505 if test "${lt_cv_cc_needs_belf+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4510 ac_ext=c
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 if test x$gcc_no_link = xyes; then
4517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4519 { (exit 1); exit 1; }; }
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4529 main ()
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext conftest$ac_exeext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 lt_cv_cc_needs_belf=yes
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 lt_cv_cc_needs_belf=no
4564 rm -f conftest.err conftest.$ac_objext \
4565 conftest$ac_exeext conftest.$ac_ext
4566 ac_ext=c
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4574 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4577 CFLAGS="$SAVE_CFLAGS"
4582 esac
4585 # Save cache, so that ltconfig can load it
4586 cat >confcache <<\_ACEOF
4587 # This file is a shell script that caches the results of configure
4588 # tests run on this system so they can be shared between configure
4589 # scripts and configure runs, see configure's option --config-cache.
4590 # It is not useful on other systems. If it contains results you don't
4591 # want to keep, you may remove or edit it.
4593 # config.status only pays attention to the cache file if you give it
4594 # the --recheck option to rerun configure.
4596 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4597 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4598 # following values.
4600 _ACEOF
4602 # The following way of writing the cache mishandles newlines in values,
4603 # but we know of no workaround that is simple, portable, and efficient.
4604 # So, don't put newlines in cache variables' values.
4605 # Ultrix sh set writes to stderr and can't be redirected directly,
4606 # and sets the high bit in the cache file unless we assign to the vars.
4608 (set) 2>&1 |
4609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4610 *ac_space=\ *)
4611 # `set' does not quote correctly, so add quotes (double-quote
4612 # substitution turns \\\\ into \\, and sed turns \\ into \).
4613 sed -n \
4614 "s/'/'\\\\''/g;
4615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4618 # `set' quotes correctly as required by POSIX, so do not add quotes.
4619 sed -n \
4620 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4622 esac;
4624 sed '
4625 t clear
4626 : clear
4627 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4628 t end
4629 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4630 : end' >>confcache
4631 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4632 if test -w $cache_file; then
4633 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4634 cat confcache >$cache_file
4635 else
4636 echo "not updating unwritable cache $cache_file"
4639 rm -f confcache
4641 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4642 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4643 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4644 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4645 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4646 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4647 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4648 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4649 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4650 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4651 echo "$as_me: error: libtool configure failed" >&2;}
4652 { (exit 1); exit 1; }; }
4654 # Reload cache, that may have been modified by ltconfig
4655 if test -r "$cache_file"; then
4656 # Some versions of bash will fail to source /dev/null (special
4657 # files actually), so we avoid doing that.
4658 if test -f "$cache_file"; then
4659 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4660 echo "$as_me: loading cache $cache_file" >&6;}
4661 case $cache_file in
4662 [\\/]* | ?:[\\/]* ) . $cache_file;;
4663 *) . ./$cache_file;;
4664 esac
4666 else
4667 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4668 echo "$as_me: creating cache $cache_file" >&6;}
4669 >$cache_file
4673 # This can be used to rebuild libtool when needed
4674 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4676 # Always use our own libtool.
4677 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4679 # Redirect the config.log output again, so that the ltconfig log is not
4680 # clobbered by the next message.
4681 exec 5>>./config.log
4683 ac_ext=cc
4684 ac_cpp='$CXXCPP $CPPFLAGS'
4685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4688 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4689 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4690 if test -z "$CXXCPP"; then
4691 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 # Double quotes because CXXCPP needs to be expanded
4695 for CXXCPP in "$CXX -E" "/lib/cpp"
4697 ac_preproc_ok=false
4698 for ac_cxx_preproc_warn_flag in '' yes
4700 # Use a header file that comes with gcc, so configuring glibc
4701 # with a fresh cross-compiler works.
4702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703 # <limits.h> exists even on freestanding compilers.
4704 # On the NeXT, cc -E runs the code through the compiler's parser,
4705 # not just through cpp. "Syntax error" is here to catch this case.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717 Syntax error
4718 _ACEOF
4719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null; then
4727 if test -s conftest.err; then
4728 ac_cpp_err=$ac_cxx_preproc_warn_flag
4729 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4730 else
4731 ac_cpp_err=
4733 else
4734 ac_cpp_err=yes
4736 if test -z "$ac_cpp_err"; then
4738 else
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 # Broken: fails on valid input.
4743 continue
4745 rm -f conftest.err conftest.$ac_ext
4747 # OK, works on sane cases. Now check whether non-existent headers
4748 # can be detected and how.
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755 #include <ac_nonexistent.h>
4756 _ACEOF
4757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } >/dev/null; then
4765 if test -s conftest.err; then
4766 ac_cpp_err=$ac_cxx_preproc_warn_flag
4767 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4768 else
4769 ac_cpp_err=
4771 else
4772 ac_cpp_err=yes
4774 if test -z "$ac_cpp_err"; then
4775 # Broken: success on invalid input.
4776 continue
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 # Passes both tests.
4782 ac_preproc_ok=:
4783 break
4785 rm -f conftest.err conftest.$ac_ext
4787 done
4788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789 rm -f conftest.err conftest.$ac_ext
4790 if $ac_preproc_ok; then
4791 break
4794 done
4795 ac_cv_prog_CXXCPP=$CXXCPP
4798 CXXCPP=$ac_cv_prog_CXXCPP
4799 else
4800 ac_cv_prog_CXXCPP=$CXXCPP
4802 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4803 echo "${ECHO_T}$CXXCPP" >&6
4804 ac_preproc_ok=false
4805 for ac_cxx_preproc_warn_flag in '' yes
4807 # Use a header file that comes with gcc, so configuring glibc
4808 # with a fresh cross-compiler works.
4809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810 # <limits.h> exists even on freestanding compilers.
4811 # On the NeXT, cc -E runs the code through the compiler's parser,
4812 # not just through cpp. "Syntax error" is here to catch this case.
4813 cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h. */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4819 #ifdef __STDC__
4820 # include <limits.h>
4821 #else
4822 # include <assert.h>
4823 #endif
4824 Syntax error
4825 _ACEOF
4826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } >/dev/null; then
4834 if test -s conftest.err; then
4835 ac_cpp_err=$ac_cxx_preproc_warn_flag
4836 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4837 else
4838 ac_cpp_err=
4840 else
4841 ac_cpp_err=yes
4843 if test -z "$ac_cpp_err"; then
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4849 # Broken: fails on valid input.
4850 continue
4852 rm -f conftest.err conftest.$ac_ext
4854 # OK, works on sane cases. Now check whether non-existent headers
4855 # can be detected and how.
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #include <ac_nonexistent.h>
4863 _ACEOF
4864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4866 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null; then
4872 if test -s conftest.err; then
4873 ac_cpp_err=$ac_cxx_preproc_warn_flag
4874 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4875 else
4876 ac_cpp_err=
4878 else
4879 ac_cpp_err=yes
4881 if test -z "$ac_cpp_err"; then
4882 # Broken: success on invalid input.
4883 continue
4884 else
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4888 # Passes both tests.
4889 ac_preproc_ok=:
4890 break
4892 rm -f conftest.err conftest.$ac_ext
4894 done
4895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4896 rm -f conftest.err conftest.$ac_ext
4897 if $ac_preproc_ok; then
4899 else
4900 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4901 See \`config.log' for more details." >&5
4902 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4903 See \`config.log' for more details." >&2;}
4904 { (exit 1); exit 1; }; }
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4916 lt_save_CC="$CC"
4917 lt_save_CFLAGS="$CFLAGS"
4918 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4919 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4920 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4921 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4922 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4923 deplibs_check_method="$deplibs_check_method" \
4924 file_magic_cmd="$file_magic_cmd" \
4925 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4926 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4927 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4928 echo "$as_me: error: libtool tag configuration failed" >&2;}
4929 { (exit 1); exit 1; }; }
4930 CC="$lt_save_CC"
4931 CFLAGS="$lt_save_CFLAGS"
4933 # Redirect the config.log output again, so that the ltconfig log is not
4934 # clobbered by the next message.
4935 exec 5>>./config.log
4944 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4946 # Possibly disable most of the library.
4947 ## XXX Consider skipping unncessary tests altogether in this case, rather
4948 ## than just ignoring the results. Faster /and/ more correct, win win.
4950 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4951 if test "${enable_hosted_libstdcxx+set}" = set; then
4952 enableval="$enable_hosted_libstdcxx"
4954 else
4955 enable_hosted_libstdcxx=yes
4957 if test "$enable_hosted_libstdcxx" = no; then
4958 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4959 echo "$as_me: Only freestanding libraries will be built" >&6;}
4960 is_hosted=no
4961 hosted_define=0
4962 enable_abi_check=no
4963 enable_libstdcxx_pch=no
4964 else
4965 is_hosted=yes
4966 hosted_define=1
4970 cat >>confdefs.h <<_ACEOF
4971 #define _GLIBCXX_HOSTED $hosted_define
4972 _ACEOF
4976 # Check for support bits and g++ features that don't require linking.
4978 echo "$as_me:$LINENO: checking for exception model to use" >&5
4979 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4982 ac_ext=cc
4983 ac_cpp='$CXXCPP $CPPFLAGS'
4984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4989 if test "${enable_sjlj_exceptions+set}" = set; then
4990 enableval="$enable_sjlj_exceptions"
4992 case "$enableval" in
4993 yes|no|auto) ;;
4994 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4995 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4997 esac
4999 else
5000 enable_sjlj_exceptions=auto
5004 if test $enable_sjlj_exceptions = auto; then
5005 # Botheration. Now we've got to detect the exception model. Link tests
5006 # against libgcc.a are problematic since we've not been given proper -L
5007 # bits for single-tree newlib and libgloss.
5009 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5010 cat > conftest.$ac_ext << EOF
5011 #line 5011 "configure"
5012 struct S { ~S(); };
5013 void bar();
5014 void foo()
5016 S s;
5017 bar();
5020 old_CXXFLAGS="$CXXFLAGS"
5021 CXXFLAGS=-S
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; then
5027 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5028 enable_sjlj_exceptions=yes
5029 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5030 enable_sjlj_exceptions=no
5033 CXXFLAGS="$old_CXXFLAGS"
5034 rm -f conftest*
5037 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5038 # to two different models.
5039 case $enable_sjlj_exceptions in
5040 yes)
5042 cat >>confdefs.h <<\_ACEOF
5043 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5044 _ACEOF
5046 ac_exception_model_name=sjlj
5049 ac_exception_model_name="call frame"
5052 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5053 echo "$as_me: error: unable to detect exception model" >&2;}
5054 { (exit 1); exit 1; }; }
5056 esac
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5064 echo "${ECHO_T}$ac_exception_model_name" >&6
5067 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5068 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5069 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5070 if test "${enable_libstdcxx_pch+set}" = set; then
5071 enableval="$enable_libstdcxx_pch"
5073 case "$enableval" in
5074 yes|no) ;;
5075 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5076 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5077 { (exit 1); exit 1; }; } ;;
5078 esac
5080 else
5081 enable_libstdcxx_pch=$is_hosted
5084 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5085 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5087 if test $enable_libstdcxx_pch = yes; then
5088 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5089 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5090 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 ac_save_CXXFLAGS="$CXXFLAGS"
5094 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5097 ac_ext=cc
5098 ac_cpp='$CXXCPP $CPPFLAGS'
5099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 echo '#include <math.h>' > conftest.h
5104 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5105 -o conftest.h.gch 1>&5 2>&1 &&
5106 echo '#error "pch failed"' > conftest.h &&
5107 echo '#include "conftest.h"' > conftest.cc &&
5108 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5109 then
5110 glibcxx_cv_prog_CXX_pch=yes
5111 else
5112 glibcxx_cv_prog_CXX_pch=no
5114 rm -f conftest*
5115 CXXFLAGS=$ac_save_CXXFLAGS
5116 ac_ext=c
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5125 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5126 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5130 if test $enable_libstdcxx_pch = yes; then
5131 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5132 else
5133 glibcxx_PCHFLAGS=""
5138 # Enable all the variable C++ runtime options.
5139 # NB: C_MBCHAR must come early.
5141 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5142 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5143 # Check whether --enable-cstdio or --disable-cstdio was given.
5144 if test "${enable_cstdio+set}" = set; then
5145 enableval="$enable_cstdio"
5147 case "$enableval" in
5148 stdio) ;;
5149 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5150 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5152 esac
5154 else
5155 enable_cstdio=stdio
5159 # Now that libio has been removed, you can have any color you want as long
5160 # as it's black. This is one big no-op until other packages are added, but
5161 # showing the framework never hurts.
5162 case ${enable_cstdio} in
5163 stdio)
5164 CSTDIO_H=config/io/c_io_stdio.h
5165 BASIC_FILE_H=config/io/basic_file_stdio.h
5166 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5167 echo "$as_me:$LINENO: result: stdio" >&5
5168 echo "${ECHO_T}stdio" >&6
5170 esac
5176 ac_ext=c
5177 ac_cpp='$CPP $CPPFLAGS'
5178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5182 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5183 # On Suns, sometimes $CPP names a directory.
5184 if test -n "$CPP" && test -d "$CPP"; then
5185 CPP=
5187 if test -z "$CPP"; then
5188 if test "${ac_cv_prog_CPP+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 # Double quotes because CPP needs to be expanded
5192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5194 ac_preproc_ok=false
5195 for ac_c_preproc_warn_flag in '' yes
5197 # Use a header file that comes with gcc, so configuring glibc
5198 # with a fresh cross-compiler works.
5199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200 # <limits.h> exists even on freestanding compilers.
5201 # On the NeXT, cc -E runs the code through the compiler's parser,
5202 # not just through cpp. "Syntax error" is here to catch this case.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #ifdef __STDC__
5210 # include <limits.h>
5211 #else
5212 # include <assert.h>
5213 #endif
5214 Syntax error
5215 _ACEOF
5216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } >/dev/null; then
5224 if test -s conftest.err; then
5225 ac_cpp_err=$ac_c_preproc_warn_flag
5226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5227 else
5228 ac_cpp_err=
5230 else
5231 ac_cpp_err=yes
5233 if test -z "$ac_cpp_err"; then
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 # Broken: fails on valid input.
5240 continue
5242 rm -f conftest.err conftest.$ac_ext
5244 # OK, works on sane cases. Now check whether non-existent headers
5245 # can be detected and how.
5246 cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 #include <ac_nonexistent.h>
5253 _ACEOF
5254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } >/dev/null; then
5262 if test -s conftest.err; then
5263 ac_cpp_err=$ac_c_preproc_warn_flag
5264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5265 else
5266 ac_cpp_err=
5268 else
5269 ac_cpp_err=yes
5271 if test -z "$ac_cpp_err"; then
5272 # Broken: success on invalid input.
5273 continue
5274 else
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 # Passes both tests.
5279 ac_preproc_ok=:
5280 break
5282 rm -f conftest.err conftest.$ac_ext
5284 done
5285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5286 rm -f conftest.err conftest.$ac_ext
5287 if $ac_preproc_ok; then
5288 break
5291 done
5292 ac_cv_prog_CPP=$CPP
5295 CPP=$ac_cv_prog_CPP
5296 else
5297 ac_cv_prog_CPP=$CPP
5299 echo "$as_me:$LINENO: result: $CPP" >&5
5300 echo "${ECHO_T}$CPP" >&6
5301 ac_preproc_ok=false
5302 for ac_c_preproc_warn_flag in '' yes
5304 # Use a header file that comes with gcc, so configuring glibc
5305 # with a fresh cross-compiler works.
5306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5307 # <limits.h> exists even on freestanding compilers.
5308 # On the NeXT, cc -E runs the code through the compiler's parser,
5309 # not just through cpp. "Syntax error" is here to catch this case.
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #ifdef __STDC__
5317 # include <limits.h>
5318 #else
5319 # include <assert.h>
5320 #endif
5321 Syntax error
5322 _ACEOF
5323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev/null; then
5331 if test -s conftest.err; then
5332 ac_cpp_err=$ac_c_preproc_warn_flag
5333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5334 else
5335 ac_cpp_err=
5337 else
5338 ac_cpp_err=yes
5340 if test -z "$ac_cpp_err"; then
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 # Broken: fails on valid input.
5347 continue
5349 rm -f conftest.err conftest.$ac_ext
5351 # OK, works on sane cases. Now check whether non-existent headers
5352 # can be detected and how.
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <ac_nonexistent.h>
5360 _ACEOF
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null; then
5369 if test -s conftest.err; then
5370 ac_cpp_err=$ac_c_preproc_warn_flag
5371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5372 else
5373 ac_cpp_err=
5375 else
5376 ac_cpp_err=yes
5378 if test -z "$ac_cpp_err"; then
5379 # Broken: success on invalid input.
5380 continue
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385 # Passes both tests.
5386 ac_preproc_ok=:
5387 break
5389 rm -f conftest.err conftest.$ac_ext
5391 done
5392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5393 rm -f conftest.err conftest.$ac_ext
5394 if $ac_preproc_ok; then
5396 else
5397 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5398 See \`config.log' for more details." >&5
5399 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5400 See \`config.log' for more details." >&2;}
5401 { (exit 1); exit 1; }; }
5404 ac_ext=c
5405 ac_cpp='$CPP $CPPFLAGS'
5406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 echo "$as_me:$LINENO: checking for egrep" >&5
5412 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5413 if test "${ac_cv_prog_egrep+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5417 then ac_cv_prog_egrep='grep -E'
5418 else ac_cv_prog_egrep='egrep'
5421 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5422 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5423 EGREP=$ac_cv_prog_egrep
5426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5428 if test "${ac_cv_header_stdc+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 #include <stdlib.h>
5438 #include <stdarg.h>
5439 #include <string.h>
5440 #include <float.h>
5443 main ()
5447 return 0;
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_header_stdc=yes
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_cv_header_stdc=no
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 if test $ac_cv_header_stdc = yes; then
5481 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5482 cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 #include <string.h>
5490 _ACEOF
5491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492 $EGREP "memchr" >/dev/null 2>&1; then
5494 else
5495 ac_cv_header_stdc=no
5497 rm -f conftest*
5501 if test $ac_cv_header_stdc = yes; then
5502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <stdlib.h>
5511 _ACEOF
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "free" >/dev/null 2>&1; then
5515 else
5516 ac_cv_header_stdc=no
5518 rm -f conftest*
5522 if test $ac_cv_header_stdc = yes; then
5523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5524 if test "$cross_compiling" = yes; then
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <ctype.h>
5534 #if ((' ' & 0x0FF) == 0x020)
5535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5537 #else
5538 # define ISLOWER(c) \
5539 (('a' <= (c) && (c) <= 'i') \
5540 || ('j' <= (c) && (c) <= 'r') \
5541 || ('s' <= (c) && (c) <= 'z'))
5542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5543 #endif
5545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5547 main ()
5549 int i;
5550 for (i = 0; i < 256; i++)
5551 if (XOR (islower (i), ISLOWER (i))
5552 || toupper (i) != TOUPPER (i))
5553 exit(2);
5554 exit (0);
5556 _ACEOF
5557 rm -f conftest$ac_exeext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5559 (eval $ac_link) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5569 else
5570 echo "$as_me: program exited with status $ac_status" >&5
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ( exit $ac_status )
5575 ac_cv_header_stdc=no
5577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5582 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5583 if test $ac_cv_header_stdc = yes; then
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STDC_HEADERS 1
5587 _ACEOF
5591 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5601 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602 inttypes.h stdint.h unistd.h
5604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605 echo "$as_me:$LINENO: checking for $ac_header" >&5
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5618 #include <$ac_header>
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622 (eval $ac_compile) 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } &&
5629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 eval "$as_ac_Header=yes"
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 eval "$as_ac_Header=no"
5648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655 _ACEOF
5659 done
5663 echo "$as_me:$LINENO: checking for C locale to use" >&5
5664 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5665 # Check whether --enable-clocale or --disable-clocale was given.
5666 if test "${enable_clocale+set}" = set; then
5667 enableval="$enable_clocale"
5669 case "$enableval" in
5670 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5671 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5672 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5673 { (exit 1); exit 1; }; } ;;
5674 esac
5676 else
5677 enable_clocale=auto
5681 # If they didn't use this option switch, or if they specified --enable
5682 # with no specific model, we'll have to look for one. If they
5683 # specified --disable (???), do likewise.
5684 if test $enable_clocale = no || test $enable_clocale = yes; then
5685 enable_clocale=auto
5688 # Either a known package, or "auto"
5689 enable_clocale_flag=$enable_clocale
5691 # Probe for locale support if no specific model is specified.
5692 # Default to "generic".
5693 if test $enable_clocale_flag = auto; then
5694 case x${target_os} in
5695 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5703 #include <features.h>
5704 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5705 _GLIBCXX_ok
5706 #endif
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5711 enable_clocale_flag=gnu
5712 else
5713 enable_clocale_flag=generic
5715 rm -f conftest*
5718 # Test for bugs early in glibc-2.2.x series
5719 if test x$enable_clocale_flag = xgnu; then
5720 if test "$cross_compiling" = yes; then
5721 enable_clocale_flag=generic
5722 else
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5730 #define _GNU_SOURCE 1
5731 #include <locale.h>
5732 #include <string.h>
5733 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5734 extern __typeof(newlocale) __newlocale;
5735 extern __typeof(duplocale) __duplocale;
5736 extern __typeof(strcoll_l) __strcoll_l;
5737 #endif
5738 int main()
5740 const char __one[] = "Äuglein Augmen";
5741 const char __two[] = "Äuglein";
5742 int i;
5743 int j;
5744 __locale_t loc;
5745 __locale_t loc_dup;
5746 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5747 loc_dup = __duplocale(loc);
5748 i = __strcoll_l(__one, __two, loc);
5749 j = __strcoll_l(__one, __two, loc_dup);
5750 return 0;
5753 _ACEOF
5754 rm -f conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756 (eval $ac_link) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5765 enable_clocale_flag=gnu
5766 else
5767 echo "$as_me: program exited with status $ac_status" >&5
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ( exit $ac_status )
5772 enable_clocale_flag=generic
5774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5778 # ... at some point put __strxfrm_l tests in as well.
5781 enable_clocale_flag=generic
5783 esac
5786 # Deal with gettext issues. Default to not using it (=no) until we detect
5787 # support for it later. Let the user turn it off via --e/d, but let that
5788 # default to on for easier handling.
5789 USE_NLS=no
5790 # Check whether --enable-nls or --disable-nls was given.
5791 if test "${enable_nls+set}" = set; then
5792 enableval="$enable_nls"
5794 else
5795 enable_nls=yes
5798 # Set configure bits for specified locale package
5799 case ${enable_clocale_flag} in
5800 generic)
5801 echo "$as_me:$LINENO: result: generic" >&5
5802 echo "${ECHO_T}generic" >&6
5804 CLOCALE_H=config/locale/generic/c_locale.h
5805 CLOCALE_CC=config/locale/generic/c_locale.cc
5806 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5807 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5808 CCOLLATE_CC=config/locale/generic/collate_members.cc
5809 CCTYPE_CC=config/locale/generic/ctype_members.cc
5810 CMESSAGES_H=config/locale/generic/messages_members.h
5811 CMESSAGES_CC=config/locale/generic/messages_members.cc
5812 CMONEY_CC=config/locale/generic/monetary_members.cc
5813 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5814 CTIME_H=config/locale/generic/time_members.h
5815 CTIME_CC=config/locale/generic/time_members.cc
5816 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5818 gnu)
5819 echo "$as_me:$LINENO: result: gnu" >&5
5820 echo "${ECHO_T}gnu" >&6
5822 # Declare intention to use gettext, and add support for specific
5823 # languages.
5824 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5825 ALL_LINGUAS="de fr"
5827 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5828 # Extract the first word of "msgfmt", so it can be a program name with args.
5829 set dummy msgfmt; ac_word=$2
5830 echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 if test -n "$check_msgfmt"; then
5836 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845 ac_cv_prog_check_msgfmt="yes"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5852 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5855 check_msgfmt=$ac_cv_prog_check_msgfmt
5856 if test -n "$check_msgfmt"; then
5857 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5858 echo "${ECHO_T}$check_msgfmt" >&6
5859 else
5860 echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6
5864 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5865 USE_NLS=yes
5867 # Export the build objects.
5868 for ling in $ALL_LINGUAS; do \
5869 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5870 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5871 done
5875 CLOCALE_H=config/locale/gnu/c_locale.h
5876 CLOCALE_CC=config/locale/gnu/c_locale.cc
5877 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5878 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5879 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5880 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5881 CMESSAGES_H=config/locale/gnu/messages_members.h
5882 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5883 CMONEY_CC=config/locale/gnu/monetary_members.cc
5884 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5885 CTIME_H=config/locale/gnu/time_members.h
5886 CTIME_CC=config/locale/gnu/time_members.cc
5887 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5889 ieee_1003.1-2001)
5890 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5891 echo "${ECHO_T}IEEE 1003.1" >&6
5893 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5894 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5895 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5896 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5897 CCOLLATE_CC=config/locale/generic/collate_members.cc
5898 CCTYPE_CC=config/locale/generic/ctype_members.cc
5899 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5900 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5901 CMONEY_CC=config/locale/generic/monetary_members.cc
5902 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5903 CTIME_H=config/locale/generic/time_members.h
5904 CTIME_CC=config/locale/generic/time_members.cc
5905 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5907 esac
5909 # This is where the testsuite looks for locale catalogs, using the
5910 # -DLOCALEDIR define during testsuite compilation.
5911 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5914 # A standalone libintl (e.g., GNU libintl) may be in use.
5915 if test $USE_NLS = yes; then
5917 for ac_header in libintl.h
5919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5921 echo "$as_me:$LINENO: checking for $ac_header" >&5
5922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5928 else
5929 # Is the header compilable?
5930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5932 cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h. */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 $ac_includes_default
5939 #include <$ac_header>
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_header_compiler=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_header_compiler=no
5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6
5973 # Is the header present?
5974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5983 _ACEOF
5984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_c_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5995 else
5996 ac_cpp_err=
5998 else
5999 ac_cpp_err=yes
6001 if test -z "$ac_cpp_err"; then
6002 ac_header_preproc=yes
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_header_preproc=no
6009 rm -f conftest.err conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6011 echo "${ECHO_T}$ac_header_preproc" >&6
6013 # So? What about this header?
6014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6015 yes:no: )
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6020 ac_header_preproc=yes
6022 no:yes:* )
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6036 cat <<\_ASBOX
6037 ## ----------------------------------------- ##
6038 ## Report this to the package-unused lists. ##
6039 ## ----------------------------------------- ##
6040 _ASBOX
6042 sed "s/^/$as_me: WARNING: /" >&2
6044 esac
6045 echo "$as_me:$LINENO: checking for $ac_header" >&5
6046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 eval "$as_ac_Header=\$ac_header_preproc"
6052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6057 cat >>confdefs.h <<_ACEOF
6058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6059 _ACEOF
6061 else
6062 USE_NLS=no
6065 done
6067 echo "$as_me:$LINENO: checking for library containing gettext" >&5
6068 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6069 if test "${ac_cv_search_gettext+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 ac_func_search_save_LIBS=$LIBS
6073 ac_cv_search_gettext=no
6074 if test x$gcc_no_link = xyes; then
6075 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6077 { (exit 1); exit 1; }; }
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6086 /* Override any gcc2 internal prototype to avoid an error. */
6087 #ifdef __cplusplus
6088 extern "C"
6089 #endif
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6092 char gettext ();
6094 main ()
6096 gettext ();
6098 return 0;
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_search_gettext="none required"
6123 else
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 if test "$ac_cv_search_gettext" = no; then
6131 for ac_lib in intl; do
6132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6133 if test x$gcc_no_link = xyes; then
6134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6136 { (exit 1); exit 1; }; }
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6146 #ifdef __cplusplus
6147 extern "C"
6148 #endif
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char gettext ();
6153 main ()
6155 gettext ();
6157 return 0;
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_search_gettext="-l$ac_lib"
6182 break
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6188 rm -f conftest.err conftest.$ac_objext \
6189 conftest$ac_exeext conftest.$ac_ext
6190 done
6192 LIBS=$ac_func_search_save_LIBS
6194 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6195 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6196 if test "$ac_cv_search_gettext" != no; then
6197 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6199 else
6200 USE_NLS=no
6204 if test $USE_NLS = yes; then
6205 cat >>confdefs.h <<\_ACEOF
6206 #define _GLIBCXX_USE_NLS 1
6207 _ACEOF
6227 # Check whether --enable-cheaders or --disable-cheaders was given.
6228 if test "${enable_cheaders+set}" = set; then
6229 enableval="$enable_cheaders"
6231 case "$enableval" in
6232 c|c_std) ;;
6233 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6234 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6235 { (exit 1); exit 1; }; } ;;
6236 esac
6238 else
6239 enable_cheaders=$c_model
6242 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6243 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6245 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6252 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6253 if test "${enable_c_mbchar+set}" = set; then
6254 enableval="$enable_c_mbchar"
6256 case "$enableval" in
6257 yes|no) ;;
6258 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6259 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6260 { (exit 1); exit 1; }; } ;;
6261 esac
6263 else
6264 enable_c_mbchar=yes
6267 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6271 # Check whether --enable-c99 or --disable-c99 was given.
6272 if test "${enable_c99+set}" = set; then
6273 enableval="$enable_c99"
6275 case "$enableval" in
6276 yes|no) ;;
6277 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6278 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6279 { (exit 1); exit 1; }; } ;;
6280 esac
6282 else
6283 enable_c99=yes
6289 ac_ext=cc
6290 ac_cpp='$CXXCPP $CPPFLAGS'
6291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6296 # Check for the existence of <math.h> functions used if C99 is enabled.
6297 ac_c99_math=yes;
6298 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6299 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <math.h>
6308 main ()
6310 fpclassify(0.0);
6312 return 0;
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6337 else
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 ac_c99_math=no
6343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #include <math.h>
6352 main ()
6354 isfinite(0.0);
6356 return 0;
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361 (eval $ac_compile) 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 ac_c99_math=no
6387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <math.h>
6396 main ()
6398 isinf(0.0);
6400 return 0;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest.$ac_objext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6425 else
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_c99_math=no
6431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <math.h>
6440 main ()
6442 isnan(0.0);
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>conftest.er1
6450 ac_status=$?
6451 grep -v '^ *+' conftest.er1 >conftest.err
6452 rm -f conftest.er1
6453 cat conftest.err >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6469 else
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 ac_c99_math=no
6475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <math.h>
6484 main ()
6486 isnormal(0.0);
6488 return 0;
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493 (eval $ac_compile) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; } &&
6506 { ac_try='test -s conftest.$ac_objext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_c99_math=no
6519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <math.h>
6528 main ()
6530 signbit(0.0);
6532 return 0;
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest.$ac_objext'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_c99_math=no
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <math.h>
6572 main ()
6574 isgreater(0.0,0.0);
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_c99_math=no
6607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <math.h>
6616 main ()
6618 isgreaterequal(0.0,0.0);
6620 return 0;
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ac_c99_math=no
6651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 #include <math.h>
6660 main ()
6662 isless(0.0,0.0);
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest.$ac_objext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6689 else
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ac_c99_math=no
6695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <math.h>
6704 main ()
6706 islessequal(0.0,0.0);
6708 return 0;
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; } &&
6726 { ac_try='test -s conftest.$ac_objext'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ac_c99_math=no
6739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #include <math.h>
6748 main ()
6750 islessgreater(0.0,0.0);
6752 return 0;
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_c99_math=no
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <math.h>
6792 main ()
6794 isunordered(0.0,0.0);
6796 return 0;
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>conftest.er1
6802 ac_status=$?
6803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 ac_c99_math=no
6827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6828 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6829 echo "${ECHO_T}$ac_c99_math" >&6
6831 # Check for the existence in <stdio.h> of vscanf, et. al.
6832 ac_c99_stdio=yes;
6833 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6834 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 #include <stdio.h>
6843 main ()
6845 snprintf("12", 0, "%i");
6847 return 0;
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; } &&
6865 { ac_try='test -s conftest.$ac_objext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6872 else
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 ac_c99_stdio=no
6878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <stdio.h>
6886 #include <stdarg.h>
6887 void foo(char* fmt, ...)
6888 {va_list args; va_start(args, fmt);
6889 vfscanf(stderr, "%i", args);}
6891 main ()
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_c99_stdio=no
6926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <stdio.h>
6934 #include <stdarg.h>
6935 void foo(char* fmt, ...)
6936 {va_list args; va_start(args, fmt);
6937 vscanf("%i", args);}
6939 main ()
6943 return 0;
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; } &&
6961 { ac_try='test -s conftest.$ac_objext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6972 ac_c99_stdio=no
6974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #include <stdio.h>
6982 #include <stdarg.h>
6983 void foo(char* fmt, ...)
6984 {va_list args; va_start(args, fmt);
6985 vsnprintf(fmt, 0, "%i", args);}
6987 main ()
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_c99_stdio=no
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <stdio.h>
7030 #include <stdarg.h>
7031 void foo(char* fmt, ...)
7032 {va_list args; va_start(args, fmt);
7033 vsscanf(fmt, "%i", args);}
7035 main ()
7039 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_c99_stdio=no
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7072 echo "${ECHO_T}$ac_c99_stdio" >&6
7074 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7075 ac_c99_stdlib=yes;
7076 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7077 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7078 if test "${ac_c99_lldiv_t+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 #include <stdlib.h>
7090 main ()
7092 lldiv_t mydivt;
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest.$ac_objext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 ac_c99_lldiv_t=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_c99_lldiv_t=no
7125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7130 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7132 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7133 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <stdlib.h>
7142 main ()
7144 char* tmp; strtof("gnu", &tmp);
7146 return 0;
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_c99_stdlib=no
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <stdlib.h>
7186 main ()
7188 char* tmp; strtold("gnu", &tmp);
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try='test -s conftest.$ac_objext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_c99_stdlib=no
7221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 #include <stdlib.h>
7230 main ()
7232 llabs(10);
7234 return 0;
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest.$ac_objext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 ac_c99_stdlib=no
7265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266 cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h. */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 #include <stdlib.h>
7274 main ()
7276 lldiv(10,1);
7278 return 0;
7280 _ACEOF
7281 rm -f conftest.$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_c99_stdlib=no
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <stdlib.h>
7318 main ()
7320 atoll("10");
7322 return 0;
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try='test -s conftest.$ac_objext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_c99_stdlib=no
7353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 #include <stdlib.h>
7362 main ()
7364 _Exit(0);
7366 return 0;
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest.$ac_objext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 ac_c99_stdlib=no
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 if test x"$ac_c99_lldiv_t" = x"no"; then
7399 ac_c99_stdlib=no;
7401 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7402 echo "${ECHO_T}$ac_c99_stdlib" >&6
7404 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7405 # XXX the wchar.h checks should be rolled into the general C99 bits.
7406 ac_c99_wchar=yes;
7407 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7408 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #include <wchar.h>
7417 main ()
7419 wcstold(L"10.0", NULL);
7421 return 0;
7423 _ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426 (eval $ac_compile) 2>conftest.er1
7427 ac_status=$?
7428 grep -v '^ *+' conftest.er1 >conftest.err
7429 rm -f conftest.er1
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest.$ac_objext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7446 else
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 ac_c99_wchar=no
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7453 cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h. */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <wchar.h>
7461 main ()
7463 wcstoll(L"10", NULL, 10);
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_c99_wchar=no
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h. */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 #include <wchar.h>
7505 main ()
7507 wcstoull(L"10", NULL, 10);
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7515 ac_status=$?
7516 grep -v '^ *+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_c99_wchar=no
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7542 echo "${ECHO_T}$ac_c99_wchar" >&6
7544 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7545 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7546 if test x"$ac_c99_math" = x"no" ||
7547 test x"$ac_c99_stdio" = x"no" ||
7548 test x"$ac_c99_stdlib" = x"no" ||
7549 test x"$ac_c99_wchar" = x"no"; then
7550 enable_c99=no;
7552 echo "$as_me:$LINENO: result: $enable_c99" >&5
7553 echo "${ECHO_T}$enable_c99" >&6
7555 # Option parsed, now set things appropriately
7556 if test x"$enable_c99" = x"yes"; then
7557 cat >>confdefs.h <<\_ACEOF
7558 #define _GLIBCXX_USE_C99 1
7559 _ACEOF
7563 ac_ext=c
7564 ac_cpp='$CPP $CPPFLAGS'
7565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571 # Check whether --enable-long-long or --disable-long-long was given.
7572 if test "${enable_long_long+set}" = set; then
7573 enableval="$enable_long_long"
7575 case "$enableval" in
7576 yes|no) ;;
7577 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7578 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7579 { (exit 1); exit 1; }; } ;;
7580 esac
7582 else
7583 enable_long_long=yes
7589 ac_ext=cc
7590 ac_cpp='$CXXCPP $CPPFLAGS'
7591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7596 echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7597 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7598 # iostreams require strtoll, strtoull to compile
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <stdlib.h>
7607 main ()
7609 char* tmp; strtoll("gnu", &tmp, 10);
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>conftest.er1
7617 ac_status=$?
7618 grep -v '^ *+' conftest.er1 >conftest.err
7619 rm -f conftest.er1
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 (eval $ac_try) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest.$ac_objext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7636 else
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 enable_long_long=no
7642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <stdlib.h>
7651 main ()
7653 char* tmp; strtoull("gnu", &tmp, 10);
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try='test -s conftest.$ac_objext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 enable_long_long=no
7686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7688 # Option parsed, now set things appropriately
7689 if test $enable_long_long = yes; then
7690 cat >>confdefs.h <<\_ACEOF
7691 #define _GLIBCXX_USE_LONG_LONG 1
7692 _ACEOF
7695 echo "$as_me:$LINENO: result: $enable_long_long" >&5
7696 echo "${ECHO_T}$enable_long_long" >&6
7698 ac_ext=c
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7707 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7708 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7709 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7710 echo "${ECHO_T}$target_thread_file" >&6
7712 if test $target_thread_file != single; then
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_GTHR_DEFAULT 1
7715 _ACEOF
7717 cat >>confdefs.h <<\_ACEOF
7718 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7719 _ACEOF
7723 glibcxx_thread_h=gthr-$target_thread_file.h
7727 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7728 if test "${enable_concept_checks+set}" = set; then
7729 enableval="$enable_concept_checks"
7731 case "$enableval" in
7732 yes|no) ;;
7733 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7734 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7735 { (exit 1); exit 1; }; } ;;
7736 esac
7738 else
7739 enable_concept_checks=no
7742 if test $enable_concept_checks = yes; then
7743 cat >>confdefs.h <<\_ACEOF
7744 #define _GLIBCXX_CONCEPT_CHECKS 1
7745 _ACEOF
7750 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7751 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7752 enableval="$enable_libstdcxx_debug_flags"
7753 case "x$enable_libstdcxx_debug_flags" in
7754 xno | x) enable_libstdcxx_debug_flags= ;;
7755 x-*) ;;
7756 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7757 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7758 { (exit 1); exit 1; }; } ;;
7759 esac
7760 else
7761 enable_libstdcxx_debug_flags="-g3 -O0"
7765 # Option parsed, now set things appropriately
7766 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7769 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7770 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7773 echo "$as_me:$LINENO: checking for additional debug build" >&5
7774 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7775 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7776 if test "${enable_libstdcxx_debug+set}" = set; then
7777 enableval="$enable_libstdcxx_debug"
7779 case "$enableval" in
7780 yes|no) ;;
7781 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7782 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7783 { (exit 1); exit 1; }; } ;;
7784 esac
7786 else
7787 enable_libstdcxx_debug=no
7790 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7791 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7794 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7795 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7796 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7797 if test "${enable_cxx_flags+set}" = set; then
7798 enableval="$enable_cxx_flags"
7799 case "x$enable_cxx_flags" in
7800 xno | x) enable_cxx_flags= ;;
7801 x-*) ;;
7802 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7803 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7804 { (exit 1); exit 1; }; } ;;
7805 esac
7806 else
7807 enable_cxx_flags=
7811 # Run through flags (either default or command-line) and set anything
7812 # extra (e.g., #defines) that must accompany particular g++ options.
7813 if test -n "$enable_cxx_flags"; then
7814 for f in $enable_cxx_flags; do
7815 case "$f" in
7816 -fhonor-std) ;;
7817 -*) ;;
7818 *) # and we're trying to pass /what/ exactly?
7819 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7820 echo "$as_me: error: compiler flags start with a -" >&2;}
7821 { (exit 1); exit 1; }; } ;;
7822 esac
7823 done
7826 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7827 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7828 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7832 # No surprises, no surprises...
7833 if test $atomicity_include_dir = cpu/generic ; then
7834 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7835 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7836 if test $target_thread_file = single; then
7837 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7838 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7839 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7840 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7841 else
7842 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7843 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7844 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7845 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7850 if $GLIBCXX_IS_NATIVE; then
7852 # We can do more elaborate tests that assume a working linker.
7853 CANADIAN=no
7855 # Check for available headers.
7869 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7870 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7871 sys/types.h
7873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875 echo "$as_me:$LINENO: checking for $ac_header" >&5
7876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882 else
7883 # Is the header compilable?
7884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7886 cat >conftest.$ac_ext <<_ACEOF
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 $ac_includes_default
7893 #include <$ac_header>
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897 (eval $ac_compile) 2>conftest.er1
7898 ac_status=$?
7899 grep -v '^ *+' conftest.er1 >conftest.err
7900 rm -f conftest.er1
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest.$ac_objext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_header_compiler=yes
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7921 ac_header_compiler=no
7923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7925 echo "${ECHO_T}$ac_header_compiler" >&6
7927 # Is the header present?
7928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h. */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 #include <$ac_header>
7937 _ACEOF
7938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } >/dev/null; then
7946 if test -s conftest.err; then
7947 ac_cpp_err=$ac_c_preproc_warn_flag
7948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7949 else
7950 ac_cpp_err=
7952 else
7953 ac_cpp_err=yes
7955 if test -z "$ac_cpp_err"; then
7956 ac_header_preproc=yes
7957 else
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_header_preproc=no
7963 rm -f conftest.err conftest.$ac_ext
7964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7965 echo "${ECHO_T}$ac_header_preproc" >&6
7967 # So? What about this header?
7968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7969 yes:no: )
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7974 ac_header_preproc=yes
7976 no:yes:* )
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7990 cat <<\_ASBOX
7991 ## ----------------------------------------- ##
7992 ## Report this to the package-unused lists. ##
7993 ## ----------------------------------------- ##
7994 _ASBOX
7996 sed "s/^/$as_me: WARNING: /" >&2
7998 esac
7999 echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004 eval "$as_ac_Header=\$ac_header_preproc"
8006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8011 cat >>confdefs.h <<_ACEOF
8012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8013 _ACEOF
8017 done
8021 # All these tests are for C++; save the language and the compiler flags.
8022 # The CXXFLAGS thing is suspicious, but based on similar bits previously
8023 # found in GLIBCXX_CONFIGURE.
8026 ac_ext=cc
8027 ac_cpp='$CXXCPP $CPPFLAGS'
8028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8032 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8033 ac_save_CXXFLAGS="$CXXFLAGS"
8035 # Check for maintainer-mode bits.
8036 if test x"$USE_MAINTAINER_MODE" = xno; then
8037 WERROR=''
8038 else
8039 WERROR='-Werror'
8042 # Check for -ffunction-sections -fdata-sections
8043 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8044 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8045 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8054 main ()
8056 int foo;
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8063 (eval $ac_compile) 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try='test -s conftest.$ac_objext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_fdsections=yes
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_fdsections=no
8089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8090 if test "$ac_test_CXXFLAGS" = set; then
8091 CXXFLAGS="$ac_save_CXXFLAGS"
8092 else
8093 # this is the suspicious part
8094 CXXFLAGS=''
8096 if test x"$ac_fdsections" = x"yes"; then
8097 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8099 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8100 echo "${ECHO_T}$ac_fdsections" >&6
8102 ac_ext=c
8103 ac_cpp='$CPP $CPPFLAGS'
8104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112 # If we're not using GNU ld, then there's no point in even trying these
8113 # tests. Check for that first. We should have already tested for gld
8114 # by now (in libtool), but require it now just to be safe...
8115 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8116 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8120 # The name set by libtool depends on the version of libtool. Shame on us
8121 # for depending on an impl detail, but c'est la vie. Older versions used
8122 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8123 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8124 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8125 # set (hence we're using an older libtool), then set it.
8126 if test x${with_gnu_ld+set} != xset; then
8127 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8128 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8129 with_gnu_ld=no
8130 else
8131 with_gnu_ld=$ac_cv_prog_gnu_ld
8135 # Start by getting the version number. I think the libtool test already
8136 # does some of this, but throws away the result.
8138 ldver=`$LD --version 2>/dev/null | head -1 | \
8139 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8141 glibcxx_gnu_ld_version=`echo $ldver | \
8142 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8144 # Set --gc-sections.
8145 if test "$with_gnu_ld" = "notbroken"; then
8146 # GNU ld it is! Joy and bunny rabbits!
8148 # All these tests are for C++; save the language and the compiler flags.
8149 # Need to do this so that g++ won't try to link in libstdc++
8150 ac_test_CFLAGS="${CFLAGS+set}"
8151 ac_save_CFLAGS="$CFLAGS"
8152 CFLAGS='-x c++ -Wl,--gc-sections'
8154 # Check for -Wl,--gc-sections
8155 # XXX This test is broken at the moment, as symbols required for linking
8156 # are now in libsupc++ (not built yet). In addition, this test has
8157 # cored on solaris in the past. In addition, --gc-sections doesn't
8158 # really work at the moment (keeps on discarding used sections, first
8159 # .eh_frame and now some of the glibc sections for iconv).
8160 # Bzzzzt. Thanks for playing, maybe next time.
8161 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8162 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8163 if test "$cross_compiling" = yes; then
8164 ac_sectionLDflags=yes
8165 else
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 int main(void)
8175 try { throw 1; }
8176 catch (...) { };
8177 return 0;
8180 _ACEOF
8181 rm -f conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 ac_sectionLDflags=yes
8193 else
8194 echo "$as_me: program exited with status $ac_status" >&5
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ( exit $ac_status )
8199 ac_sectionLDflags=no
8201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8203 if test "$ac_test_CFLAGS" = set; then
8204 CFLAGS="$ac_save_CFLAGS"
8205 else
8206 # this is the suspicious part
8207 CFLAGS=''
8209 if test "$ac_sectionLDflags" = "yes"; then
8210 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8212 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8213 echo "${ECHO_T}$ac_sectionLDflags" >&6
8216 # Set linker optimization flags.
8217 if test x"$with_gnu_ld" = x"yes"; then
8218 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8225 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8226 ac_save_CXXFLAGS="$CXXFLAGS"
8227 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8229 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8230 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8231 if test "${ac_cv_lib_m_sin+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 ac_check_lib_save_LIBS=$LIBS
8235 LIBS="-lm $LIBS"
8236 if test x$gcc_no_link = xyes; then
8237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8239 { (exit 1); exit 1; }; }
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h. */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 /* We use char because int might match the return type of a gcc2
8253 builtin and then its argument prototype would still apply. */
8254 char sin ();
8256 main ()
8258 sin ();
8260 return 0;
8262 _ACEOF
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8265 (eval $ac_link) 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_lib_m_sin=yes
8285 else
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_lib_m_sin=no
8291 rm -f conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8295 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8296 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8297 if test $ac_cv_lib_m_sin = yes; then
8298 libm="-lm"
8301 ac_save_LIBS="$LIBS"
8302 LIBS="$LIBS $libm"
8306 echo "$as_me:$LINENO: checking for isinf declaration" >&5
8307 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8308 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8309 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8315 ac_ext=cc
8316 ac_cpp='$CXXCPP $CPPFLAGS'
8317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 #include <math.h>
8328 #ifdef HAVE_IEEEFP_H
8329 #include <ieeefp.h>
8330 #endif
8333 main ()
8335 isinf(0);
8337 return 0;
8339 _ACEOF
8340 rm -f conftest.$ac_objext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8342 (eval $ac_compile) 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 (eval $ac_try) 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 glibcxx_cv_func_isinf_use=yes
8362 else
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 glibcxx_cv_func_isinf_use=no
8368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8369 ac_ext=c
8370 ac_cpp='$CPP $CPPFLAGS'
8371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8380 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8382 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8384 for ac_func in isinf
8386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8387 echo "$as_me:$LINENO: checking for $ac_func" >&5
8388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8389 if eval "test \"\${$as_ac_var+set}\" = set"; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 if test x$gcc_no_link = xyes; then
8393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8395 { (exit 1); exit 1; }; }
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8405 #define $ac_func innocuous_$ac_func
8407 /* System header to define __stub macros and hopefully few prototypes,
8408 which can conflict with char $ac_func (); below.
8409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410 <limits.h> exists even on freestanding compilers. */
8412 #ifdef __STDC__
8413 # include <limits.h>
8414 #else
8415 # include <assert.h>
8416 #endif
8418 #undef $ac_func
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 #ifdef __cplusplus
8422 extern "C"
8424 #endif
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8427 char $ac_func ();
8428 /* The GNU C library defines this for functions which it implements
8429 to always fail with ENOSYS. Some functions are actually named
8430 something starting with __ and the normal name is an alias. */
8431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8432 choke me
8433 #else
8434 char (*f) () = $ac_func;
8435 #endif
8436 #ifdef __cplusplus
8438 #endif
8441 main ()
8443 return f != $ac_func;
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 eval "$as_ac_var=yes"
8470 else
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 eval "$as_ac_var=no"
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8481 if test `eval echo '${'$as_ac_var'}'` = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8484 _ACEOF
8487 done
8489 else
8491 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8492 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8493 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8494 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8500 ac_ext=cc
8501 ac_cpp='$CXXCPP $CPPFLAGS'
8502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 #include <math.h>
8513 #ifdef HAVE_IEEEFP_H
8514 #include <ieeefp.h>
8515 #endif
8518 main ()
8520 _isinf(0);
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest.$ac_objext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 glibcxx_cv_func__isinf_use=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 glibcxx_cv_func__isinf_use=no
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 ac_ext=c
8555 ac_cpp='$CPP $CPPFLAGS'
8556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8565 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8567 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8569 for ac_func in _isinf
8571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8572 echo "$as_me:$LINENO: checking for $ac_func" >&5
8573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8574 if eval "test \"\${$as_ac_var+set}\" = set"; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577 if test x$gcc_no_link = xyes; then
8578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8580 { (exit 1); exit 1; }; }
8582 cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h. */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8590 #define $ac_func innocuous_$ac_func
8592 /* System header to define __stub macros and hopefully few prototypes,
8593 which can conflict with char $ac_func (); below.
8594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8595 <limits.h> exists even on freestanding compilers. */
8597 #ifdef __STDC__
8598 # include <limits.h>
8599 #else
8600 # include <assert.h>
8601 #endif
8603 #undef $ac_func
8605 /* Override any gcc2 internal prototype to avoid an error. */
8606 #ifdef __cplusplus
8607 extern "C"
8609 #endif
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8612 char $ac_func ();
8613 /* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617 choke me
8618 #else
8619 char (*f) () = $ac_func;
8620 #endif
8621 #ifdef __cplusplus
8623 #endif
8626 main ()
8628 return f != $ac_func;
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 eval "$as_ac_var=yes"
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 eval "$as_ac_var=no"
8661 rm -f conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8666 if test `eval echo '${'$as_ac_var'}'` = yes; then
8667 cat >>confdefs.h <<_ACEOF
8668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8669 _ACEOF
8672 done
8679 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8680 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8681 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8682 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8688 ac_ext=cc
8689 ac_cpp='$CXXCPP $CPPFLAGS'
8690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 #include <math.h>
8701 #ifdef HAVE_IEEEFP_H
8702 #include <ieeefp.h>
8703 #endif
8706 main ()
8708 isnan(0);
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8715 (eval $ac_compile) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 glibcxx_cv_func_isnan_use=yes
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 glibcxx_cv_func_isnan_use=no
8741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 ac_ext=c
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8753 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8755 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8757 for ac_func in isnan
8759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8760 echo "$as_me:$LINENO: checking for $ac_func" >&5
8761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8762 if eval "test \"\${$as_ac_var+set}\" = set"; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 if test x$gcc_no_link = xyes; then
8766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8768 { (exit 1); exit 1; }; }
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define $ac_func innocuous_$ac_func
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char $ac_func (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8785 #ifdef __STDC__
8786 # include <limits.h>
8787 #else
8788 # include <assert.h>
8789 #endif
8791 #undef $ac_func
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 #ifdef __cplusplus
8795 extern "C"
8797 #endif
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800 char $ac_func ();
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8805 choke me
8806 #else
8807 char (*f) () = $ac_func;
8808 #endif
8809 #ifdef __cplusplus
8811 #endif
8814 main ()
8816 return f != $ac_func;
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 eval "$as_ac_var=yes"
8843 else
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 eval "$as_ac_var=no"
8849 rm -f conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8854 if test `eval echo '${'$as_ac_var'}'` = yes; then
8855 cat >>confdefs.h <<_ACEOF
8856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8857 _ACEOF
8860 done
8862 else
8864 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8865 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8866 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8867 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8873 ac_ext=cc
8874 ac_cpp='$CXXCPP $CPPFLAGS'
8875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h. */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 #include <math.h>
8886 #ifdef HAVE_IEEEFP_H
8887 #include <ieeefp.h>
8888 #endif
8891 main ()
8893 _isnan(0);
8895 return 0;
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; } &&
8913 { ac_try='test -s conftest.$ac_objext'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 glibcxx_cv_func__isnan_use=yes
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 glibcxx_cv_func__isnan_use=no
8926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8938 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8940 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8942 for ac_func in _isnan
8944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8945 echo "$as_me:$LINENO: checking for $ac_func" >&5
8946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8947 if eval "test \"\${$as_ac_var+set}\" = set"; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 if test x$gcc_no_link = xyes; then
8951 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8953 { (exit 1); exit 1; }; }
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8963 #define $ac_func innocuous_$ac_func
8965 /* System header to define __stub macros and hopefully few prototypes,
8966 which can conflict with char $ac_func (); below.
8967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8968 <limits.h> exists even on freestanding compilers. */
8970 #ifdef __STDC__
8971 # include <limits.h>
8972 #else
8973 # include <assert.h>
8974 #endif
8976 #undef $ac_func
8978 /* Override any gcc2 internal prototype to avoid an error. */
8979 #ifdef __cplusplus
8980 extern "C"
8982 #endif
8983 /* We use char because int might match the return type of a gcc2
8984 builtin and then its argument prototype would still apply. */
8985 char $ac_func ();
8986 /* The GNU C library defines this for functions which it implements
8987 to always fail with ENOSYS. Some functions are actually named
8988 something starting with __ and the normal name is an alias. */
8989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8990 choke me
8991 #else
8992 char (*f) () = $ac_func;
8993 #endif
8994 #ifdef __cplusplus
8996 #endif
8999 main ()
9001 return f != $ac_func;
9003 return 0;
9005 _ACEOF
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008 (eval $ac_link) 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } &&
9015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 eval "$as_ac_var=yes"
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 eval "$as_ac_var=no"
9034 rm -f conftest.err conftest.$ac_objext \
9035 conftest$ac_exeext conftest.$ac_ext
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9039 if test `eval echo '${'$as_ac_var'}'` = yes; then
9040 cat >>confdefs.h <<_ACEOF
9041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9042 _ACEOF
9045 done
9052 echo "$as_me:$LINENO: checking for finite declaration" >&5
9053 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9054 if test x${glibcxx_cv_func_finite_use+set} != xset; then
9055 if test "${glibcxx_cv_func_finite_use+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9061 ac_ext=cc
9062 ac_cpp='$CXXCPP $CPPFLAGS'
9063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h. */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 #include <math.h>
9074 #ifdef HAVE_IEEEFP_H
9075 #include <ieeefp.h>
9076 #endif
9079 main ()
9081 finite(0);
9083 return 0;
9085 _ACEOF
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>conftest.er1
9089 ac_status=$?
9090 grep -v '^ *+' conftest.er1 >conftest.err
9091 rm -f conftest.er1
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 (eval $ac_try) 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; } &&
9101 { ac_try='test -s conftest.$ac_objext'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 (eval $ac_try) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; }; then
9107 glibcxx_cv_func_finite_use=yes
9108 else
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 glibcxx_cv_func_finite_use=no
9114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9115 ac_ext=c
9116 ac_cpp='$CPP $CPPFLAGS'
9117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9125 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9126 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9128 if test x$glibcxx_cv_func_finite_use = x"yes"; then
9130 for ac_func in finite
9132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9133 echo "$as_me:$LINENO: checking for $ac_func" >&5
9134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9135 if eval "test \"\${$as_ac_var+set}\" = set"; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 if test x$gcc_no_link = xyes; then
9139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9141 { (exit 1); exit 1; }; }
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h. */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9151 #define $ac_func innocuous_$ac_func
9153 /* System header to define __stub macros and hopefully few prototypes,
9154 which can conflict with char $ac_func (); below.
9155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9156 <limits.h> exists even on freestanding compilers. */
9158 #ifdef __STDC__
9159 # include <limits.h>
9160 #else
9161 # include <assert.h>
9162 #endif
9164 #undef $ac_func
9166 /* Override any gcc2 internal prototype to avoid an error. */
9167 #ifdef __cplusplus
9168 extern "C"
9170 #endif
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173 char $ac_func ();
9174 /* The GNU C library defines this for functions which it implements
9175 to always fail with ENOSYS. Some functions are actually named
9176 something starting with __ and the normal name is an alias. */
9177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9178 choke me
9179 #else
9180 char (*f) () = $ac_func;
9181 #endif
9182 #ifdef __cplusplus
9184 #endif
9187 main ()
9189 return f != $ac_func;
9191 return 0;
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 eval "$as_ac_var=yes"
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 eval "$as_ac_var=no"
9222 rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9227 if test `eval echo '${'$as_ac_var'}'` = yes; then
9228 cat >>confdefs.h <<_ACEOF
9229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9230 _ACEOF
9233 done
9235 else
9237 echo "$as_me:$LINENO: checking for _finite declaration" >&5
9238 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9239 if test x${glibcxx_cv_func__finite_use+set} != xset; then
9240 if test "${glibcxx_cv_func__finite_use+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9246 ac_ext=cc
9247 ac_cpp='$CXXCPP $CPPFLAGS'
9248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <math.h>
9259 #ifdef HAVE_IEEEFP_H
9260 #include <ieeefp.h>
9261 #endif
9264 main ()
9266 _finite(0);
9268 return 0;
9270 _ACEOF
9271 rm -f conftest.$ac_objext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9273 (eval $ac_compile) 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; } &&
9286 { ac_try='test -s conftest.$ac_objext'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 (eval $ac_try) 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9292 glibcxx_cv_func__finite_use=yes
9293 else
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9297 glibcxx_cv_func__finite_use=no
9299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9300 ac_ext=c
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9310 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9311 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9313 if test x$glibcxx_cv_func__finite_use = x"yes"; then
9315 for ac_func in _finite
9317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9318 echo "$as_me:$LINENO: checking for $ac_func" >&5
9319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9320 if eval "test \"\${$as_ac_var+set}\" = set"; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323 if test x$gcc_no_link = xyes; then
9324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9326 { (exit 1); exit 1; }; }
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9336 #define $ac_func innocuous_$ac_func
9338 /* System header to define __stub macros and hopefully few prototypes,
9339 which can conflict with char $ac_func (); below.
9340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 <limits.h> exists even on freestanding compilers. */
9343 #ifdef __STDC__
9344 # include <limits.h>
9345 #else
9346 # include <assert.h>
9347 #endif
9349 #undef $ac_func
9351 /* Override any gcc2 internal prototype to avoid an error. */
9352 #ifdef __cplusplus
9353 extern "C"
9355 #endif
9356 /* We use char because int might match the return type of a gcc2
9357 builtin and then its argument prototype would still apply. */
9358 char $ac_func ();
9359 /* The GNU C library defines this for functions which it implements
9360 to always fail with ENOSYS. Some functions are actually named
9361 something starting with __ and the normal name is an alias. */
9362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9363 choke me
9364 #else
9365 char (*f) () = $ac_func;
9366 #endif
9367 #ifdef __cplusplus
9369 #endif
9372 main ()
9374 return f != $ac_func;
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381 (eval $ac_link) 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 eval "$as_ac_var=yes"
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 eval "$as_ac_var=no"
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9412 if test `eval echo '${'$as_ac_var'}'` = yes; then
9413 cat >>confdefs.h <<_ACEOF
9414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9415 _ACEOF
9418 done
9425 echo "$as_me:$LINENO: checking for copysign declaration" >&5
9426 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9427 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9428 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9434 ac_ext=cc
9435 ac_cpp='$CXXCPP $CPPFLAGS'
9436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9440 cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h. */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 #include <math.h>
9448 main ()
9450 copysign(0, 0);
9452 return 0;
9454 _ACEOF
9455 rm -f conftest.$ac_objext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest.$ac_objext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 glibcxx_cv_func_copysign_use=yes
9477 else
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 glibcxx_cv_func_copysign_use=no
9483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9484 ac_ext=c
9485 ac_cpp='$CPP $CPPFLAGS'
9486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9494 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9495 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9497 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9499 for ac_func in copysign
9501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502 echo "$as_me:$LINENO: checking for $ac_func" >&5
9503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_var+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 if test x$gcc_no_link = xyes; then
9508 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9510 { (exit 1); exit 1; }; }
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9520 #define $ac_func innocuous_$ac_func
9522 /* System header to define __stub macros and hopefully few prototypes,
9523 which can conflict with char $ac_func (); below.
9524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9525 <limits.h> exists even on freestanding compilers. */
9527 #ifdef __STDC__
9528 # include <limits.h>
9529 #else
9530 # include <assert.h>
9531 #endif
9533 #undef $ac_func
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 #ifdef __cplusplus
9537 extern "C"
9539 #endif
9540 /* We use char because int might match the return type of a gcc2
9541 builtin and then its argument prototype would still apply. */
9542 char $ac_func ();
9543 /* The GNU C library defines this for functions which it implements
9544 to always fail with ENOSYS. Some functions are actually named
9545 something starting with __ and the normal name is an alias. */
9546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9547 choke me
9548 #else
9549 char (*f) () = $ac_func;
9550 #endif
9551 #ifdef __cplusplus
9553 #endif
9556 main ()
9558 return f != $ac_func;
9560 return 0;
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 eval "$as_ac_var=yes"
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 eval "$as_ac_var=no"
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9596 if test `eval echo '${'$as_ac_var'}'` = yes; then
9597 cat >>confdefs.h <<_ACEOF
9598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9599 _ACEOF
9602 done
9604 else
9606 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9607 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9608 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9609 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9615 ac_ext=cc
9616 ac_cpp='$CXXCPP $CPPFLAGS'
9617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 #include <math.h>
9629 main ()
9631 _copysign(0, 0);
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638 (eval $ac_compile) 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest.$ac_objext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 glibcxx_cv_func__copysign_use=yes
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 glibcxx_cv_func__copysign_use=no
9664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 ac_ext=c
9666 ac_cpp='$CPP $CPPFLAGS'
9667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9675 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9676 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9678 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9680 for ac_func in _copysign
9682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9683 echo "$as_me:$LINENO: checking for $ac_func" >&5
9684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9685 if eval "test \"\${$as_ac_var+set}\" = set"; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 if test x$gcc_no_link = xyes; then
9689 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9691 { (exit 1); exit 1; }; }
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9701 #define $ac_func innocuous_$ac_func
9703 /* System header to define __stub macros and hopefully few prototypes,
9704 which can conflict with char $ac_func (); below.
9705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9706 <limits.h> exists even on freestanding compilers. */
9708 #ifdef __STDC__
9709 # include <limits.h>
9710 #else
9711 # include <assert.h>
9712 #endif
9714 #undef $ac_func
9716 /* Override any gcc2 internal prototype to avoid an error. */
9717 #ifdef __cplusplus
9718 extern "C"
9720 #endif
9721 /* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723 char $ac_func ();
9724 /* The GNU C library defines this for functions which it implements
9725 to always fail with ENOSYS. Some functions are actually named
9726 something starting with __ and the normal name is an alias. */
9727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9728 choke me
9729 #else
9730 char (*f) () = $ac_func;
9731 #endif
9732 #ifdef __cplusplus
9734 #endif
9737 main ()
9739 return f != $ac_func;
9741 return 0;
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>conftest.er1
9747 ac_status=$?
9748 grep -v '^ *+' conftest.er1 >conftest.err
9749 rm -f conftest.er1
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 eval "$as_ac_var=yes"
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 eval "$as_ac_var=no"
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9777 if test `eval echo '${'$as_ac_var'}'` = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9780 _ACEOF
9783 done
9790 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9791 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9792 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9793 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9799 ac_ext=cc
9800 ac_cpp='$CXXCPP $CPPFLAGS'
9801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h. */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 #include <math.h>
9813 main ()
9815 sincos(0, 0, 0);
9817 return 0;
9819 _ACEOF
9820 rm -f conftest.$ac_objext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822 (eval $ac_compile) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 glibcxx_cv_func_sincos_use=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 glibcxx_cv_func_sincos_use=no
9848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9849 ac_ext=c
9850 ac_cpp='$CPP $CPPFLAGS'
9851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9859 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9860 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9862 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9864 for ac_func in sincos
9866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9867 echo "$as_me:$LINENO: checking for $ac_func" >&5
9868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9869 if eval "test \"\${$as_ac_var+set}\" = set"; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 if test x$gcc_no_link = xyes; then
9873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9875 { (exit 1); exit 1; }; }
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9885 #define $ac_func innocuous_$ac_func
9887 /* System header to define __stub macros and hopefully few prototypes,
9888 which can conflict with char $ac_func (); below.
9889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890 <limits.h> exists even on freestanding compilers. */
9892 #ifdef __STDC__
9893 # include <limits.h>
9894 #else
9895 # include <assert.h>
9896 #endif
9898 #undef $ac_func
9900 /* Override any gcc2 internal prototype to avoid an error. */
9901 #ifdef __cplusplus
9902 extern "C"
9904 #endif
9905 /* We use char because int might match the return type of a gcc2
9906 builtin and then its argument prototype would still apply. */
9907 char $ac_func ();
9908 /* The GNU C library defines this for functions which it implements
9909 to always fail with ENOSYS. Some functions are actually named
9910 something starting with __ and the normal name is an alias. */
9911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9912 choke me
9913 #else
9914 char (*f) () = $ac_func;
9915 #endif
9916 #ifdef __cplusplus
9918 #endif
9921 main ()
9923 return f != $ac_func;
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 eval "$as_ac_var=yes"
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 eval "$as_ac_var=no"
9956 rm -f conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9961 if test `eval echo '${'$as_ac_var'}'` = yes; then
9962 cat >>confdefs.h <<_ACEOF
9963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9964 _ACEOF
9967 done
9969 else
9971 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9972 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9973 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9974 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9980 ac_ext=cc
9981 ac_cpp='$CXXCPP $CPPFLAGS'
9982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 #include <math.h>
9994 main ()
9996 _sincos(0, 0, 0);
9998 return 0;
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012 (eval $ac_try) 2>&5
10013 ac_status=$?
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); }; } &&
10016 { ac_try='test -s conftest.$ac_objext'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 glibcxx_cv_func__sincos_use=yes
10023 else
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 glibcxx_cv_func__sincos_use=no
10029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10030 ac_ext=c
10031 ac_cpp='$CPP $CPPFLAGS'
10032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10040 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10041 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10043 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10045 for ac_func in _sincos
10047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10048 echo "$as_me:$LINENO: checking for $ac_func" >&5
10049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10050 if eval "test \"\${$as_ac_var+set}\" = set"; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 if test x$gcc_no_link = xyes; then
10054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10056 { (exit 1); exit 1; }; }
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10066 #define $ac_func innocuous_$ac_func
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func (); below.
10070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071 <limits.h> exists even on freestanding compilers. */
10073 #ifdef __STDC__
10074 # include <limits.h>
10075 #else
10076 # include <assert.h>
10077 #endif
10079 #undef $ac_func
10081 /* Override any gcc2 internal prototype to avoid an error. */
10082 #ifdef __cplusplus
10083 extern "C"
10085 #endif
10086 /* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088 char $ac_func ();
10089 /* The GNU C library defines this for functions which it implements
10090 to always fail with ENOSYS. Some functions are actually named
10091 something starting with __ and the normal name is an alias. */
10092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10093 choke me
10094 #else
10095 char (*f) () = $ac_func;
10096 #endif
10097 #ifdef __cplusplus
10099 #endif
10102 main ()
10104 return f != $ac_func;
10106 return 0;
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111 (eval $ac_link) 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 eval "$as_ac_var=yes"
10131 else
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 eval "$as_ac_var=no"
10137 rm -f conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10142 if test `eval echo '${'$as_ac_var'}'` = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10145 _ACEOF
10148 done
10155 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10156 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10157 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10158 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10164 ac_ext=cc
10165 ac_cpp='$CXXCPP $CPPFLAGS'
10166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10170 cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h. */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 #include <math.h>
10177 #ifdef HAVE_IEEEFP_H
10178 #include <ieeefp.h>
10179 #endif
10182 main ()
10184 fpclass(0);
10186 return 0;
10188 _ACEOF
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 glibcxx_cv_func_fpclass_use=yes
10211 else
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10215 glibcxx_cv_func_fpclass_use=no
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218 ac_ext=c
10219 ac_cpp='$CPP $CPPFLAGS'
10220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10228 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10229 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10231 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10233 for ac_func in fpclass
10235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10236 echo "$as_me:$LINENO: checking for $ac_func" >&5
10237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10238 if eval "test \"\${$as_ac_var+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241 if test x$gcc_no_link = xyes; then
10242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10244 { (exit 1); exit 1; }; }
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10254 #define $ac_func innocuous_$ac_func
10256 /* System header to define __stub macros and hopefully few prototypes,
10257 which can conflict with char $ac_func (); below.
10258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10259 <limits.h> exists even on freestanding compilers. */
10261 #ifdef __STDC__
10262 # include <limits.h>
10263 #else
10264 # include <assert.h>
10265 #endif
10267 #undef $ac_func
10269 /* Override any gcc2 internal prototype to avoid an error. */
10270 #ifdef __cplusplus
10271 extern "C"
10273 #endif
10274 /* We use char because int might match the return type of a gcc2
10275 builtin and then its argument prototype would still apply. */
10276 char $ac_func ();
10277 /* The GNU C library defines this for functions which it implements
10278 to always fail with ENOSYS. Some functions are actually named
10279 something starting with __ and the normal name is an alias. */
10280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10281 choke me
10282 #else
10283 char (*f) () = $ac_func;
10284 #endif
10285 #ifdef __cplusplus
10287 #endif
10290 main ()
10292 return f != $ac_func;
10294 return 0;
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>conftest.er1
10300 ac_status=$?
10301 grep -v '^ *+' conftest.er1 >conftest.err
10302 rm -f conftest.er1
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 eval "$as_ac_var=yes"
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 eval "$as_ac_var=no"
10325 rm -f conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10330 if test `eval echo '${'$as_ac_var'}'` = yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10333 _ACEOF
10336 done
10338 else
10340 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10341 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10342 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10343 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10349 ac_ext=cc
10350 ac_cpp='$CXXCPP $CPPFLAGS'
10351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 #include <math.h>
10362 #ifdef HAVE_IEEEFP_H
10363 #include <ieeefp.h>
10364 #endif
10367 main ()
10369 _fpclass(0);
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10376 (eval $ac_compile) 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest.$ac_objext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 glibcxx_cv_func__fpclass_use=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 glibcxx_cv_func__fpclass_use=no
10402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10403 ac_ext=c
10404 ac_cpp='$CPP $CPPFLAGS'
10405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10414 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10416 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10418 for ac_func in _fpclass
10420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421 echo "$as_me:$LINENO: checking for $ac_func" >&5
10422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10423 if eval "test \"\${$as_ac_var+set}\" = set"; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426 if test x$gcc_no_link = xyes; then
10427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10429 { (exit 1); exit 1; }; }
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10439 #define $ac_func innocuous_$ac_func
10441 /* System header to define __stub macros and hopefully few prototypes,
10442 which can conflict with char $ac_func (); below.
10443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10444 <limits.h> exists even on freestanding compilers. */
10446 #ifdef __STDC__
10447 # include <limits.h>
10448 #else
10449 # include <assert.h>
10450 #endif
10452 #undef $ac_func
10454 /* Override any gcc2 internal prototype to avoid an error. */
10455 #ifdef __cplusplus
10456 extern "C"
10458 #endif
10459 /* We use char because int might match the return type of a gcc2
10460 builtin and then its argument prototype would still apply. */
10461 char $ac_func ();
10462 /* The GNU C library defines this for functions which it implements
10463 to always fail with ENOSYS. Some functions are actually named
10464 something starting with __ and the normal name is an alias. */
10465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10466 choke me
10467 #else
10468 char (*f) () = $ac_func;
10469 #endif
10470 #ifdef __cplusplus
10472 #endif
10475 main ()
10477 return f != $ac_func;
10479 return 0;
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 eval "$as_ac_var=yes"
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 eval "$as_ac_var=no"
10510 rm -f conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10515 if test `eval echo '${'$as_ac_var'}'` = yes; then
10516 cat >>confdefs.h <<_ACEOF
10517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10518 _ACEOF
10521 done
10528 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10529 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10530 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10531 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10537 ac_ext=cc
10538 ac_cpp='$CXXCPP $CPPFLAGS'
10539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10543 cat >conftest.$ac_ext <<_ACEOF
10544 /* confdefs.h. */
10545 _ACEOF
10546 cat confdefs.h >>conftest.$ac_ext
10547 cat >>conftest.$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <math.h>
10550 #ifdef HAVE_IEEEFP_H
10551 #include <ieeefp.h>
10552 #endif
10555 main ()
10557 qfpclass(0);
10559 return 0;
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10564 (eval $ac_compile) 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest.$ac_objext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 glibcxx_cv_func_qfpclass_use=yes
10584 else
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 glibcxx_cv_func_qfpclass_use=no
10590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10591 ac_ext=c
10592 ac_cpp='$CPP $CPPFLAGS'
10593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10601 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10602 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10604 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10606 for ac_func in qfpclass
10608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10609 echo "$as_me:$LINENO: checking for $ac_func" >&5
10610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10611 if eval "test \"\${$as_ac_var+set}\" = set"; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 if test x$gcc_no_link = xyes; then
10615 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10617 { (exit 1); exit 1; }; }
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10627 #define $ac_func innocuous_$ac_func
10629 /* System header to define __stub macros and hopefully few prototypes,
10630 which can conflict with char $ac_func (); below.
10631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10632 <limits.h> exists even on freestanding compilers. */
10634 #ifdef __STDC__
10635 # include <limits.h>
10636 #else
10637 # include <assert.h>
10638 #endif
10640 #undef $ac_func
10642 /* Override any gcc2 internal prototype to avoid an error. */
10643 #ifdef __cplusplus
10644 extern "C"
10646 #endif
10647 /* We use char because int might match the return type of a gcc2
10648 builtin and then its argument prototype would still apply. */
10649 char $ac_func ();
10650 /* The GNU C library defines this for functions which it implements
10651 to always fail with ENOSYS. Some functions are actually named
10652 something starting with __ and the normal name is an alias. */
10653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10654 choke me
10655 #else
10656 char (*f) () = $ac_func;
10657 #endif
10658 #ifdef __cplusplus
10660 #endif
10663 main ()
10665 return f != $ac_func;
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 eval "$as_ac_var=yes"
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 eval "$as_ac_var=no"
10698 rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10703 if test `eval echo '${'$as_ac_var'}'` = yes; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10706 _ACEOF
10709 done
10711 else
10713 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10714 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10715 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10716 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10722 ac_ext=cc
10723 ac_cpp='$CXXCPP $CPPFLAGS'
10724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10728 cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h. */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 #include <math.h>
10735 #ifdef HAVE_IEEEFP_H
10736 #include <ieeefp.h>
10737 #endif
10740 main ()
10742 _qfpclass(0);
10744 return 0;
10746 _ACEOF
10747 rm -f conftest.$ac_objext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749 (eval $ac_compile) 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; } &&
10762 { ac_try='test -s conftest.$ac_objext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 glibcxx_cv_func__qfpclass_use=yes
10769 else
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 glibcxx_cv_func__qfpclass_use=no
10775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 ac_ext=c
10777 ac_cpp='$CPP $CPPFLAGS'
10778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10786 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10787 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10789 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10791 for ac_func in _qfpclass
10793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10794 echo "$as_me:$LINENO: checking for $ac_func" >&5
10795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10796 if eval "test \"\${$as_ac_var+set}\" = set"; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 if test x$gcc_no_link = xyes; then
10800 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10801 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10802 { (exit 1); exit 1; }; }
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10812 #define $ac_func innocuous_$ac_func
10814 /* System header to define __stub macros and hopefully few prototypes,
10815 which can conflict with char $ac_func (); below.
10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 <limits.h> exists even on freestanding compilers. */
10819 #ifdef __STDC__
10820 # include <limits.h>
10821 #else
10822 # include <assert.h>
10823 #endif
10825 #undef $ac_func
10827 /* Override any gcc2 internal prototype to avoid an error. */
10828 #ifdef __cplusplus
10829 extern "C"
10831 #endif
10832 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */
10834 char $ac_func ();
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10839 choke me
10840 #else
10841 char (*f) () = $ac_func;
10842 #endif
10843 #ifdef __cplusplus
10845 #endif
10848 main ()
10850 return f != $ac_func;
10852 return 0;
10854 _ACEOF
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 eval "$as_ac_var=yes"
10877 else
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 eval "$as_ac_var=no"
10883 rm -f conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10888 if test `eval echo '${'$as_ac_var'}'` = yes; then
10889 cat >>confdefs.h <<_ACEOF
10890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10891 _ACEOF
10894 done
10901 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10902 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10903 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10904 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10910 ac_ext=cc
10911 ac_cpp='$CXXCPP $CPPFLAGS'
10912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h. */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 #include <math.h>
10924 main ()
10926 hypot(0, 0);
10928 return 0;
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 glibcxx_cv_func_hypot_use=yes
10953 else
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 glibcxx_cv_func_hypot_use=no
10959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10960 ac_ext=c
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10970 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10971 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10973 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10975 for ac_func in hypot
10977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10978 echo "$as_me:$LINENO: checking for $ac_func" >&5
10979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10980 if eval "test \"\${$as_ac_var+set}\" = set"; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983 if test x$gcc_no_link = xyes; then
10984 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10986 { (exit 1); exit 1; }; }
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h. */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10996 #define $ac_func innocuous_$ac_func
10998 /* System header to define __stub macros and hopefully few prototypes,
10999 which can conflict with char $ac_func (); below.
11000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11001 <limits.h> exists even on freestanding compilers. */
11003 #ifdef __STDC__
11004 # include <limits.h>
11005 #else
11006 # include <assert.h>
11007 #endif
11009 #undef $ac_func
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 #ifdef __cplusplus
11013 extern "C"
11015 #endif
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11018 char $ac_func ();
11019 /* The GNU C library defines this for functions which it implements
11020 to always fail with ENOSYS. Some functions are actually named
11021 something starting with __ and the normal name is an alias. */
11022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11023 choke me
11024 #else
11025 char (*f) () = $ac_func;
11026 #endif
11027 #ifdef __cplusplus
11029 #endif
11032 main ()
11034 return f != $ac_func;
11036 return 0;
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 eval "$as_ac_var=yes"
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 eval "$as_ac_var=no"
11067 rm -f conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11072 if test `eval echo '${'$as_ac_var'}'` = yes; then
11073 cat >>confdefs.h <<_ACEOF
11074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11075 _ACEOF
11078 done
11080 else
11082 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11083 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11084 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11085 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11091 ac_ext=cc
11092 ac_cpp='$CXXCPP $CPPFLAGS'
11093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 #include <math.h>
11105 main ()
11107 _hypot(0, 0);
11109 return 0;
11111 _ACEOF
11112 rm -f conftest.$ac_objext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114 (eval $ac_compile) 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 glibcxx_cv_func__hypot_use=yes
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 glibcxx_cv_func__hypot_use=no
11140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11141 ac_ext=c
11142 ac_cpp='$CPP $CPPFLAGS'
11143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11151 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11152 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11154 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11156 for ac_func in _hypot
11158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 echo "$as_me:$LINENO: checking for $ac_func" >&5
11160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11161 if eval "test \"\${$as_ac_var+set}\" = set"; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 if test x$gcc_no_link = xyes; then
11165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11167 { (exit 1); exit 1; }; }
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h. */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11177 #define $ac_func innocuous_$ac_func
11179 /* System header to define __stub macros and hopefully few prototypes,
11180 which can conflict with char $ac_func (); below.
11181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11182 <limits.h> exists even on freestanding compilers. */
11184 #ifdef __STDC__
11185 # include <limits.h>
11186 #else
11187 # include <assert.h>
11188 #endif
11190 #undef $ac_func
11192 /* Override any gcc2 internal prototype to avoid an error. */
11193 #ifdef __cplusplus
11194 extern "C"
11196 #endif
11197 /* We use char because int might match the return type of a gcc2
11198 builtin and then its argument prototype would still apply. */
11199 char $ac_func ();
11200 /* The GNU C library defines this for functions which it implements
11201 to always fail with ENOSYS. Some functions are actually named
11202 something starting with __ and the normal name is an alias. */
11203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11204 choke me
11205 #else
11206 char (*f) () = $ac_func;
11207 #endif
11208 #ifdef __cplusplus
11210 #endif
11213 main ()
11215 return f != $ac_func;
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222 (eval $ac_link) 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 eval "$as_ac_var=yes"
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 eval "$as_ac_var=no"
11248 rm -f conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11253 if test `eval echo '${'$as_ac_var'}'` = yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11256 _ACEOF
11259 done
11266 echo "$as_me:$LINENO: checking for float trig functions" >&5
11267 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11268 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11274 ac_ext=cc
11275 ac_cpp='$CXXCPP $CPPFLAGS'
11276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 #include <math.h>
11288 main ()
11290 `for x in acosf asinf atanf \
11291 cosf sinf tanf \
11292 coshf sinhf tanhf; do echo "$x (0);"; done`
11294 return 0;
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 glibcxx_cv_func_float_trig_use=yes
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 glibcxx_cv_func_float_trig_use=no
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 ac_ext=c
11327 ac_cpp='$CPP $CPPFLAGS'
11328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11335 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11336 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11346 for ac_func in acosf asinf atanf \
11347 cosf sinf tanf \
11348 coshf sinhf tanhf
11350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11351 echo "$as_me:$LINENO: checking for $ac_func" >&5
11352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11353 if eval "test \"\${$as_ac_var+set}\" = set"; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356 if test x$gcc_no_link = xyes; then
11357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11359 { (exit 1); exit 1; }; }
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11369 #define $ac_func innocuous_$ac_func
11371 /* System header to define __stub macros and hopefully few prototypes,
11372 which can conflict with char $ac_func (); below.
11373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11374 <limits.h> exists even on freestanding compilers. */
11376 #ifdef __STDC__
11377 # include <limits.h>
11378 #else
11379 # include <assert.h>
11380 #endif
11382 #undef $ac_func
11384 /* Override any gcc2 internal prototype to avoid an error. */
11385 #ifdef __cplusplus
11386 extern "C"
11388 #endif
11389 /* We use char because int might match the return type of a gcc2
11390 builtin and then its argument prototype would still apply. */
11391 char $ac_func ();
11392 /* The GNU C library defines this for functions which it implements
11393 to always fail with ENOSYS. Some functions are actually named
11394 something starting with __ and the normal name is an alias. */
11395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11396 choke me
11397 #else
11398 char (*f) () = $ac_func;
11399 #endif
11400 #ifdef __cplusplus
11402 #endif
11405 main ()
11407 return f != $ac_func;
11409 return 0;
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414 (eval $ac_link) 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; } &&
11427 { ac_try='test -s conftest$ac_exeext'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; }; then
11433 eval "$as_ac_var=yes"
11434 else
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 eval "$as_ac_var=no"
11440 rm -f conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11445 if test `eval echo '${'$as_ac_var'}'` = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11448 _ACEOF
11451 done
11456 echo "$as_me:$LINENO: checking for float round functions" >&5
11457 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11458 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11464 ac_ext=cc
11465 ac_cpp='$CXXCPP $CPPFLAGS'
11466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11470 cat >conftest.$ac_ext <<_ACEOF
11471 /* confdefs.h. */
11472 _ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 #include <math.h>
11478 main ()
11480 `for x in ceilf floorf; do echo "$x (0);"; done`
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 glibcxx_cv_func_float_round_use=yes
11507 else
11508 echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11511 glibcxx_cv_func_float_round_use=no
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11514 ac_ext=c
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11522 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11523 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11524 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11527 for ac_func in ceilf floorf
11529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11530 echo "$as_me:$LINENO: checking for $ac_func" >&5
11531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11532 if eval "test \"\${$as_ac_var+set}\" = set"; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535 if test x$gcc_no_link = xyes; then
11536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11538 { (exit 1); exit 1; }; }
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11548 #define $ac_func innocuous_$ac_func
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char $ac_func (); below.
11552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11553 <limits.h> exists even on freestanding compilers. */
11555 #ifdef __STDC__
11556 # include <limits.h>
11557 #else
11558 # include <assert.h>
11559 #endif
11561 #undef $ac_func
11563 /* Override any gcc2 internal prototype to avoid an error. */
11564 #ifdef __cplusplus
11565 extern "C"
11567 #endif
11568 /* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11570 char $ac_func ();
11571 /* The GNU C library defines this for functions which it implements
11572 to always fail with ENOSYS. Some functions are actually named
11573 something starting with __ and the normal name is an alias. */
11574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11575 choke me
11576 #else
11577 char (*f) () = $ac_func;
11578 #endif
11579 #ifdef __cplusplus
11581 #endif
11584 main ()
11586 return f != $ac_func;
11588 return 0;
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest$ac_exeext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 eval "$as_ac_var=yes"
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 eval "$as_ac_var=no"
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11624 if test `eval echo '${'$as_ac_var'}'` = yes; then
11625 cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627 _ACEOF
11630 done
11636 echo "$as_me:$LINENO: checking for expf declaration" >&5
11637 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11638 if test x${glibcxx_cv_func_expf_use+set} != xset; then
11639 if test "${glibcxx_cv_func_expf_use+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11645 ac_ext=cc
11646 ac_cpp='$CXXCPP $CPPFLAGS'
11647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 #include <math.h>
11658 #ifdef HAVE_IEEEFP_H
11659 #include <ieeefp.h>
11660 #endif
11663 main ()
11665 expf(0);
11667 return 0;
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672 (eval $ac_compile) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest.$ac_objext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 glibcxx_cv_func_expf_use=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 glibcxx_cv_func_expf_use=no
11698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11699 ac_ext=c
11700 ac_cpp='$CPP $CPPFLAGS'
11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11710 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11712 if test x$glibcxx_cv_func_expf_use = x"yes"; then
11714 for ac_func in expf
11716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11717 echo "$as_me:$LINENO: checking for $ac_func" >&5
11718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11719 if eval "test \"\${$as_ac_var+set}\" = set"; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 if test x$gcc_no_link = xyes; then
11723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11725 { (exit 1); exit 1; }; }
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define $ac_func innocuous_$ac_func
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11742 #ifdef __STDC__
11743 # include <limits.h>
11744 #else
11745 # include <assert.h>
11746 #endif
11748 #undef $ac_func
11750 /* Override any gcc2 internal prototype to avoid an error. */
11751 #ifdef __cplusplus
11752 extern "C"
11754 #endif
11755 /* We use char because int might match the return type of a gcc2
11756 builtin and then its argument prototype would still apply. */
11757 char $ac_func ();
11758 /* The GNU C library defines this for functions which it implements
11759 to always fail with ENOSYS. Some functions are actually named
11760 something starting with __ and the normal name is an alias. */
11761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11762 choke me
11763 #else
11764 char (*f) () = $ac_func;
11765 #endif
11766 #ifdef __cplusplus
11768 #endif
11771 main ()
11773 return f != $ac_func;
11775 return 0;
11777 _ACEOF
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "$as_ac_var=yes"
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 eval "$as_ac_var=no"
11806 rm -f conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11811 if test `eval echo '${'$as_ac_var'}'` = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 _ACEOF
11817 done
11819 else
11821 echo "$as_me:$LINENO: checking for _expf declaration" >&5
11822 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
11823 if test x${glibcxx_cv_func__expf_use+set} != xset; then
11824 if test "${glibcxx_cv_func__expf_use+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11830 ac_ext=cc
11831 ac_cpp='$CXXCPP $CPPFLAGS'
11832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h. */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 #include <math.h>
11843 #ifdef HAVE_IEEEFP_H
11844 #include <ieeefp.h>
11845 #endif
11848 main ()
11850 _expf(0);
11852 return 0;
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857 (eval $ac_compile) 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } &&
11864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 glibcxx_cv_func__expf_use=yes
11877 else
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 glibcxx_cv_func__expf_use=no
11883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11884 ac_ext=c
11885 ac_cpp='$CPP $CPPFLAGS'
11886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11895 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11897 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11899 for ac_func in _expf
11901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11904 if eval "test \"\${$as_ac_var+set}\" = set"; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907 if test x$gcc_no_link = xyes; then
11908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11910 { (exit 1); exit 1; }; }
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920 #define $ac_func innocuous_$ac_func
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11927 #ifdef __STDC__
11928 # include <limits.h>
11929 #else
11930 # include <assert.h>
11931 #endif
11933 #undef $ac_func
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 #ifdef __cplusplus
11937 extern "C"
11939 #endif
11940 /* We use char because int might match the return type of a gcc2
11941 builtin and then its argument prototype would still apply. */
11942 char $ac_func ();
11943 /* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11947 choke me
11948 #else
11949 char (*f) () = $ac_func;
11950 #endif
11951 #ifdef __cplusplus
11953 #endif
11956 main ()
11958 return f != $ac_func;
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 eval "$as_ac_var=yes"
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 eval "$as_ac_var=no"
11991 rm -f conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12002 done
12009 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12010 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12011 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12012 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12018 ac_ext=cc
12019 ac_cpp='$CXXCPP $CPPFLAGS'
12020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 #include <math.h>
12031 #ifdef HAVE_IEEEFP_H
12032 #include <ieeefp.h>
12033 #endif
12036 main ()
12038 isnanf(0);
12040 return 0;
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12045 (eval $ac_compile) 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 glibcxx_cv_func_isnanf_use=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 glibcxx_cv_func_isnanf_use=no
12071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12072 ac_ext=c
12073 ac_cpp='$CPP $CPPFLAGS'
12074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12082 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12083 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12085 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12087 for ac_func in isnanf
12089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12090 echo "$as_me:$LINENO: checking for $ac_func" >&5
12091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12092 if eval "test \"\${$as_ac_var+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 if test x$gcc_no_link = xyes; then
12096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12098 { (exit 1); exit 1; }; }
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12108 #define $ac_func innocuous_$ac_func
12110 /* System header to define __stub macros and hopefully few prototypes,
12111 which can conflict with char $ac_func (); below.
12112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113 <limits.h> exists even on freestanding compilers. */
12115 #ifdef __STDC__
12116 # include <limits.h>
12117 #else
12118 # include <assert.h>
12119 #endif
12121 #undef $ac_func
12123 /* Override any gcc2 internal prototype to avoid an error. */
12124 #ifdef __cplusplus
12125 extern "C"
12127 #endif
12128 /* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12130 char $ac_func ();
12131 /* The GNU C library defines this for functions which it implements
12132 to always fail with ENOSYS. Some functions are actually named
12133 something starting with __ and the normal name is an alias. */
12134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12135 choke me
12136 #else
12137 char (*f) () = $ac_func;
12138 #endif
12139 #ifdef __cplusplus
12141 #endif
12144 main ()
12146 return f != $ac_func;
12148 return 0;
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153 (eval $ac_link) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 eval "$as_ac_var=yes"
12173 else
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 eval "$as_ac_var=no"
12179 rm -f conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12184 if test `eval echo '${'$as_ac_var'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12187 _ACEOF
12190 done
12192 else
12194 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12195 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12196 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12197 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12203 ac_ext=cc
12204 ac_cpp='$CXXCPP $CPPFLAGS'
12205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12209 cat >conftest.$ac_ext <<_ACEOF
12210 /* confdefs.h. */
12211 _ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 #include <math.h>
12216 #ifdef HAVE_IEEEFP_H
12217 #include <ieeefp.h>
12218 #endif
12221 main ()
12223 _isnanf(0);
12225 return 0;
12227 _ACEOF
12228 rm -f conftest.$ac_objext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230 (eval $ac_compile) 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; } &&
12243 { ac_try='test -s conftest.$ac_objext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 glibcxx_cv_func__isnanf_use=yes
12250 else
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 glibcxx_cv_func__isnanf_use=no
12256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12257 ac_ext=c
12258 ac_cpp='$CPP $CPPFLAGS'
12259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12267 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12268 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12270 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12272 for ac_func in _isnanf
12274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275 echo "$as_me:$LINENO: checking for $ac_func" >&5
12276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12277 if eval "test \"\${$as_ac_var+set}\" = set"; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280 if test x$gcc_no_link = xyes; then
12281 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12283 { (exit 1); exit 1; }; }
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12293 #define $ac_func innocuous_$ac_func
12295 /* System header to define __stub macros and hopefully few prototypes,
12296 which can conflict with char $ac_func (); below.
12297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12298 <limits.h> exists even on freestanding compilers. */
12300 #ifdef __STDC__
12301 # include <limits.h>
12302 #else
12303 # include <assert.h>
12304 #endif
12306 #undef $ac_func
12308 /* Override any gcc2 internal prototype to avoid an error. */
12309 #ifdef __cplusplus
12310 extern "C"
12312 #endif
12313 /* We use char because int might match the return type of a gcc2
12314 builtin and then its argument prototype would still apply. */
12315 char $ac_func ();
12316 /* The GNU C library defines this for functions which it implements
12317 to always fail with ENOSYS. Some functions are actually named
12318 something starting with __ and the normal name is an alias. */
12319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12320 choke me
12321 #else
12322 char (*f) () = $ac_func;
12323 #endif
12324 #ifdef __cplusplus
12326 #endif
12329 main ()
12331 return f != $ac_func;
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 eval "$as_ac_var=no"
12364 rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
12367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12369 if test `eval echo '${'$as_ac_var'}'` = yes; then
12370 cat >>confdefs.h <<_ACEOF
12371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12372 _ACEOF
12375 done
12382 echo "$as_me:$LINENO: checking for isinff declaration" >&5
12383 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12384 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12385 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12391 ac_ext=cc
12392 ac_cpp='$CXXCPP $CPPFLAGS'
12393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12397 cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h. */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403 #include <math.h>
12404 #ifdef HAVE_IEEEFP_H
12405 #include <ieeefp.h>
12406 #endif
12409 main ()
12411 isinff(0);
12413 return 0;
12415 _ACEOF
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 glibcxx_cv_func_isinff_use=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 glibcxx_cv_func_isinff_use=no
12444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 ac_ext=c
12446 ac_cpp='$CPP $CPPFLAGS'
12447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12455 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12456 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12458 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12460 for ac_func in isinff
12462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12463 echo "$as_me:$LINENO: checking for $ac_func" >&5
12464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12465 if eval "test \"\${$as_ac_var+set}\" = set"; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 if test x$gcc_no_link = xyes; then
12469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12471 { (exit 1); exit 1; }; }
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481 #define $ac_func innocuous_$ac_func
12483 /* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12494 #undef $ac_func
12496 /* Override any gcc2 internal prototype to avoid an error. */
12497 #ifdef __cplusplus
12498 extern "C"
12500 #endif
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char $ac_func ();
12504 /* The GNU C library defines this for functions which it implements
12505 to always fail with ENOSYS. Some functions are actually named
12506 something starting with __ and the normal name is an alias. */
12507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12508 choke me
12509 #else
12510 char (*f) () = $ac_func;
12511 #endif
12512 #ifdef __cplusplus
12514 #endif
12517 main ()
12519 return f != $ac_func;
12521 return 0;
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>conftest.er1
12527 ac_status=$?
12528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 eval "$as_ac_var=yes"
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 eval "$as_ac_var=no"
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12558 cat >>confdefs.h <<_ACEOF
12559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 _ACEOF
12563 done
12565 else
12567 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12568 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12569 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12570 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12576 ac_ext=cc
12577 ac_cpp='$CXXCPP $CPPFLAGS'
12578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12582 cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h. */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 #include <math.h>
12589 #ifdef HAVE_IEEEFP_H
12590 #include <ieeefp.h>
12591 #endif
12594 main ()
12596 _isinff(0);
12598 return 0;
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 glibcxx_cv_func__isinff_use=yes
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 glibcxx_cv_func__isinff_use=no
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 ac_ext=c
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12640 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12641 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12643 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12645 for ac_func in _isinff
12647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12648 echo "$as_me:$LINENO: checking for $ac_func" >&5
12649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12650 if eval "test \"\${$as_ac_var+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653 if test x$gcc_no_link = xyes; then
12654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12656 { (exit 1); exit 1; }; }
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12666 #define $ac_func innocuous_$ac_func
12668 /* System header to define __stub macros and hopefully few prototypes,
12669 which can conflict with char $ac_func (); below.
12670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12671 <limits.h> exists even on freestanding compilers. */
12673 #ifdef __STDC__
12674 # include <limits.h>
12675 #else
12676 # include <assert.h>
12677 #endif
12679 #undef $ac_func
12681 /* Override any gcc2 internal prototype to avoid an error. */
12682 #ifdef __cplusplus
12683 extern "C"
12685 #endif
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char $ac_func ();
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12693 choke me
12694 #else
12695 char (*f) () = $ac_func;
12696 #endif
12697 #ifdef __cplusplus
12699 #endif
12702 main ()
12704 return f != $ac_func;
12706 return 0;
12708 _ACEOF
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711 (eval $ac_link) 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; } &&
12724 { ac_try='test -s conftest$ac_exeext'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 eval "$as_ac_var=yes"
12731 else
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 eval "$as_ac_var=no"
12737 rm -f conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12742 if test `eval echo '${'$as_ac_var'}'` = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12745 _ACEOF
12748 done
12755 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
12756 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
12757 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
12758 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12764 ac_ext=cc
12765 ac_cpp='$CXXCPP $CPPFLAGS'
12766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #include <math.h>
12778 main ()
12780 atan2f(0, 0);
12782 return 0;
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 (eval $ac_compile) 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 glibcxx_cv_func_atan2f_use=yes
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 glibcxx_cv_func_atan2f_use=no
12813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814 ac_ext=c
12815 ac_cpp='$CPP $CPPFLAGS'
12816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
12825 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
12827 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
12829 for ac_func in atan2f
12831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12832 echo "$as_me:$LINENO: checking for $ac_func" >&5
12833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12834 if eval "test \"\${$as_ac_var+set}\" = set"; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 else
12837 if test x$gcc_no_link = xyes; then
12838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12840 { (exit 1); exit 1; }; }
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850 #define $ac_func innocuous_$ac_func
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12857 #ifdef __STDC__
12858 # include <limits.h>
12859 #else
12860 # include <assert.h>
12861 #endif
12863 #undef $ac_func
12865 /* Override any gcc2 internal prototype to avoid an error. */
12866 #ifdef __cplusplus
12867 extern "C"
12869 #endif
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char $ac_func ();
12873 /* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12877 choke me
12878 #else
12879 char (*f) () = $ac_func;
12880 #endif
12881 #ifdef __cplusplus
12883 #endif
12886 main ()
12888 return f != $ac_func;
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895 (eval $ac_link) 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 eval "$as_ac_var=no"
12921 rm -f conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12926 if test `eval echo '${'$as_ac_var'}'` = yes; then
12927 cat >>confdefs.h <<_ACEOF
12928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929 _ACEOF
12932 done
12934 else
12936 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
12937 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
12938 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
12939 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12945 ac_ext=cc
12946 ac_cpp='$CXXCPP $CPPFLAGS'
12947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 #include <math.h>
12959 main ()
12961 _atan2f(0, 0);
12963 return 0;
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968 (eval $ac_compile) 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
12981 { ac_try='test -s conftest.$ac_objext'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 glibcxx_cv_func__atan2f_use=yes
12988 else
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 glibcxx_cv_func__atan2f_use=no
12994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12995 ac_ext=c
12996 ac_cpp='$CPP $CPPFLAGS'
12997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13005 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13006 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13008 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13010 for ac_func in _atan2f
13012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13013 echo "$as_me:$LINENO: checking for $ac_func" >&5
13014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13015 if eval "test \"\${$as_ac_var+set}\" = set"; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018 if test x$gcc_no_link = xyes; then
13019 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13021 { (exit 1); exit 1; }; }
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13031 #define $ac_func innocuous_$ac_func
13033 /* System header to define __stub macros and hopefully few prototypes,
13034 which can conflict with char $ac_func (); below.
13035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13036 <limits.h> exists even on freestanding compilers. */
13038 #ifdef __STDC__
13039 # include <limits.h>
13040 #else
13041 # include <assert.h>
13042 #endif
13044 #undef $ac_func
13046 /* Override any gcc2 internal prototype to avoid an error. */
13047 #ifdef __cplusplus
13048 extern "C"
13050 #endif
13051 /* We use char because int might match the return type of a gcc2
13052 builtin and then its argument prototype would still apply. */
13053 char $ac_func ();
13054 /* The GNU C library defines this for functions which it implements
13055 to always fail with ENOSYS. Some functions are actually named
13056 something starting with __ and the normal name is an alias. */
13057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13058 choke me
13059 #else
13060 char (*f) () = $ac_func;
13061 #endif
13062 #ifdef __cplusplus
13064 #endif
13067 main ()
13069 return f != $ac_func;
13071 return 0;
13073 _ACEOF
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 eval "$as_ac_var=yes"
13096 else
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 eval "$as_ac_var=no"
13102 rm -f conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13107 if test `eval echo '${'$as_ac_var'}'` = yes; then
13108 cat >>confdefs.h <<_ACEOF
13109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13110 _ACEOF
13113 done
13120 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13121 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13122 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13123 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13129 ac_ext=cc
13130 ac_cpp='$CXXCPP $CPPFLAGS'
13131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h. */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <math.h>
13142 #ifdef HAVE_IEEEFP_H
13143 #include <ieeefp.h>
13144 #endif
13147 main ()
13149 fabsf(0);
13151 return 0;
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13166 ac_status=$?
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest.$ac_objext'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 glibcxx_cv_func_fabsf_use=yes
13176 else
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 glibcxx_cv_func_fabsf_use=no
13182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183 ac_ext=c
13184 ac_cpp='$CPP $CPPFLAGS'
13185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13194 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13196 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13198 for ac_func in fabsf
13200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13201 echo "$as_me:$LINENO: checking for $ac_func" >&5
13202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13203 if eval "test \"\${$as_ac_var+set}\" = set"; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206 if test x$gcc_no_link = xyes; then
13207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13209 { (exit 1); exit 1; }; }
13211 cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h. */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13219 #define $ac_func innocuous_$ac_func
13221 /* System header to define __stub macros and hopefully few prototypes,
13222 which can conflict with char $ac_func (); below.
13223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13224 <limits.h> exists even on freestanding compilers. */
13226 #ifdef __STDC__
13227 # include <limits.h>
13228 #else
13229 # include <assert.h>
13230 #endif
13232 #undef $ac_func
13234 /* Override any gcc2 internal prototype to avoid an error. */
13235 #ifdef __cplusplus
13236 extern "C"
13238 #endif
13239 /* We use char because int might match the return type of a gcc2
13240 builtin and then its argument prototype would still apply. */
13241 char $ac_func ();
13242 /* The GNU C library defines this for functions which it implements
13243 to always fail with ENOSYS. Some functions are actually named
13244 something starting with __ and the normal name is an alias. */
13245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13246 choke me
13247 #else
13248 char (*f) () = $ac_func;
13249 #endif
13250 #ifdef __cplusplus
13252 #endif
13255 main ()
13257 return f != $ac_func;
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext conftest$ac_exeext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13264 (eval $ac_link) 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest$ac_exeext'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
13283 eval "$as_ac_var=yes"
13284 else
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 eval "$as_ac_var=no"
13290 rm -f conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13295 if test `eval echo '${'$as_ac_var'}'` = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13298 _ACEOF
13301 done
13303 else
13305 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13306 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13307 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13308 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13314 ac_ext=cc
13315 ac_cpp='$CXXCPP $CPPFLAGS'
13316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h. */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13326 #include <math.h>
13327 #ifdef HAVE_IEEEFP_H
13328 #include <ieeefp.h>
13329 #endif
13332 main ()
13334 _fabsf(0);
13336 return 0;
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>conftest.er1
13342 ac_status=$?
13343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 glibcxx_cv_func__fabsf_use=yes
13361 else
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 glibcxx_cv_func__fabsf_use=no
13367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ac_ext=c
13369 ac_cpp='$CPP $CPPFLAGS'
13370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13378 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13379 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13381 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13383 for ac_func in _fabsf
13385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13386 echo "$as_me:$LINENO: checking for $ac_func" >&5
13387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13388 if eval "test \"\${$as_ac_var+set}\" = set"; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 if test x$gcc_no_link = xyes; then
13392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13394 { (exit 1); exit 1; }; }
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13404 #define $ac_func innocuous_$ac_func
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char $ac_func (); below.
13408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13409 <limits.h> exists even on freestanding compilers. */
13411 #ifdef __STDC__
13412 # include <limits.h>
13413 #else
13414 # include <assert.h>
13415 #endif
13417 #undef $ac_func
13419 /* Override any gcc2 internal prototype to avoid an error. */
13420 #ifdef __cplusplus
13421 extern "C"
13423 #endif
13424 /* We use char because int might match the return type of a gcc2
13425 builtin and then its argument prototype would still apply. */
13426 char $ac_func ();
13427 /* The GNU C library defines this for functions which it implements
13428 to always fail with ENOSYS. Some functions are actually named
13429 something starting with __ and the normal name is an alias. */
13430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13431 choke me
13432 #else
13433 char (*f) () = $ac_func;
13434 #endif
13435 #ifdef __cplusplus
13437 #endif
13440 main ()
13442 return f != $ac_func;
13444 return 0;
13446 _ACEOF
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 eval "$as_ac_var=yes"
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 eval "$as_ac_var=no"
13475 rm -f conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13480 if test `eval echo '${'$as_ac_var'}'` = yes; then
13481 cat >>confdefs.h <<_ACEOF
13482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13483 _ACEOF
13486 done
13493 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13494 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13495 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13496 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13502 ac_ext=cc
13503 ac_cpp='$CXXCPP $CPPFLAGS'
13504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h. */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 #include <math.h>
13516 main ()
13518 fmodf(0, 0);
13520 return 0;
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13535 ac_status=$?
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest.$ac_objext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 glibcxx_cv_func_fmodf_use=yes
13545 else
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 glibcxx_cv_func_fmodf_use=no
13551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13552 ac_ext=c
13553 ac_cpp='$CPP $CPPFLAGS'
13554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13562 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13563 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13565 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13567 for ac_func in fmodf
13569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13570 echo "$as_me:$LINENO: checking for $ac_func" >&5
13571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13572 if eval "test \"\${$as_ac_var+set}\" = set"; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575 if test x$gcc_no_link = xyes; then
13576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13578 { (exit 1); exit 1; }; }
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h. */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13588 #define $ac_func innocuous_$ac_func
13590 /* System header to define __stub macros and hopefully few prototypes,
13591 which can conflict with char $ac_func (); below.
13592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13593 <limits.h> exists even on freestanding compilers. */
13595 #ifdef __STDC__
13596 # include <limits.h>
13597 #else
13598 # include <assert.h>
13599 #endif
13601 #undef $ac_func
13603 /* Override any gcc2 internal prototype to avoid an error. */
13604 #ifdef __cplusplus
13605 extern "C"
13607 #endif
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13610 char $ac_func ();
13611 /* The GNU C library defines this for functions which it implements
13612 to always fail with ENOSYS. Some functions are actually named
13613 something starting with __ and the normal name is an alias. */
13614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13615 choke me
13616 #else
13617 char (*f) () = $ac_func;
13618 #endif
13619 #ifdef __cplusplus
13621 #endif
13624 main ()
13626 return f != $ac_func;
13628 return 0;
13630 _ACEOF
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13633 (eval $ac_link) 2>conftest.er1
13634 ac_status=$?
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest$ac_exeext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13649 ac_status=$?
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 eval "$as_ac_var=yes"
13653 else
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 eval "$as_ac_var=no"
13659 rm -f conftest.err conftest.$ac_objext \
13660 conftest$ac_exeext conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13664 if test `eval echo '${'$as_ac_var'}'` = yes; then
13665 cat >>confdefs.h <<_ACEOF
13666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13667 _ACEOF
13670 done
13672 else
13674 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13675 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13676 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13677 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13683 ac_ext=cc
13684 ac_cpp='$CXXCPP $CPPFLAGS'
13685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #include <math.h>
13697 main ()
13699 _fmodf(0, 0);
13701 return 0;
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
13713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 glibcxx_cv_func__fmodf_use=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 glibcxx_cv_func__fmodf_use=no
13732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733 ac_ext=c
13734 ac_cpp='$CPP $CPPFLAGS'
13735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13743 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
13744 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
13746 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13748 for ac_func in _fmodf
13750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13751 echo "$as_me:$LINENO: checking for $ac_func" >&5
13752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13753 if eval "test \"\${$as_ac_var+set}\" = set"; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756 if test x$gcc_no_link = xyes; then
13757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13759 { (exit 1); exit 1; }; }
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h. */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13769 #define $ac_func innocuous_$ac_func
13771 /* System header to define __stub macros and hopefully few prototypes,
13772 which can conflict with char $ac_func (); below.
13773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13774 <limits.h> exists even on freestanding compilers. */
13776 #ifdef __STDC__
13777 # include <limits.h>
13778 #else
13779 # include <assert.h>
13780 #endif
13782 #undef $ac_func
13784 /* Override any gcc2 internal prototype to avoid an error. */
13785 #ifdef __cplusplus
13786 extern "C"
13788 #endif
13789 /* We use char because int might match the return type of a gcc2
13790 builtin and then its argument prototype would still apply. */
13791 char $ac_func ();
13792 /* The GNU C library defines this for functions which it implements
13793 to always fail with ENOSYS. Some functions are actually named
13794 something starting with __ and the normal name is an alias. */
13795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13796 choke me
13797 #else
13798 char (*f) () = $ac_func;
13799 #endif
13800 #ifdef __cplusplus
13802 #endif
13805 main ()
13807 return f != $ac_func;
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814 (eval $ac_link) 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest$ac_exeext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 eval "$as_ac_var=yes"
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 eval "$as_ac_var=no"
13840 rm -f conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13845 if test `eval echo '${'$as_ac_var'}'` = yes; then
13846 cat >>confdefs.h <<_ACEOF
13847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13848 _ACEOF
13851 done
13858 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
13859 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
13860 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
13861 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13867 ac_ext=cc
13868 ac_cpp='$CXXCPP $CPPFLAGS'
13869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 #include <math.h>
13881 main ()
13883 frexpf(0, 0);
13885 return 0;
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>conftest.er1
13891 ac_status=$?
13892 grep -v '^ *+' conftest.er1 >conftest.err
13893 rm -f conftest.er1
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 glibcxx_cv_func_frexpf_use=yes
13910 else
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 glibcxx_cv_func_frexpf_use=no
13916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13917 ac_ext=c
13918 ac_cpp='$CPP $CPPFLAGS'
13919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13927 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
13928 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
13930 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
13932 for ac_func in frexpf
13934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13935 echo "$as_me:$LINENO: checking for $ac_func" >&5
13936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13937 if eval "test \"\${$as_ac_var+set}\" = set"; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940 if test x$gcc_no_link = xyes; then
13941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13943 { (exit 1); exit 1; }; }
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13953 #define $ac_func innocuous_$ac_func
13955 /* System header to define __stub macros and hopefully few prototypes,
13956 which can conflict with char $ac_func (); below.
13957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13958 <limits.h> exists even on freestanding compilers. */
13960 #ifdef __STDC__
13961 # include <limits.h>
13962 #else
13963 # include <assert.h>
13964 #endif
13966 #undef $ac_func
13968 /* Override any gcc2 internal prototype to avoid an error. */
13969 #ifdef __cplusplus
13970 extern "C"
13972 #endif
13973 /* We use char because int might match the return type of a gcc2
13974 builtin and then its argument prototype would still apply. */
13975 char $ac_func ();
13976 /* The GNU C library defines this for functions which it implements
13977 to always fail with ENOSYS. Some functions are actually named
13978 something starting with __ and the normal name is an alias. */
13979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13980 choke me
13981 #else
13982 char (*f) () = $ac_func;
13983 #endif
13984 #ifdef __cplusplus
13986 #endif
13989 main ()
13991 return f != $ac_func;
13993 return 0;
13995 _ACEOF
13996 rm -f conftest.$ac_objext conftest$ac_exeext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13998 (eval $ac_link) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest$ac_exeext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 eval "$as_ac_var=yes"
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 eval "$as_ac_var=no"
14024 rm -f conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14029 if test `eval echo '${'$as_ac_var'}'` = yes; then
14030 cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14032 _ACEOF
14035 done
14037 else
14039 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14040 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14041 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14042 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14048 ac_ext=cc
14049 ac_cpp='$CXXCPP $CPPFLAGS'
14050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h. */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 #include <math.h>
14062 main ()
14064 _frexpf(0, 0);
14066 return 0;
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 glibcxx_cv_func__frexpf_use=yes
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 glibcxx_cv_func__frexpf_use=no
14097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14098 ac_ext=c
14099 ac_cpp='$CPP $CPPFLAGS'
14100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14108 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14109 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14111 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14113 for ac_func in _frexpf
14115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14116 echo "$as_me:$LINENO: checking for $ac_func" >&5
14117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_var+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121 if test x$gcc_no_link = xyes; then
14122 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14124 { (exit 1); exit 1; }; }
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h. */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14134 #define $ac_func innocuous_$ac_func
14136 /* System header to define __stub macros and hopefully few prototypes,
14137 which can conflict with char $ac_func (); below.
14138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14139 <limits.h> exists even on freestanding compilers. */
14141 #ifdef __STDC__
14142 # include <limits.h>
14143 #else
14144 # include <assert.h>
14145 #endif
14147 #undef $ac_func
14149 /* Override any gcc2 internal prototype to avoid an error. */
14150 #ifdef __cplusplus
14151 extern "C"
14153 #endif
14154 /* We use char because int might match the return type of a gcc2
14155 builtin and then its argument prototype would still apply. */
14156 char $ac_func ();
14157 /* The GNU C library defines this for functions which it implements
14158 to always fail with ENOSYS. Some functions are actually named
14159 something starting with __ and the normal name is an alias. */
14160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14161 choke me
14162 #else
14163 char (*f) () = $ac_func;
14164 #endif
14165 #ifdef __cplusplus
14167 #endif
14170 main ()
14172 return f != $ac_func;
14174 return 0;
14176 _ACEOF
14177 rm -f conftest.$ac_objext conftest$ac_exeext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179 (eval $ac_link) 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; } &&
14192 { ac_try='test -s conftest$ac_exeext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 eval "$as_ac_var=yes"
14199 else
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14203 eval "$as_ac_var=no"
14205 rm -f conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
14208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14210 if test `eval echo '${'$as_ac_var'}'` = yes; then
14211 cat >>confdefs.h <<_ACEOF
14212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14213 _ACEOF
14216 done
14223 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14224 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14225 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14226 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14232 ac_ext=cc
14233 ac_cpp='$CXXCPP $CPPFLAGS'
14234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <math.h>
14246 main ()
14248 hypotf(0, 0);
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 glibcxx_cv_func_hypotf_use=yes
14275 else
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 glibcxx_cv_func_hypotf_use=no
14281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14282 ac_ext=c
14283 ac_cpp='$CPP $CPPFLAGS'
14284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14292 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14293 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14295 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14297 for ac_func in hypotf
14299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14300 echo "$as_me:$LINENO: checking for $ac_func" >&5
14301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14302 if eval "test \"\${$as_ac_var+set}\" = set"; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305 if test x$gcc_no_link = xyes; then
14306 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14308 { (exit 1); exit 1; }; }
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14318 #define $ac_func innocuous_$ac_func
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char $ac_func (); below.
14322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14323 <limits.h> exists even on freestanding compilers. */
14325 #ifdef __STDC__
14326 # include <limits.h>
14327 #else
14328 # include <assert.h>
14329 #endif
14331 #undef $ac_func
14333 /* Override any gcc2 internal prototype to avoid an error. */
14334 #ifdef __cplusplus
14335 extern "C"
14337 #endif
14338 /* We use char because int might match the return type of a gcc2
14339 builtin and then its argument prototype would still apply. */
14340 char $ac_func ();
14341 /* The GNU C library defines this for functions which it implements
14342 to always fail with ENOSYS. Some functions are actually named
14343 something starting with __ and the normal name is an alias. */
14344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14345 choke me
14346 #else
14347 char (*f) () = $ac_func;
14348 #endif
14349 #ifdef __cplusplus
14351 #endif
14354 main ()
14356 return f != $ac_func;
14358 return 0;
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14363 (eval $ac_link) 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14373 ac_status=$?
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 eval "$as_ac_var=yes"
14383 else
14384 echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 eval "$as_ac_var=no"
14389 rm -f conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14394 if test `eval echo '${'$as_ac_var'}'` = yes; then
14395 cat >>confdefs.h <<_ACEOF
14396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14397 _ACEOF
14400 done
14402 else
14404 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14405 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14406 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14407 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 else
14413 ac_ext=cc
14414 ac_cpp='$CXXCPP $CPPFLAGS'
14415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 #include <math.h>
14427 main ()
14429 _hypotf(0, 0);
14431 return 0;
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
14443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 glibcxx_cv_func__hypotf_use=yes
14456 else
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 glibcxx_cv_func__hypotf_use=no
14462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14463 ac_ext=c
14464 ac_cpp='$CPP $CPPFLAGS'
14465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14473 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14474 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14476 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14478 for ac_func in _hypotf
14480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14481 echo "$as_me:$LINENO: checking for $ac_func" >&5
14482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14483 if eval "test \"\${$as_ac_var+set}\" = set"; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 if test x$gcc_no_link = xyes; then
14487 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14489 { (exit 1); exit 1; }; }
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14499 #define $ac_func innocuous_$ac_func
14501 /* System header to define __stub macros and hopefully few prototypes,
14502 which can conflict with char $ac_func (); below.
14503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14504 <limits.h> exists even on freestanding compilers. */
14506 #ifdef __STDC__
14507 # include <limits.h>
14508 #else
14509 # include <assert.h>
14510 #endif
14512 #undef $ac_func
14514 /* Override any gcc2 internal prototype to avoid an error. */
14515 #ifdef __cplusplus
14516 extern "C"
14518 #endif
14519 /* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14521 char $ac_func ();
14522 /* The GNU C library defines this for functions which it implements
14523 to always fail with ENOSYS. Some functions are actually named
14524 something starting with __ and the normal name is an alias. */
14525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14526 choke me
14527 #else
14528 char (*f) () = $ac_func;
14529 #endif
14530 #ifdef __cplusplus
14532 #endif
14535 main ()
14537 return f != $ac_func;
14539 return 0;
14541 _ACEOF
14542 rm -f conftest.$ac_objext conftest$ac_exeext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14544 (eval $ac_link) 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 eval "$as_ac_var=yes"
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 eval "$as_ac_var=no"
14570 rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14575 if test `eval echo '${'$as_ac_var'}'` = yes; then
14576 cat >>confdefs.h <<_ACEOF
14577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14578 _ACEOF
14581 done
14588 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14589 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14590 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14591 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14597 ac_ext=cc
14598 ac_cpp='$CXXCPP $CPPFLAGS'
14599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <math.h>
14611 main ()
14613 ldexpf(0, 0);
14615 return 0;
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620 (eval $ac_compile) 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try='test -s conftest.$ac_objext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
14639 glibcxx_cv_func_ldexpf_use=yes
14640 else
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 glibcxx_cv_func_ldexpf_use=no
14646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14647 ac_ext=c
14648 ac_cpp='$CPP $CPPFLAGS'
14649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14657 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14658 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14660 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14662 for ac_func in ldexpf
14664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14665 echo "$as_me:$LINENO: checking for $ac_func" >&5
14666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14667 if eval "test \"\${$as_ac_var+set}\" = set"; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670 if test x$gcc_no_link = xyes; then
14671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14673 { (exit 1); exit 1; }; }
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14683 #define $ac_func innocuous_$ac_func
14685 /* System header to define __stub macros and hopefully few prototypes,
14686 which can conflict with char $ac_func (); below.
14687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14688 <limits.h> exists even on freestanding compilers. */
14690 #ifdef __STDC__
14691 # include <limits.h>
14692 #else
14693 # include <assert.h>
14694 #endif
14696 #undef $ac_func
14698 /* Override any gcc2 internal prototype to avoid an error. */
14699 #ifdef __cplusplus
14700 extern "C"
14702 #endif
14703 /* We use char because int might match the return type of a gcc2
14704 builtin and then its argument prototype would still apply. */
14705 char $ac_func ();
14706 /* The GNU C library defines this for functions which it implements
14707 to always fail with ENOSYS. Some functions are actually named
14708 something starting with __ and the normal name is an alias. */
14709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14710 choke me
14711 #else
14712 char (*f) () = $ac_func;
14713 #endif
14714 #ifdef __cplusplus
14716 #endif
14719 main ()
14721 return f != $ac_func;
14723 return 0;
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>conftest.er1
14729 ac_status=$?
14730 grep -v '^ *+' conftest.er1 >conftest.err
14731 rm -f conftest.er1
14732 cat conftest.err >&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; } &&
14741 { ac_try='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 eval "$as_ac_var=yes"
14748 else
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14752 eval "$as_ac_var=no"
14754 rm -f conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext conftest.$ac_ext
14757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14759 if test `eval echo '${'$as_ac_var'}'` = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14762 _ACEOF
14765 done
14767 else
14769 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
14770 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
14771 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14772 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14778 ac_ext=cc
14779 ac_cpp='$CXXCPP $CPPFLAGS'
14780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 #include <math.h>
14792 main ()
14794 _ldexpf(0, 0);
14796 return 0;
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 glibcxx_cv_func__ldexpf_use=yes
14821 else
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14825 glibcxx_cv_func__ldexpf_use=no
14827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14828 ac_ext=c
14829 ac_cpp='$CPP $CPPFLAGS'
14830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14838 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
14839 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
14841 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
14843 for ac_func in _ldexpf
14845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14846 echo "$as_me:$LINENO: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$as_ac_var+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851 if test x$gcc_no_link = xyes; then
14852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14854 { (exit 1); exit 1; }; }
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h. */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14864 #define $ac_func innocuous_$ac_func
14866 /* System header to define __stub macros and hopefully few prototypes,
14867 which can conflict with char $ac_func (); below.
14868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14869 <limits.h> exists even on freestanding compilers. */
14871 #ifdef __STDC__
14872 # include <limits.h>
14873 #else
14874 # include <assert.h>
14875 #endif
14877 #undef $ac_func
14879 /* Override any gcc2 internal prototype to avoid an error. */
14880 #ifdef __cplusplus
14881 extern "C"
14883 #endif
14884 /* We use char because int might match the return type of a gcc2
14885 builtin and then its argument prototype would still apply. */
14886 char $ac_func ();
14887 /* The GNU C library defines this for functions which it implements
14888 to always fail with ENOSYS. Some functions are actually named
14889 something starting with __ and the normal name is an alias. */
14890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14891 choke me
14892 #else
14893 char (*f) () = $ac_func;
14894 #endif
14895 #ifdef __cplusplus
14897 #endif
14900 main ()
14902 return f != $ac_func;
14904 return 0;
14906 _ACEOF
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 eval "$as_ac_var=yes"
14929 else
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 eval "$as_ac_var=no"
14935 rm -f conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14940 if test `eval echo '${'$as_ac_var'}'` = yes; then
14941 cat >>confdefs.h <<_ACEOF
14942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14943 _ACEOF
14946 done
14953 echo "$as_me:$LINENO: checking for logf declaration" >&5
14954 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
14955 if test x${glibcxx_cv_func_logf_use+set} != xset; then
14956 if test "${glibcxx_cv_func_logf_use+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14962 ac_ext=cc
14963 ac_cpp='$CXXCPP $CPPFLAGS'
14964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 #include <math.h>
14975 #ifdef HAVE_IEEEFP_H
14976 #include <ieeefp.h>
14977 #endif
14980 main ()
14982 logf(0);
14984 return 0;
14986 _ACEOF
14987 rm -f conftest.$ac_objext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14989 (eval $ac_compile) 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
14999 ac_status=$?
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 glibcxx_cv_func_logf_use=yes
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 glibcxx_cv_func_logf_use=no
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016 ac_ext=c
15017 ac_cpp='$CPP $CPPFLAGS'
15018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15026 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15027 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15029 if test x$glibcxx_cv_func_logf_use = x"yes"; then
15031 for ac_func in logf
15033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15034 echo "$as_me:$LINENO: checking for $ac_func" >&5
15035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15036 if eval "test \"\${$as_ac_var+set}\" = set"; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15039 if test x$gcc_no_link = xyes; then
15040 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15041 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15042 { (exit 1); exit 1; }; }
15044 cat >conftest.$ac_ext <<_ACEOF
15045 /* confdefs.h. */
15046 _ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15052 #define $ac_func innocuous_$ac_func
15054 /* System header to define __stub macros and hopefully few prototypes,
15055 which can conflict with char $ac_func (); below.
15056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15057 <limits.h> exists even on freestanding compilers. */
15059 #ifdef __STDC__
15060 # include <limits.h>
15061 #else
15062 # include <assert.h>
15063 #endif
15065 #undef $ac_func
15067 /* Override any gcc2 internal prototype to avoid an error. */
15068 #ifdef __cplusplus
15069 extern "C"
15071 #endif
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15074 char $ac_func ();
15075 /* The GNU C library defines this for functions which it implements
15076 to always fail with ENOSYS. Some functions are actually named
15077 something starting with __ and the normal name is an alias. */
15078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15079 choke me
15080 #else
15081 char (*f) () = $ac_func;
15082 #endif
15083 #ifdef __cplusplus
15085 #endif
15088 main ()
15090 return f != $ac_func;
15092 return 0;
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 eval "$as_ac_var=yes"
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 eval "$as_ac_var=no"
15123 rm -f conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15128 if test `eval echo '${'$as_ac_var'}'` = yes; then
15129 cat >>confdefs.h <<_ACEOF
15130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15131 _ACEOF
15134 done
15136 else
15138 echo "$as_me:$LINENO: checking for _logf declaration" >&5
15139 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15140 if test x${glibcxx_cv_func__logf_use+set} != xset; then
15141 if test "${glibcxx_cv_func__logf_use+set}" = set; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15147 ac_ext=cc
15148 ac_cpp='$CXXCPP $CPPFLAGS'
15149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 #include <math.h>
15160 #ifdef HAVE_IEEEFP_H
15161 #include <ieeefp.h>
15162 #endif
15165 main ()
15167 _logf(0);
15169 return 0;
15171 _ACEOF
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174 (eval $ac_compile) 2>conftest.er1
15175 ac_status=$?
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 glibcxx_cv_func__logf_use=yes
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 glibcxx_cv_func__logf_use=no
15200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201 ac_ext=c
15202 ac_cpp='$CPP $CPPFLAGS'
15203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15212 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15214 if test x$glibcxx_cv_func__logf_use = x"yes"; then
15216 for ac_func in _logf
15218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15219 echo "$as_me:$LINENO: checking for $ac_func" >&5
15220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15221 if eval "test \"\${$as_ac_var+set}\" = set"; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224 if test x$gcc_no_link = xyes; then
15225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15227 { (exit 1); exit 1; }; }
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h. */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15237 #define $ac_func innocuous_$ac_func
15239 /* System header to define __stub macros and hopefully few prototypes,
15240 which can conflict with char $ac_func (); below.
15241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15242 <limits.h> exists even on freestanding compilers. */
15244 #ifdef __STDC__
15245 # include <limits.h>
15246 #else
15247 # include <assert.h>
15248 #endif
15250 #undef $ac_func
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 #ifdef __cplusplus
15254 extern "C"
15256 #endif
15257 /* We use char because int might match the return type of a gcc2
15258 builtin and then its argument prototype would still apply. */
15259 char $ac_func ();
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15264 choke me
15265 #else
15266 char (*f) () = $ac_func;
15267 #endif
15268 #ifdef __cplusplus
15270 #endif
15273 main ()
15275 return f != $ac_func;
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15282 (eval $ac_link) 2>conftest.er1
15283 ac_status=$?
15284 grep -v '^ *+' conftest.er1 >conftest.err
15285 rm -f conftest.er1
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest$ac_exeext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 eval "$as_ac_var=yes"
15302 else
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 eval "$as_ac_var=no"
15308 rm -f conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15313 if test `eval echo '${'$as_ac_var'}'` = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15316 _ACEOF
15319 done
15326 echo "$as_me:$LINENO: checking for log10f declaration" >&5
15327 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15328 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15329 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15335 ac_ext=cc
15336 ac_cpp='$CXXCPP $CPPFLAGS'
15337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #include <math.h>
15348 #ifdef HAVE_IEEEFP_H
15349 #include <ieeefp.h>
15350 #endif
15353 main ()
15355 log10f(0);
15357 return 0;
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 glibcxx_cv_func_log10f_use=yes
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 glibcxx_cv_func_log10f_use=no
15388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15389 ac_ext=c
15390 ac_cpp='$CPP $CPPFLAGS'
15391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15399 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15400 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15402 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15404 for ac_func in log10f
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15409 if eval "test \"\${$as_ac_var+set}\" = set"; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 if test x$gcc_no_link = xyes; then
15413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15415 { (exit 1); exit 1; }; }
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15425 #define $ac_func innocuous_$ac_func
15427 /* System header to define __stub macros and hopefully few prototypes,
15428 which can conflict with char $ac_func (); below.
15429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15430 <limits.h> exists even on freestanding compilers. */
15432 #ifdef __STDC__
15433 # include <limits.h>
15434 #else
15435 # include <assert.h>
15436 #endif
15438 #undef $ac_func
15440 /* Override any gcc2 internal prototype to avoid an error. */
15441 #ifdef __cplusplus
15442 extern "C"
15444 #endif
15445 /* We use char because int might match the return type of a gcc2
15446 builtin and then its argument prototype would still apply. */
15447 char $ac_func ();
15448 /* The GNU C library defines this for functions which it implements
15449 to always fail with ENOSYS. Some functions are actually named
15450 something starting with __ and the normal name is an alias. */
15451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15452 choke me
15453 #else
15454 char (*f) () = $ac_func;
15455 #endif
15456 #ifdef __cplusplus
15458 #endif
15461 main ()
15463 return f != $ac_func;
15465 return 0;
15467 _ACEOF
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 eval "$as_ac_var=yes"
15490 else
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 eval "$as_ac_var=no"
15496 rm -f conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15501 if test `eval echo '${'$as_ac_var'}'` = yes; then
15502 cat >>confdefs.h <<_ACEOF
15503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15504 _ACEOF
15507 done
15509 else
15511 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15512 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15513 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15514 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15520 ac_ext=cc
15521 ac_cpp='$CXXCPP $CPPFLAGS'
15522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15526 cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h. */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 #include <math.h>
15533 #ifdef HAVE_IEEEFP_H
15534 #include <ieeefp.h>
15535 #endif
15538 main ()
15540 _log10f(0);
15542 return 0;
15544 _ACEOF
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547 (eval $ac_compile) 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 glibcxx_cv_func__log10f_use=yes
15567 else
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 glibcxx_cv_func__log10f_use=no
15573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15574 ac_ext=c
15575 ac_cpp='$CPP $CPPFLAGS'
15576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15584 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15585 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15587 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15589 for ac_func in _log10f
15591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15592 echo "$as_me:$LINENO: checking for $ac_func" >&5
15593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15594 if eval "test \"\${$as_ac_var+set}\" = set"; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597 if test x$gcc_no_link = xyes; then
15598 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15600 { (exit 1); exit 1; }; }
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15610 #define $ac_func innocuous_$ac_func
15612 /* System header to define __stub macros and hopefully few prototypes,
15613 which can conflict with char $ac_func (); below.
15614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15615 <limits.h> exists even on freestanding compilers. */
15617 #ifdef __STDC__
15618 # include <limits.h>
15619 #else
15620 # include <assert.h>
15621 #endif
15623 #undef $ac_func
15625 /* Override any gcc2 internal prototype to avoid an error. */
15626 #ifdef __cplusplus
15627 extern "C"
15629 #endif
15630 /* We use char because int might match the return type of a gcc2
15631 builtin and then its argument prototype would still apply. */
15632 char $ac_func ();
15633 /* The GNU C library defines this for functions which it implements
15634 to always fail with ENOSYS. Some functions are actually named
15635 something starting with __ and the normal name is an alias. */
15636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15637 choke me
15638 #else
15639 char (*f) () = $ac_func;
15640 #endif
15641 #ifdef __cplusplus
15643 #endif
15646 main ()
15648 return f != $ac_func;
15650 return 0;
15652 _ACEOF
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15655 (eval $ac_link) 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest$ac_exeext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 eval "$as_ac_var=yes"
15675 else
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 eval "$as_ac_var=no"
15681 rm -f conftest.err conftest.$ac_objext \
15682 conftest$ac_exeext conftest.$ac_ext
15684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15686 if test `eval echo '${'$as_ac_var'}'` = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15689 _ACEOF
15692 done
15699 echo "$as_me:$LINENO: checking for modff declaration" >&5
15700 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
15701 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15702 if test "${glibcxx_cv_func_modff_use+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15708 ac_ext=cc
15709 ac_cpp='$CXXCPP $CPPFLAGS'
15710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <math.h>
15722 main ()
15724 modff(0, 0);
15726 return 0;
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 glibcxx_cv_func_modff_use=yes
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 glibcxx_cv_func_modff_use=no
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15758 ac_ext=c
15759 ac_cpp='$CPP $CPPFLAGS'
15760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15768 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
15769 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
15771 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15773 for ac_func in modff
15775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 echo "$as_me:$LINENO: checking for $ac_func" >&5
15777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15778 if eval "test \"\${$as_ac_var+set}\" = set"; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 else
15781 if test x$gcc_no_link = xyes; then
15782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15784 { (exit 1); exit 1; }; }
15786 cat >conftest.$ac_ext <<_ACEOF
15787 /* confdefs.h. */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15794 #define $ac_func innocuous_$ac_func
15796 /* System header to define __stub macros and hopefully few prototypes,
15797 which can conflict with char $ac_func (); below.
15798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15799 <limits.h> exists even on freestanding compilers. */
15801 #ifdef __STDC__
15802 # include <limits.h>
15803 #else
15804 # include <assert.h>
15805 #endif
15807 #undef $ac_func
15809 /* Override any gcc2 internal prototype to avoid an error. */
15810 #ifdef __cplusplus
15811 extern "C"
15813 #endif
15814 /* We use char because int might match the return type of a gcc2
15815 builtin and then its argument prototype would still apply. */
15816 char $ac_func ();
15817 /* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821 choke me
15822 #else
15823 char (*f) () = $ac_func;
15824 #endif
15825 #ifdef __cplusplus
15827 #endif
15830 main ()
15832 return f != $ac_func;
15834 return 0;
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 eval "$as_ac_var=yes"
15859 else
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15863 eval "$as_ac_var=no"
15865 rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15870 if test `eval echo '${'$as_ac_var'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 _ACEOF
15876 done
15878 else
15880 echo "$as_me:$LINENO: checking for _modff declaration" >&5
15881 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
15882 if test x${glibcxx_cv_func__modff_use+set} != xset; then
15883 if test "${glibcxx_cv_func__modff_use+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15889 ac_ext=cc
15890 ac_cpp='$CXXCPP $CPPFLAGS'
15891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15895 cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h. */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 #include <math.h>
15903 main ()
15905 _modff(0, 0);
15907 return 0;
15909 _ACEOF
15910 rm -f conftest.$ac_objext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912 (eval $ac_compile) 2>conftest.er1
15913 ac_status=$?
15914 grep -v '^ *+' conftest.er1 >conftest.err
15915 rm -f conftest.er1
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 glibcxx_cv_func__modff_use=yes
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 glibcxx_cv_func__modff_use=no
15938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15939 ac_ext=c
15940 ac_cpp='$CPP $CPPFLAGS'
15941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15949 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
15950 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
15952 if test x$glibcxx_cv_func__modff_use = x"yes"; then
15954 for ac_func in _modff
15956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15957 echo "$as_me:$LINENO: checking for $ac_func" >&5
15958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15959 if eval "test \"\${$as_ac_var+set}\" = set"; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962 if test x$gcc_no_link = xyes; then
15963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15965 { (exit 1); exit 1; }; }
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15975 #define $ac_func innocuous_$ac_func
15977 /* System header to define __stub macros and hopefully few prototypes,
15978 which can conflict with char $ac_func (); below.
15979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15980 <limits.h> exists even on freestanding compilers. */
15982 #ifdef __STDC__
15983 # include <limits.h>
15984 #else
15985 # include <assert.h>
15986 #endif
15988 #undef $ac_func
15990 /* Override any gcc2 internal prototype to avoid an error. */
15991 #ifdef __cplusplus
15992 extern "C"
15994 #endif
15995 /* We use char because int might match the return type of a gcc2
15996 builtin and then its argument prototype would still apply. */
15997 char $ac_func ();
15998 /* The GNU C library defines this for functions which it implements
15999 to always fail with ENOSYS. Some functions are actually named
16000 something starting with __ and the normal name is an alias. */
16001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16002 choke me
16003 #else
16004 char (*f) () = $ac_func;
16005 #endif
16006 #ifdef __cplusplus
16008 #endif
16011 main ()
16013 return f != $ac_func;
16015 return 0;
16017 _ACEOF
16018 rm -f conftest.$ac_objext conftest$ac_exeext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16020 (eval $ac_link) 2>conftest.er1
16021 ac_status=$?
16022 grep -v '^ *+' conftest.er1 >conftest.err
16023 rm -f conftest.er1
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 eval "$as_ac_var=yes"
16040 else
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 eval "$as_ac_var=no"
16046 rm -f conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16051 if test `eval echo '${'$as_ac_var'}'` = yes; then
16052 cat >>confdefs.h <<_ACEOF
16053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16054 _ACEOF
16057 done
16064 echo "$as_me:$LINENO: checking for powf declaration" >&5
16065 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16066 if test x${glibcxx_cv_func_powf_use+set} != xset; then
16067 if test "${glibcxx_cv_func_powf_use+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16073 ac_ext=cc
16074 ac_cpp='$CXXCPP $CPPFLAGS'
16075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 #include <math.h>
16087 main ()
16089 powf(0, 0);
16091 return 0;
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; } &&
16109 { ac_try='test -s conftest.$ac_objext'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 glibcxx_cv_func_powf_use=yes
16116 else
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16120 glibcxx_cv_func_powf_use=no
16122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16123 ac_ext=c
16124 ac_cpp='$CPP $CPPFLAGS'
16125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16134 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16136 if test x$glibcxx_cv_func_powf_use = x"yes"; then
16138 for ac_func in powf
16140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16141 echo "$as_me:$LINENO: checking for $ac_func" >&5
16142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16143 if eval "test \"\${$as_ac_var+set}\" = set"; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146 if test x$gcc_no_link = xyes; then
16147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16149 { (exit 1); exit 1; }; }
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16159 #define $ac_func innocuous_$ac_func
16161 /* System header to define __stub macros and hopefully few prototypes,
16162 which can conflict with char $ac_func (); below.
16163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16164 <limits.h> exists even on freestanding compilers. */
16166 #ifdef __STDC__
16167 # include <limits.h>
16168 #else
16169 # include <assert.h>
16170 #endif
16172 #undef $ac_func
16174 /* Override any gcc2 internal prototype to avoid an error. */
16175 #ifdef __cplusplus
16176 extern "C"
16178 #endif
16179 /* We use char because int might match the return type of a gcc2
16180 builtin and then its argument prototype would still apply. */
16181 char $ac_func ();
16182 /* The GNU C library defines this for functions which it implements
16183 to always fail with ENOSYS. Some functions are actually named
16184 something starting with __ and the normal name is an alias. */
16185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16186 choke me
16187 #else
16188 char (*f) () = $ac_func;
16189 #endif
16190 #ifdef __cplusplus
16192 #endif
16195 main ()
16197 return f != $ac_func;
16199 return 0;
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16204 (eval $ac_link) 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest$ac_exeext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 eval "$as_ac_var=yes"
16224 else
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 eval "$as_ac_var=no"
16230 rm -f conftest.err conftest.$ac_objext \
16231 conftest$ac_exeext conftest.$ac_ext
16233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16235 if test `eval echo '${'$as_ac_var'}'` = yes; then
16236 cat >>confdefs.h <<_ACEOF
16237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16238 _ACEOF
16241 done
16243 else
16245 echo "$as_me:$LINENO: checking for _powf declaration" >&5
16246 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16247 if test x${glibcxx_cv_func__powf_use+set} != xset; then
16248 if test "${glibcxx_cv_func__powf_use+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16254 ac_ext=cc
16255 ac_cpp='$CXXCPP $CPPFLAGS'
16256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 #include <math.h>
16268 main ()
16270 _powf(0, 0);
16272 return 0;
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277 (eval $ac_compile) 2>conftest.er1
16278 ac_status=$?
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest.$ac_objext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296 glibcxx_cv_func__powf_use=yes
16297 else
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16301 glibcxx_cv_func__powf_use=no
16303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16304 ac_ext=c
16305 ac_cpp='$CPP $CPPFLAGS'
16306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16315 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16317 if test x$glibcxx_cv_func__powf_use = x"yes"; then
16319 for ac_func in _powf
16321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_func" >&5
16323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_var+set}\" = set"; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 if test x$gcc_no_link = xyes; then
16328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16330 { (exit 1); exit 1; }; }
16332 cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h. */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16340 #define $ac_func innocuous_$ac_func
16342 /* System header to define __stub macros and hopefully few prototypes,
16343 which can conflict with char $ac_func (); below.
16344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16345 <limits.h> exists even on freestanding compilers. */
16347 #ifdef __STDC__
16348 # include <limits.h>
16349 #else
16350 # include <assert.h>
16351 #endif
16353 #undef $ac_func
16355 /* Override any gcc2 internal prototype to avoid an error. */
16356 #ifdef __cplusplus
16357 extern "C"
16359 #endif
16360 /* We use char because int might match the return type of a gcc2
16361 builtin and then its argument prototype would still apply. */
16362 char $ac_func ();
16363 /* The GNU C library defines this for functions which it implements
16364 to always fail with ENOSYS. Some functions are actually named
16365 something starting with __ and the normal name is an alias. */
16366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16367 choke me
16368 #else
16369 char (*f) () = $ac_func;
16370 #endif
16371 #ifdef __cplusplus
16373 #endif
16376 main ()
16378 return f != $ac_func;
16380 return 0;
16382 _ACEOF
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16385 (eval $ac_link) 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; } &&
16398 { ac_try='test -s conftest$ac_exeext'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; }; then
16404 eval "$as_ac_var=yes"
16405 else
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 eval "$as_ac_var=no"
16411 rm -f conftest.err conftest.$ac_objext \
16412 conftest$ac_exeext conftest.$ac_ext
16414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16416 if test `eval echo '${'$as_ac_var'}'` = yes; then
16417 cat >>confdefs.h <<_ACEOF
16418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16419 _ACEOF
16422 done
16429 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16430 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16431 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16432 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16438 ac_ext=cc
16439 ac_cpp='$CXXCPP $CPPFLAGS'
16440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <math.h>
16451 #ifdef HAVE_IEEEFP_H
16452 #include <ieeefp.h>
16453 #endif
16456 main ()
16458 sqrtf(0);
16460 return 0;
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 glibcxx_cv_func_sqrtf_use=yes
16485 else
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 glibcxx_cv_func_sqrtf_use=no
16491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16492 ac_ext=c
16493 ac_cpp='$CPP $CPPFLAGS'
16494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16502 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16503 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16505 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16507 for ac_func in sqrtf
16509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16510 echo "$as_me:$LINENO: checking for $ac_func" >&5
16511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16512 if eval "test \"\${$as_ac_var+set}\" = set"; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515 if test x$gcc_no_link = xyes; then
16516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16518 { (exit 1); exit 1; }; }
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16528 #define $ac_func innocuous_$ac_func
16530 /* System header to define __stub macros and hopefully few prototypes,
16531 which can conflict with char $ac_func (); below.
16532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16533 <limits.h> exists even on freestanding compilers. */
16535 #ifdef __STDC__
16536 # include <limits.h>
16537 #else
16538 # include <assert.h>
16539 #endif
16541 #undef $ac_func
16543 /* Override any gcc2 internal prototype to avoid an error. */
16544 #ifdef __cplusplus
16545 extern "C"
16547 #endif
16548 /* We use char because int might match the return type of a gcc2
16549 builtin and then its argument prototype would still apply. */
16550 char $ac_func ();
16551 /* The GNU C library defines this for functions which it implements
16552 to always fail with ENOSYS. Some functions are actually named
16553 something starting with __ and the normal name is an alias. */
16554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16555 choke me
16556 #else
16557 char (*f) () = $ac_func;
16558 #endif
16559 #ifdef __cplusplus
16561 #endif
16564 main ()
16566 return f != $ac_func;
16568 return 0;
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>conftest.er1
16574 ac_status=$?
16575 grep -v '^ *+' conftest.er1 >conftest.err
16576 rm -f conftest.er1
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try='test -s conftest$ac_exeext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 eval "$as_ac_var=yes"
16593 else
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 eval "$as_ac_var=no"
16599 rm -f conftest.err conftest.$ac_objext \
16600 conftest$ac_exeext conftest.$ac_ext
16602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16604 if test `eval echo '${'$as_ac_var'}'` = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16607 _ACEOF
16610 done
16612 else
16614 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16615 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16616 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16617 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16623 ac_ext=cc
16624 ac_cpp='$CXXCPP $CPPFLAGS'
16625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <math.h>
16636 #ifdef HAVE_IEEEFP_H
16637 #include <ieeefp.h>
16638 #endif
16641 main ()
16643 _sqrtf(0);
16645 return 0;
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650 (eval $ac_compile) 2>conftest.er1
16651 ac_status=$?
16652 grep -v '^ *+' conftest.er1 >conftest.err
16653 rm -f conftest.er1
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; } &&
16663 { ac_try='test -s conftest.$ac_objext'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 glibcxx_cv_func__sqrtf_use=yes
16670 else
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 glibcxx_cv_func__sqrtf_use=no
16676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16677 ac_ext=c
16678 ac_cpp='$CPP $CPPFLAGS'
16679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16687 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
16688 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
16690 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
16692 for ac_func in _sqrtf
16694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16695 echo "$as_me:$LINENO: checking for $ac_func" >&5
16696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16697 if eval "test \"\${$as_ac_var+set}\" = set"; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700 if test x$gcc_no_link = xyes; then
16701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16703 { (exit 1); exit 1; }; }
16705 cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h. */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16713 #define $ac_func innocuous_$ac_func
16715 /* System header to define __stub macros and hopefully few prototypes,
16716 which can conflict with char $ac_func (); below.
16717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16718 <limits.h> exists even on freestanding compilers. */
16720 #ifdef __STDC__
16721 # include <limits.h>
16722 #else
16723 # include <assert.h>
16724 #endif
16726 #undef $ac_func
16728 /* Override any gcc2 internal prototype to avoid an error. */
16729 #ifdef __cplusplus
16730 extern "C"
16732 #endif
16733 /* We use char because int might match the return type of a gcc2
16734 builtin and then its argument prototype would still apply. */
16735 char $ac_func ();
16736 /* The GNU C library defines this for functions which it implements
16737 to always fail with ENOSYS. Some functions are actually named
16738 something starting with __ and the normal name is an alias. */
16739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16740 choke me
16741 #else
16742 char (*f) () = $ac_func;
16743 #endif
16744 #ifdef __cplusplus
16746 #endif
16749 main ()
16751 return f != $ac_func;
16753 return 0;
16755 _ACEOF
16756 rm -f conftest.$ac_objext conftest$ac_exeext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16758 (eval $ac_link) 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } &&
16765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest$ac_exeext'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 eval "$as_ac_var=yes"
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 eval "$as_ac_var=no"
16784 rm -f conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16789 if test `eval echo '${'$as_ac_var'}'` = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16792 _ACEOF
16795 done
16802 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
16803 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
16804 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
16805 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16811 ac_ext=cc
16812 ac_cpp='$CXXCPP $CPPFLAGS'
16813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 #include <math.h>
16825 main ()
16827 sincosf(0, 0, 0);
16829 return 0;
16831 _ACEOF
16832 rm -f conftest.$ac_objext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16834 (eval $ac_compile) 2>conftest.er1
16835 ac_status=$?
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 glibcxx_cv_func_sincosf_use=yes
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 glibcxx_cv_func_sincosf_use=no
16860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 ac_ext=c
16862 ac_cpp='$CPP $CPPFLAGS'
16863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16871 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
16872 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
16874 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
16876 for ac_func in sincosf
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16881 if eval "test \"\${$as_ac_var+set}\" = set"; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884 if test x$gcc_no_link = xyes; then
16885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16887 { (exit 1); exit 1; }; }
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h. */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16897 #define $ac_func innocuous_$ac_func
16899 /* System header to define __stub macros and hopefully few prototypes,
16900 which can conflict with char $ac_func (); below.
16901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16902 <limits.h> exists even on freestanding compilers. */
16904 #ifdef __STDC__
16905 # include <limits.h>
16906 #else
16907 # include <assert.h>
16908 #endif
16910 #undef $ac_func
16912 /* Override any gcc2 internal prototype to avoid an error. */
16913 #ifdef __cplusplus
16914 extern "C"
16916 #endif
16917 /* We use char because int might match the return type of a gcc2
16918 builtin and then its argument prototype would still apply. */
16919 char $ac_func ();
16920 /* The GNU C library defines this for functions which it implements
16921 to always fail with ENOSYS. Some functions are actually named
16922 something starting with __ and the normal name is an alias. */
16923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16924 choke me
16925 #else
16926 char (*f) () = $ac_func;
16927 #endif
16928 #ifdef __cplusplus
16930 #endif
16933 main ()
16935 return f != $ac_func;
16937 return 0;
16939 _ACEOF
16940 rm -f conftest.$ac_objext conftest$ac_exeext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942 (eval $ac_link) 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 eval "$as_ac_var=yes"
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 eval "$as_ac_var=no"
16968 rm -f conftest.err conftest.$ac_objext \
16969 conftest$ac_exeext conftest.$ac_ext
16971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16973 if test `eval echo '${'$as_ac_var'}'` = yes; then
16974 cat >>confdefs.h <<_ACEOF
16975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16976 _ACEOF
16979 done
16981 else
16983 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
16984 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
16985 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
16986 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16992 ac_ext=cc
16993 ac_cpp='$CXXCPP $CPPFLAGS'
16994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16998 cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h. */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17004 #include <math.h>
17006 main ()
17008 _sincosf(0, 0, 0);
17010 return 0;
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015 (eval $ac_compile) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest.$ac_objext'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 glibcxx_cv_func__sincosf_use=yes
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 glibcxx_cv_func__sincosf_use=no
17041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17042 ac_ext=c
17043 ac_cpp='$CPP $CPPFLAGS'
17044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17052 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17053 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17055 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17057 for ac_func in _sincosf
17059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17060 echo "$as_me:$LINENO: checking for $ac_func" >&5
17061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17062 if eval "test \"\${$as_ac_var+set}\" = set"; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 if test x$gcc_no_link = xyes; then
17066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17068 { (exit 1); exit 1; }; }
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17078 #define $ac_func innocuous_$ac_func
17080 /* System header to define __stub macros and hopefully few prototypes,
17081 which can conflict with char $ac_func (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17085 #ifdef __STDC__
17086 # include <limits.h>
17087 #else
17088 # include <assert.h>
17089 #endif
17091 #undef $ac_func
17093 /* Override any gcc2 internal prototype to avoid an error. */
17094 #ifdef __cplusplus
17095 extern "C"
17097 #endif
17098 /* We use char because int might match the return type of a gcc2
17099 builtin and then its argument prototype would still apply. */
17100 char $ac_func ();
17101 /* The GNU C library defines this for functions which it implements
17102 to always fail with ENOSYS. Some functions are actually named
17103 something starting with __ and the normal name is an alias. */
17104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17105 choke me
17106 #else
17107 char (*f) () = $ac_func;
17108 #endif
17109 #ifdef __cplusplus
17111 #endif
17114 main ()
17116 return f != $ac_func;
17118 return 0;
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123 (eval $ac_link) 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest$ac_exeext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 eval "$as_ac_var=yes"
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 eval "$as_ac_var=no"
17149 rm -f conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17154 if test `eval echo '${'$as_ac_var'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17157 _ACEOF
17160 done
17167 echo "$as_me:$LINENO: checking for finitef declaration" >&5
17168 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17169 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17170 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17176 ac_ext=cc
17177 ac_cpp='$CXXCPP $CPPFLAGS'
17178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 #include <math.h>
17189 #ifdef HAVE_IEEEFP_H
17190 #include <ieeefp.h>
17191 #endif
17194 main ()
17196 finitef(0);
17198 return 0;
17200 _ACEOF
17201 rm -f conftest.$ac_objext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 glibcxx_cv_func_finitef_use=yes
17223 else
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 glibcxx_cv_func_finitef_use=no
17229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17230 ac_ext=c
17231 ac_cpp='$CPP $CPPFLAGS'
17232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17240 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17241 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17243 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17245 for ac_func in finitef
17247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17248 echo "$as_me:$LINENO: checking for $ac_func" >&5
17249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17250 if eval "test \"\${$as_ac_var+set}\" = set"; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253 if test x$gcc_no_link = xyes; then
17254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17256 { (exit 1); exit 1; }; }
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h. */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17266 #define $ac_func innocuous_$ac_func
17268 /* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func (); below.
17270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271 <limits.h> exists even on freestanding compilers. */
17273 #ifdef __STDC__
17274 # include <limits.h>
17275 #else
17276 # include <assert.h>
17277 #endif
17279 #undef $ac_func
17281 /* Override any gcc2 internal prototype to avoid an error. */
17282 #ifdef __cplusplus
17283 extern "C"
17285 #endif
17286 /* We use char because int might match the return type of a gcc2
17287 builtin and then its argument prototype would still apply. */
17288 char $ac_func ();
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17293 choke me
17294 #else
17295 char (*f) () = $ac_func;
17296 #endif
17297 #ifdef __cplusplus
17299 #endif
17302 main ()
17304 return f != $ac_func;
17306 return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311 (eval $ac_link) 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 eval "$as_ac_var=yes"
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 eval "$as_ac_var=no"
17337 rm -f conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17342 if test `eval echo '${'$as_ac_var'}'` = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17345 _ACEOF
17348 done
17350 else
17352 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17353 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17354 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17355 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17361 ac_ext=cc
17362 ac_cpp='$CXXCPP $CPPFLAGS'
17363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h. */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17373 #include <math.h>
17374 #ifdef HAVE_IEEEFP_H
17375 #include <ieeefp.h>
17376 #endif
17379 main ()
17381 _finitef(0);
17383 return 0;
17385 _ACEOF
17386 rm -f conftest.$ac_objext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17388 (eval $ac_compile) 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 glibcxx_cv_func__finitef_use=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 glibcxx_cv_func__finitef_use=no
17414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17415 ac_ext=c
17416 ac_cpp='$CPP $CPPFLAGS'
17417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17425 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17426 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17428 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17430 for ac_func in _finitef
17432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17433 echo "$as_me:$LINENO: checking for $ac_func" >&5
17434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17435 if eval "test \"\${$as_ac_var+set}\" = set"; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438 if test x$gcc_no_link = xyes; then
17439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17441 { (exit 1); exit 1; }; }
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define $ac_func innocuous_$ac_func
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char $ac_func (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17458 #ifdef __STDC__
17459 # include <limits.h>
17460 #else
17461 # include <assert.h>
17462 #endif
17464 #undef $ac_func
17466 /* Override any gcc2 internal prototype to avoid an error. */
17467 #ifdef __cplusplus
17468 extern "C"
17470 #endif
17471 /* We use char because int might match the return type of a gcc2
17472 builtin and then its argument prototype would still apply. */
17473 char $ac_func ();
17474 /* The GNU C library defines this for functions which it implements
17475 to always fail with ENOSYS. Some functions are actually named
17476 something starting with __ and the normal name is an alias. */
17477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17478 choke me
17479 #else
17480 char (*f) () = $ac_func;
17481 #endif
17482 #ifdef __cplusplus
17484 #endif
17487 main ()
17489 return f != $ac_func;
17491 return 0;
17493 _ACEOF
17494 rm -f conftest.$ac_objext conftest$ac_exeext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496 (eval $ac_link) 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest$ac_exeext'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 eval "$as_ac_var=yes"
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 eval "$as_ac_var=no"
17522 rm -f conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17527 if test `eval echo '${'$as_ac_var'}'` = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17530 _ACEOF
17533 done
17540 echo "$as_me:$LINENO: checking for long double trig functions" >&5
17541 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17542 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17548 ac_ext=cc
17549 ac_cpp='$CXXCPP $CPPFLAGS'
17550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17554 cat >conftest.$ac_ext <<_ACEOF
17555 /* confdefs.h. */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560 #include <math.h>
17562 main ()
17564 `for x in acosl asinl atanl \
17565 cosl sinl tanl \
17566 coshl sinhl tanhl; do echo "$x (0);"; done`
17568 return 0;
17570 _ACEOF
17571 rm -f conftest.$ac_objext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17573 (eval $ac_compile) 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 glibcxx_cv_func_long_double_trig_use=yes
17593 else
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 glibcxx_cv_func_long_double_trig_use=no
17599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17600 ac_ext=c
17601 ac_cpp='$CPP $CPPFLAGS'
17602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17609 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17610 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17620 for ac_func in acosl asinl atanl \
17621 cosl sinl tanl \
17622 coshl sinhl tanhl
17624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17625 echo "$as_me:$LINENO: checking for $ac_func" >&5
17626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17627 if eval "test \"\${$as_ac_var+set}\" = set"; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 if test x$gcc_no_link = xyes; then
17631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17632 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17633 { (exit 1); exit 1; }; }
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17643 #define $ac_func innocuous_$ac_func
17645 /* System header to define __stub macros and hopefully few prototypes,
17646 which can conflict with char $ac_func (); below.
17647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648 <limits.h> exists even on freestanding compilers. */
17650 #ifdef __STDC__
17651 # include <limits.h>
17652 #else
17653 # include <assert.h>
17654 #endif
17656 #undef $ac_func
17658 /* Override any gcc2 internal prototype to avoid an error. */
17659 #ifdef __cplusplus
17660 extern "C"
17662 #endif
17663 /* We use char because int might match the return type of a gcc2
17664 builtin and then its argument prototype would still apply. */
17665 char $ac_func ();
17666 /* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17670 choke me
17671 #else
17672 char (*f) () = $ac_func;
17673 #endif
17674 #ifdef __cplusplus
17676 #endif
17679 main ()
17681 return f != $ac_func;
17683 return 0;
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688 (eval $ac_link) 2>conftest.er1
17689 ac_status=$?
17690 grep -v '^ *+' conftest.er1 >conftest.err
17691 rm -f conftest.er1
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest$ac_exeext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 eval "$as_ac_var=yes"
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 eval "$as_ac_var=no"
17714 rm -f conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17719 if test `eval echo '${'$as_ac_var'}'` = yes; then
17720 cat >>confdefs.h <<_ACEOF
17721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17722 _ACEOF
17725 done
17730 echo "$as_me:$LINENO: checking for long double round functions" >&5
17731 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
17732 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17738 ac_ext=cc
17739 ac_cpp='$CXXCPP $CPPFLAGS'
17740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h. */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17750 #include <math.h>
17752 main ()
17754 `for x in ceill floorl; do echo "$x (0);"; done`
17756 return 0;
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17761 (eval $ac_compile) 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 glibcxx_cv_func_long_double_round_use=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 glibcxx_cv_func_long_double_round_use=no
17787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17788 ac_ext=c
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17796 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
17797 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
17798 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
17801 for ac_func in ceill floorl
17803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17804 echo "$as_me:$LINENO: checking for $ac_func" >&5
17805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17806 if eval "test \"\${$as_ac_var+set}\" = set"; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809 if test x$gcc_no_link = xyes; then
17810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17812 { (exit 1); exit 1; }; }
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17822 #define $ac_func innocuous_$ac_func
17824 /* System header to define __stub macros and hopefully few prototypes,
17825 which can conflict with char $ac_func (); below.
17826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17827 <limits.h> exists even on freestanding compilers. */
17829 #ifdef __STDC__
17830 # include <limits.h>
17831 #else
17832 # include <assert.h>
17833 #endif
17835 #undef $ac_func
17837 /* Override any gcc2 internal prototype to avoid an error. */
17838 #ifdef __cplusplus
17839 extern "C"
17841 #endif
17842 /* We use char because int might match the return type of a gcc2
17843 builtin and then its argument prototype would still apply. */
17844 char $ac_func ();
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17849 choke me
17850 #else
17851 char (*f) () = $ac_func;
17852 #endif
17853 #ifdef __cplusplus
17855 #endif
17858 main ()
17860 return f != $ac_func;
17862 return 0;
17864 _ACEOF
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest$ac_exeext'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 eval "$as_ac_var=yes"
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 eval "$as_ac_var=no"
17893 rm -f conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17898 if test `eval echo '${'$as_ac_var'}'` = yes; then
17899 cat >>confdefs.h <<_ACEOF
17900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17901 _ACEOF
17904 done
17910 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
17911 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
17912 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
17913 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17919 ac_ext=cc
17920 ac_cpp='$CXXCPP $CPPFLAGS'
17921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17925 cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h. */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17931 #include <math.h>
17932 #ifdef HAVE_IEEEFP_H
17933 #include <ieeefp.h>
17934 #endif
17937 main ()
17939 isnanl(0);
17941 return 0;
17943 _ACEOF
17944 rm -f conftest.$ac_objext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946 (eval $ac_compile) 2>conftest.er1
17947 ac_status=$?
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 glibcxx_cv_func_isnanl_use=yes
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 glibcxx_cv_func_isnanl_use=no
17972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17973 ac_ext=c
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17983 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
17984 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
17986 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
17988 for ac_func in isnanl
17990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17991 echo "$as_me:$LINENO: checking for $ac_func" >&5
17992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17993 if eval "test \"\${$as_ac_var+set}\" = set"; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996 if test x$gcc_no_link = xyes; then
17997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17999 { (exit 1); exit 1; }; }
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18009 #define $ac_func innocuous_$ac_func
18011 /* System header to define __stub macros and hopefully few prototypes,
18012 which can conflict with char $ac_func (); below.
18013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18014 <limits.h> exists even on freestanding compilers. */
18016 #ifdef __STDC__
18017 # include <limits.h>
18018 #else
18019 # include <assert.h>
18020 #endif
18022 #undef $ac_func
18024 /* Override any gcc2 internal prototype to avoid an error. */
18025 #ifdef __cplusplus
18026 extern "C"
18028 #endif
18029 /* We use char because int might match the return type of a gcc2
18030 builtin and then its argument prototype would still apply. */
18031 char $ac_func ();
18032 /* The GNU C library defines this for functions which it implements
18033 to always fail with ENOSYS. Some functions are actually named
18034 something starting with __ and the normal name is an alias. */
18035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18036 choke me
18037 #else
18038 char (*f) () = $ac_func;
18039 #endif
18040 #ifdef __cplusplus
18042 #endif
18045 main ()
18047 return f != $ac_func;
18049 return 0;
18051 _ACEOF
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18054 (eval $ac_link) 2>conftest.er1
18055 ac_status=$?
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
18061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest$ac_exeext'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 eval "$as_ac_var=yes"
18074 else
18075 echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18078 eval "$as_ac_var=no"
18080 rm -f conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18085 if test `eval echo '${'$as_ac_var'}'` = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18088 _ACEOF
18091 done
18093 else
18095 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18096 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18097 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18098 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18104 ac_ext=cc
18105 ac_cpp='$CXXCPP $CPPFLAGS'
18106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h. */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18116 #include <math.h>
18117 #ifdef HAVE_IEEEFP_H
18118 #include <ieeefp.h>
18119 #endif
18122 main ()
18124 _isnanl(0);
18126 return 0;
18128 _ACEOF
18129 rm -f conftest.$ac_objext
18130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18131 (eval $ac_compile) 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest.$ac_objext'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; }; then
18150 glibcxx_cv_func__isnanl_use=yes
18151 else
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 glibcxx_cv_func__isnanl_use=no
18157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18158 ac_ext=c
18159 ac_cpp='$CPP $CPPFLAGS'
18160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18168 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18169 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18171 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18173 for ac_func in _isnanl
18175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18176 echo "$as_me:$LINENO: checking for $ac_func" >&5
18177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18178 if eval "test \"\${$as_ac_var+set}\" = set"; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181 if test x$gcc_no_link = xyes; then
18182 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18184 { (exit 1); exit 1; }; }
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18194 #define $ac_func innocuous_$ac_func
18196 /* System header to define __stub macros and hopefully few prototypes,
18197 which can conflict with char $ac_func (); below.
18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199 <limits.h> exists even on freestanding compilers. */
18201 #ifdef __STDC__
18202 # include <limits.h>
18203 #else
18204 # include <assert.h>
18205 #endif
18207 #undef $ac_func
18209 /* Override any gcc2 internal prototype to avoid an error. */
18210 #ifdef __cplusplus
18211 extern "C"
18213 #endif
18214 /* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216 char $ac_func ();
18217 /* The GNU C library defines this for functions which it implements
18218 to always fail with ENOSYS. Some functions are actually named
18219 something starting with __ and the normal name is an alias. */
18220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18221 choke me
18222 #else
18223 char (*f) () = $ac_func;
18224 #endif
18225 #ifdef __cplusplus
18227 #endif
18230 main ()
18232 return f != $ac_func;
18234 return 0;
18236 _ACEOF
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18239 (eval $ac_link) 2>conftest.er1
18240 ac_status=$?
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
18246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; } &&
18252 { ac_try='test -s conftest$ac_exeext'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; }; then
18258 eval "$as_ac_var=yes"
18259 else
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 eval "$as_ac_var=no"
18265 rm -f conftest.err conftest.$ac_objext \
18266 conftest$ac_exeext conftest.$ac_ext
18268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18270 if test `eval echo '${'$as_ac_var'}'` = yes; then
18271 cat >>confdefs.h <<_ACEOF
18272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18273 _ACEOF
18276 done
18283 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18284 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18285 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18286 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18292 ac_ext=cc
18293 ac_cpp='$CXXCPP $CPPFLAGS'
18294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 #include <math.h>
18305 #ifdef HAVE_IEEEFP_H
18306 #include <ieeefp.h>
18307 #endif
18310 main ()
18312 isinfl(0);
18314 return 0;
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319 (eval $ac_compile) 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } &&
18332 { ac_try='test -s conftest.$ac_objext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 glibcxx_cv_func_isinfl_use=yes
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 glibcxx_cv_func_isinfl_use=no
18345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18346 ac_ext=c
18347 ac_cpp='$CPP $CPPFLAGS'
18348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18356 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18357 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18359 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18361 for ac_func in isinfl
18363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18364 echo "$as_me:$LINENO: checking for $ac_func" >&5
18365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_var+set}\" = set"; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369 if test x$gcc_no_link = xyes; then
18370 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18371 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18372 { (exit 1); exit 1; }; }
18374 cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h. */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18382 #define $ac_func innocuous_$ac_func
18384 /* System header to define __stub macros and hopefully few prototypes,
18385 which can conflict with char $ac_func (); below.
18386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18387 <limits.h> exists even on freestanding compilers. */
18389 #ifdef __STDC__
18390 # include <limits.h>
18391 #else
18392 # include <assert.h>
18393 #endif
18395 #undef $ac_func
18397 /* Override any gcc2 internal prototype to avoid an error. */
18398 #ifdef __cplusplus
18399 extern "C"
18401 #endif
18402 /* We use char because int might match the return type of a gcc2
18403 builtin and then its argument prototype would still apply. */
18404 char $ac_func ();
18405 /* The GNU C library defines this for functions which it implements
18406 to always fail with ENOSYS. Some functions are actually named
18407 something starting with __ and the normal name is an alias. */
18408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18409 choke me
18410 #else
18411 char (*f) () = $ac_func;
18412 #endif
18413 #ifdef __cplusplus
18415 #endif
18418 main ()
18420 return f != $ac_func;
18422 return 0;
18424 _ACEOF
18425 rm -f conftest.$ac_objext conftest$ac_exeext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>conftest.er1
18428 ac_status=$?
18429 grep -v '^ *+' conftest.er1 >conftest.err
18430 rm -f conftest.er1
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; } &&
18440 { ac_try='test -s conftest$ac_exeext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 eval "$as_ac_var=yes"
18447 else
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 eval "$as_ac_var=no"
18453 rm -f conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18458 if test `eval echo '${'$as_ac_var'}'` = yes; then
18459 cat >>confdefs.h <<_ACEOF
18460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18461 _ACEOF
18464 done
18466 else
18468 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18469 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18470 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18471 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18477 ac_ext=cc
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 #include <math.h>
18490 #ifdef HAVE_IEEEFP_H
18491 #include <ieeefp.h>
18492 #endif
18495 main ()
18497 _isinfl(0);
18499 return 0;
18501 _ACEOF
18502 rm -f conftest.$ac_objext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18504 (eval $ac_compile) 2>conftest.er1
18505 ac_status=$?
18506 grep -v '^ *+' conftest.er1 >conftest.err
18507 rm -f conftest.er1
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest.$ac_objext'
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 glibcxx_cv_func__isinfl_use=yes
18524 else
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 glibcxx_cv_func__isinfl_use=no
18530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18531 ac_ext=c
18532 ac_cpp='$CPP $CPPFLAGS'
18533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18541 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18542 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18544 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18546 for ac_func in _isinfl
18548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18549 echo "$as_me:$LINENO: checking for $ac_func" >&5
18550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18551 if eval "test \"\${$as_ac_var+set}\" = set"; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 if test x$gcc_no_link = xyes; then
18555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18557 { (exit 1); exit 1; }; }
18559 cat >conftest.$ac_ext <<_ACEOF
18560 /* confdefs.h. */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18567 #define $ac_func innocuous_$ac_func
18569 /* System header to define __stub macros and hopefully few prototypes,
18570 which can conflict with char $ac_func (); below.
18571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18572 <limits.h> exists even on freestanding compilers. */
18574 #ifdef __STDC__
18575 # include <limits.h>
18576 #else
18577 # include <assert.h>
18578 #endif
18580 #undef $ac_func
18582 /* Override any gcc2 internal prototype to avoid an error. */
18583 #ifdef __cplusplus
18584 extern "C"
18586 #endif
18587 /* We use char because int might match the return type of a gcc2
18588 builtin and then its argument prototype would still apply. */
18589 char $ac_func ();
18590 /* The GNU C library defines this for functions which it implements
18591 to always fail with ENOSYS. Some functions are actually named
18592 something starting with __ and the normal name is an alias. */
18593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18594 choke me
18595 #else
18596 char (*f) () = $ac_func;
18597 #endif
18598 #ifdef __cplusplus
18600 #endif
18603 main ()
18605 return f != $ac_func;
18607 return 0;
18609 _ACEOF
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18612 (eval $ac_link) 2>conftest.er1
18613 ac_status=$?
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 eval "$as_ac_var=yes"
18632 else
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 eval "$as_ac_var=no"
18638 rm -f conftest.err conftest.$ac_objext \
18639 conftest$ac_exeext conftest.$ac_ext
18641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18643 if test `eval echo '${'$as_ac_var'}'` = yes; then
18644 cat >>confdefs.h <<_ACEOF
18645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18646 _ACEOF
18649 done
18656 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18657 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18658 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18659 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18665 ac_ext=cc
18666 ac_cpp='$CXXCPP $CPPFLAGS'
18667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 #include <math.h>
18679 main ()
18681 copysignl(0, 0);
18683 return 0;
18685 _ACEOF
18686 rm -f conftest.$ac_objext
18687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18688 (eval $ac_compile) 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
18695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18697 (eval $ac_try) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); }; } &&
18701 { ac_try='test -s conftest.$ac_objext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 glibcxx_cv_func_copysignl_use=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 glibcxx_cv_func_copysignl_use=no
18714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 ac_ext=c
18716 ac_cpp='$CPP $CPPFLAGS'
18717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18725 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
18726 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
18728 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
18730 for ac_func in copysignl
18732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18733 echo "$as_me:$LINENO: checking for $ac_func" >&5
18734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18735 if eval "test \"\${$as_ac_var+set}\" = set"; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738 if test x$gcc_no_link = xyes; then
18739 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18741 { (exit 1); exit 1; }; }
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18751 #define $ac_func innocuous_$ac_func
18753 /* System header to define __stub macros and hopefully few prototypes,
18754 which can conflict with char $ac_func (); below.
18755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18756 <limits.h> exists even on freestanding compilers. */
18758 #ifdef __STDC__
18759 # include <limits.h>
18760 #else
18761 # include <assert.h>
18762 #endif
18764 #undef $ac_func
18766 /* Override any gcc2 internal prototype to avoid an error. */
18767 #ifdef __cplusplus
18768 extern "C"
18770 #endif
18771 /* We use char because int might match the return type of a gcc2
18772 builtin and then its argument prototype would still apply. */
18773 char $ac_func ();
18774 /* The GNU C library defines this for functions which it implements
18775 to always fail with ENOSYS. Some functions are actually named
18776 something starting with __ and the normal name is an alias. */
18777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18778 choke me
18779 #else
18780 char (*f) () = $ac_func;
18781 #endif
18782 #ifdef __cplusplus
18784 #endif
18787 main ()
18789 return f != $ac_func;
18791 return 0;
18793 _ACEOF
18794 rm -f conftest.$ac_objext conftest$ac_exeext
18795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18796 (eval $ac_link) 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } &&
18803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest$ac_exeext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 eval "$as_ac_var=yes"
18816 else
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 eval "$as_ac_var=no"
18822 rm -f conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 _ACEOF
18833 done
18835 else
18837 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
18838 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
18839 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
18840 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18846 ac_ext=cc
18847 ac_cpp='$CXXCPP $CPPFLAGS'
18848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h. */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 #include <math.h>
18860 main ()
18862 _copysignl(0, 0);
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 glibcxx_cv_func__copysignl_use=yes
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 glibcxx_cv_func__copysignl_use=no
18895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18896 ac_ext=c
18897 ac_cpp='$CPP $CPPFLAGS'
18898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18906 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
18907 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
18909 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
18911 for ac_func in _copysignl
18913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18914 echo "$as_me:$LINENO: checking for $ac_func" >&5
18915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18916 if eval "test \"\${$as_ac_var+set}\" = set"; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919 if test x$gcc_no_link = xyes; then
18920 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18922 { (exit 1); exit 1; }; }
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18932 #define $ac_func innocuous_$ac_func
18934 /* System header to define __stub macros and hopefully few prototypes,
18935 which can conflict with char $ac_func (); below.
18936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 <limits.h> exists even on freestanding compilers. */
18939 #ifdef __STDC__
18940 # include <limits.h>
18941 #else
18942 # include <assert.h>
18943 #endif
18945 #undef $ac_func
18947 /* Override any gcc2 internal prototype to avoid an error. */
18948 #ifdef __cplusplus
18949 extern "C"
18951 #endif
18952 /* We use char because int might match the return type of a gcc2
18953 builtin and then its argument prototype would still apply. */
18954 char $ac_func ();
18955 /* The GNU C library defines this for functions which it implements
18956 to always fail with ENOSYS. Some functions are actually named
18957 something starting with __ and the normal name is an alias. */
18958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18959 choke me
18960 #else
18961 char (*f) () = $ac_func;
18962 #endif
18963 #ifdef __cplusplus
18965 #endif
18968 main ()
18970 return f != $ac_func;
18972 return 0;
18974 _ACEOF
18975 rm -f conftest.$ac_objext conftest$ac_exeext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18977 (eval $ac_link) 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest$ac_exeext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 eval "$as_ac_var=yes"
18997 else
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 eval "$as_ac_var=no"
19003 rm -f conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19008 if test `eval echo '${'$as_ac_var'}'` = yes; then
19009 cat >>confdefs.h <<_ACEOF
19010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19011 _ACEOF
19014 done
19021 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19022 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19023 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19024 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 else
19030 ac_ext=cc
19031 ac_cpp='$CXXCPP $CPPFLAGS'
19032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 #include <math.h>
19044 main ()
19046 atan2l(0, 0);
19048 return 0;
19050 _ACEOF
19051 rm -f conftest.$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; } &&
19066 { ac_try='test -s conftest.$ac_objext'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 glibcxx_cv_func_atan2l_use=yes
19073 else
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 glibcxx_cv_func_atan2l_use=no
19079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19080 ac_ext=c
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19091 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19093 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19095 for ac_func in atan2l
19097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19098 echo "$as_me:$LINENO: checking for $ac_func" >&5
19099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19100 if eval "test \"\${$as_ac_var+set}\" = set"; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103 if test x$gcc_no_link = xyes; then
19104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19106 { (exit 1); exit 1; }; }
19108 cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h. */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19116 #define $ac_func innocuous_$ac_func
19118 /* System header to define __stub macros and hopefully few prototypes,
19119 which can conflict with char $ac_func (); below.
19120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19121 <limits.h> exists even on freestanding compilers. */
19123 #ifdef __STDC__
19124 # include <limits.h>
19125 #else
19126 # include <assert.h>
19127 #endif
19129 #undef $ac_func
19131 /* Override any gcc2 internal prototype to avoid an error. */
19132 #ifdef __cplusplus
19133 extern "C"
19135 #endif
19136 /* We use char because int might match the return type of a gcc2
19137 builtin and then its argument prototype would still apply. */
19138 char $ac_func ();
19139 /* The GNU C library defines this for functions which it implements
19140 to always fail with ENOSYS. Some functions are actually named
19141 something starting with __ and the normal name is an alias. */
19142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19143 choke me
19144 #else
19145 char (*f) () = $ac_func;
19146 #endif
19147 #ifdef __cplusplus
19149 #endif
19152 main ()
19154 return f != $ac_func;
19156 return 0;
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161 (eval $ac_link) 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest$ac_exeext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 eval "$as_ac_var=yes"
19181 else
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 eval "$as_ac_var=no"
19187 rm -f conftest.err conftest.$ac_objext \
19188 conftest$ac_exeext conftest.$ac_ext
19190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19192 if test `eval echo '${'$as_ac_var'}'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19195 _ACEOF
19198 done
19200 else
19202 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19203 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19204 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19205 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19211 ac_ext=cc
19212 ac_cpp='$CXXCPP $CPPFLAGS'
19213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h. */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223 #include <math.h>
19225 main ()
19227 _atan2l(0, 0);
19229 return 0;
19231 _ACEOF
19232 rm -f conftest.$ac_objext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19234 (eval $ac_compile) 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest.$ac_objext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 glibcxx_cv_func__atan2l_use=yes
19254 else
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 glibcxx_cv_func__atan2l_use=no
19260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19261 ac_ext=c
19262 ac_cpp='$CPP $CPPFLAGS'
19263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19271 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19272 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19274 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19276 for ac_func in _atan2l
19278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19279 echo "$as_me:$LINENO: checking for $ac_func" >&5
19280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19281 if eval "test \"\${$as_ac_var+set}\" = set"; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 else
19284 if test x$gcc_no_link = xyes; then
19285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19287 { (exit 1); exit 1; }; }
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19297 #define $ac_func innocuous_$ac_func
19299 /* System header to define __stub macros and hopefully few prototypes,
19300 which can conflict with char $ac_func (); below.
19301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19302 <limits.h> exists even on freestanding compilers. */
19304 #ifdef __STDC__
19305 # include <limits.h>
19306 #else
19307 # include <assert.h>
19308 #endif
19310 #undef $ac_func
19312 /* Override any gcc2 internal prototype to avoid an error. */
19313 #ifdef __cplusplus
19314 extern "C"
19316 #endif
19317 /* We use char because int might match the return type of a gcc2
19318 builtin and then its argument prototype would still apply. */
19319 char $ac_func ();
19320 /* The GNU C library defines this for functions which it implements
19321 to always fail with ENOSYS. Some functions are actually named
19322 something starting with __ and the normal name is an alias. */
19323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19324 choke me
19325 #else
19326 char (*f) () = $ac_func;
19327 #endif
19328 #ifdef __cplusplus
19330 #endif
19333 main ()
19335 return f != $ac_func;
19337 return 0;
19339 _ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342 (eval $ac_link) 2>conftest.er1
19343 ac_status=$?
19344 grep -v '^ *+' conftest.er1 >conftest.err
19345 rm -f conftest.er1
19346 cat conftest.err >&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
19349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest$ac_exeext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 eval "$as_ac_var=yes"
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 eval "$as_ac_var=no"
19368 rm -f conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19373 if test `eval echo '${'$as_ac_var'}'` = yes; then
19374 cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19376 _ACEOF
19379 done
19386 echo "$as_me:$LINENO: checking for expl declaration" >&5
19387 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19388 if test x${glibcxx_cv_func_expl_use+set} != xset; then
19389 if test "${glibcxx_cv_func_expl_use+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19395 ac_ext=cc
19396 ac_cpp='$CXXCPP $CPPFLAGS'
19397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <math.h>
19408 #ifdef HAVE_IEEEFP_H
19409 #include <ieeefp.h>
19410 #endif
19413 main ()
19415 expl(0);
19417 return 0;
19419 _ACEOF
19420 rm -f conftest.$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 glibcxx_cv_func_expl_use=yes
19442 else
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 glibcxx_cv_func_expl_use=no
19448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19449 ac_ext=c
19450 ac_cpp='$CPP $CPPFLAGS'
19451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19459 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19460 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19462 if test x$glibcxx_cv_func_expl_use = x"yes"; then
19464 for ac_func in expl
19466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19467 echo "$as_me:$LINENO: checking for $ac_func" >&5
19468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19469 if eval "test \"\${$as_ac_var+set}\" = set"; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 if test x$gcc_no_link = xyes; then
19473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19475 { (exit 1); exit 1; }; }
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h. */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19485 #define $ac_func innocuous_$ac_func
19487 /* System header to define __stub macros and hopefully few prototypes,
19488 which can conflict with char $ac_func (); below.
19489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19490 <limits.h> exists even on freestanding compilers. */
19492 #ifdef __STDC__
19493 # include <limits.h>
19494 #else
19495 # include <assert.h>
19496 #endif
19498 #undef $ac_func
19500 /* Override any gcc2 internal prototype to avoid an error. */
19501 #ifdef __cplusplus
19502 extern "C"
19504 #endif
19505 /* We use char because int might match the return type of a gcc2
19506 builtin and then its argument prototype would still apply. */
19507 char $ac_func ();
19508 /* The GNU C library defines this for functions which it implements
19509 to always fail with ENOSYS. Some functions are actually named
19510 something starting with __ and the normal name is an alias. */
19511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19512 choke me
19513 #else
19514 char (*f) () = $ac_func;
19515 #endif
19516 #ifdef __cplusplus
19518 #endif
19521 main ()
19523 return f != $ac_func;
19525 return 0;
19527 _ACEOF
19528 rm -f conftest.$ac_objext conftest$ac_exeext
19529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19530 (eval $ac_link) 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; } &&
19543 { ac_try='test -s conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 eval "$as_ac_var=yes"
19550 else
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 eval "$as_ac_var=no"
19556 rm -f conftest.err conftest.$ac_objext \
19557 conftest$ac_exeext conftest.$ac_ext
19559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19561 if test `eval echo '${'$as_ac_var'}'` = yes; then
19562 cat >>confdefs.h <<_ACEOF
19563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19564 _ACEOF
19567 done
19569 else
19571 echo "$as_me:$LINENO: checking for _expl declaration" >&5
19572 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19573 if test x${glibcxx_cv_func__expl_use+set} != xset; then
19574 if test "${glibcxx_cv_func__expl_use+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19580 ac_ext=cc
19581 ac_cpp='$CXXCPP $CPPFLAGS'
19582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 #include <math.h>
19593 #ifdef HAVE_IEEEFP_H
19594 #include <ieeefp.h>
19595 #endif
19598 main ()
19600 _expl(0);
19602 return 0;
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest.$ac_objext'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626 glibcxx_cv_func__expl_use=yes
19627 else
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19631 glibcxx_cv_func__expl_use=no
19633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19634 ac_ext=c
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19644 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19645 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19647 if test x$glibcxx_cv_func__expl_use = x"yes"; then
19649 for ac_func in _expl
19651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19652 echo "$as_me:$LINENO: checking for $ac_func" >&5
19653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19654 if eval "test \"\${$as_ac_var+set}\" = set"; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657 if test x$gcc_no_link = xyes; then
19658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19660 { (exit 1); exit 1; }; }
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h. */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h. */
19668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19670 #define $ac_func innocuous_$ac_func
19672 /* System header to define __stub macros and hopefully few prototypes,
19673 which can conflict with char $ac_func (); below.
19674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19675 <limits.h> exists even on freestanding compilers. */
19677 #ifdef __STDC__
19678 # include <limits.h>
19679 #else
19680 # include <assert.h>
19681 #endif
19683 #undef $ac_func
19685 /* Override any gcc2 internal prototype to avoid an error. */
19686 #ifdef __cplusplus
19687 extern "C"
19689 #endif
19690 /* We use char because int might match the return type of a gcc2
19691 builtin and then its argument prototype would still apply. */
19692 char $ac_func ();
19693 /* The GNU C library defines this for functions which it implements
19694 to always fail with ENOSYS. Some functions are actually named
19695 something starting with __ and the normal name is an alias. */
19696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19697 choke me
19698 #else
19699 char (*f) () = $ac_func;
19700 #endif
19701 #ifdef __cplusplus
19703 #endif
19706 main ()
19708 return f != $ac_func;
19710 return 0;
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest$ac_exeext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 eval "$as_ac_var=yes"
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 eval "$as_ac_var=no"
19741 rm -f conftest.err conftest.$ac_objext \
19742 conftest$ac_exeext conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19746 if test `eval echo '${'$as_ac_var'}'` = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19749 _ACEOF
19752 done
19759 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
19760 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
19761 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
19762 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19768 ac_ext=cc
19769 ac_cpp='$CXXCPP $CPPFLAGS'
19770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <math.h>
19781 #ifdef HAVE_IEEEFP_H
19782 #include <ieeefp.h>
19783 #endif
19786 main ()
19788 fabsl(0);
19790 return 0;
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795 (eval $ac_compile) 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 glibcxx_cv_func_fabsl_use=yes
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 glibcxx_cv_func_fabsl_use=no
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 ac_ext=c
19823 ac_cpp='$CPP $CPPFLAGS'
19824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19832 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
19833 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
19835 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
19837 for ac_func in fabsl
19839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19840 echo "$as_me:$LINENO: checking for $ac_func" >&5
19841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19842 if eval "test \"\${$as_ac_var+set}\" = set"; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845 if test x$gcc_no_link = xyes; then
19846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19848 { (exit 1); exit 1; }; }
19850 cat >conftest.$ac_ext <<_ACEOF
19851 /* confdefs.h. */
19852 _ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19858 #define $ac_func innocuous_$ac_func
19860 /* System header to define __stub macros and hopefully few prototypes,
19861 which can conflict with char $ac_func (); below.
19862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19863 <limits.h> exists even on freestanding compilers. */
19865 #ifdef __STDC__
19866 # include <limits.h>
19867 #else
19868 # include <assert.h>
19869 #endif
19871 #undef $ac_func
19873 /* Override any gcc2 internal prototype to avoid an error. */
19874 #ifdef __cplusplus
19875 extern "C"
19877 #endif
19878 /* We use char because int might match the return type of a gcc2
19879 builtin and then its argument prototype would still apply. */
19880 char $ac_func ();
19881 /* The GNU C library defines this for functions which it implements
19882 to always fail with ENOSYS. Some functions are actually named
19883 something starting with __ and the normal name is an alias. */
19884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19885 choke me
19886 #else
19887 char (*f) () = $ac_func;
19888 #endif
19889 #ifdef __cplusplus
19891 #endif
19894 main ()
19896 return f != $ac_func;
19898 return 0;
19900 _ACEOF
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903 (eval $ac_link) 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 eval "$as_ac_var=yes"
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 eval "$as_ac_var=no"
19929 rm -f conftest.err conftest.$ac_objext \
19930 conftest$ac_exeext conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19934 if test `eval echo '${'$as_ac_var'}'` = yes; then
19935 cat >>confdefs.h <<_ACEOF
19936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19937 _ACEOF
19940 done
19942 else
19944 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
19945 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
19946 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
19947 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19953 ac_ext=cc
19954 ac_cpp='$CXXCPP $CPPFLAGS'
19955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19959 cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h. */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965 #include <math.h>
19966 #ifdef HAVE_IEEEFP_H
19967 #include <ieeefp.h>
19968 #endif
19971 main ()
19973 _fabsl(0);
19975 return 0;
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 glibcxx_cv_func__fabsl_use=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 glibcxx_cv_func__fabsl_use=no
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20007 ac_ext=c
20008 ac_cpp='$CPP $CPPFLAGS'
20009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20018 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20020 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20022 for ac_func in _fabsl
20024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20025 echo "$as_me:$LINENO: checking for $ac_func" >&5
20026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20027 if eval "test \"\${$as_ac_var+set}\" = set"; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 if test x$gcc_no_link = xyes; then
20031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20033 { (exit 1); exit 1; }; }
20035 cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h. */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20043 #define $ac_func innocuous_$ac_func
20045 /* System header to define __stub macros and hopefully few prototypes,
20046 which can conflict with char $ac_func (); below.
20047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048 <limits.h> exists even on freestanding compilers. */
20050 #ifdef __STDC__
20051 # include <limits.h>
20052 #else
20053 # include <assert.h>
20054 #endif
20056 #undef $ac_func
20058 /* Override any gcc2 internal prototype to avoid an error. */
20059 #ifdef __cplusplus
20060 extern "C"
20062 #endif
20063 /* We use char because int might match the return type of a gcc2
20064 builtin and then its argument prototype would still apply. */
20065 char $ac_func ();
20066 /* The GNU C library defines this for functions which it implements
20067 to always fail with ENOSYS. Some functions are actually named
20068 something starting with __ and the normal name is an alias. */
20069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20070 choke me
20071 #else
20072 char (*f) () = $ac_func;
20073 #endif
20074 #ifdef __cplusplus
20076 #endif
20079 main ()
20081 return f != $ac_func;
20083 return 0;
20085 _ACEOF
20086 rm -f conftest.$ac_objext conftest$ac_exeext
20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20088 (eval $ac_link) 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest$ac_exeext'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 eval "$as_ac_var=yes"
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 eval "$as_ac_var=no"
20114 rm -f conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20119 if test `eval echo '${'$as_ac_var'}'` = yes; then
20120 cat >>confdefs.h <<_ACEOF
20121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20122 _ACEOF
20125 done
20132 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20133 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20134 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20135 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20141 ac_ext=cc
20142 ac_cpp='$CXXCPP $CPPFLAGS'
20143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <math.h>
20155 main ()
20157 fmodl(0, 0);
20159 return 0;
20161 _ACEOF
20162 rm -f conftest.$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164 (eval $ac_compile) 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 glibcxx_cv_func_fmodl_use=yes
20184 else
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 glibcxx_cv_func_fmodl_use=no
20190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20191 ac_ext=c
20192 ac_cpp='$CPP $CPPFLAGS'
20193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20201 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20202 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20204 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20206 for ac_func in fmodl
20208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20209 echo "$as_me:$LINENO: checking for $ac_func" >&5
20210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20211 if eval "test \"\${$as_ac_var+set}\" = set"; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214 if test x$gcc_no_link = xyes; then
20215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20217 { (exit 1); exit 1; }; }
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20227 #define $ac_func innocuous_$ac_func
20229 /* System header to define __stub macros and hopefully few prototypes,
20230 which can conflict with char $ac_func (); below.
20231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20232 <limits.h> exists even on freestanding compilers. */
20234 #ifdef __STDC__
20235 # include <limits.h>
20236 #else
20237 # include <assert.h>
20238 #endif
20240 #undef $ac_func
20242 /* Override any gcc2 internal prototype to avoid an error. */
20243 #ifdef __cplusplus
20244 extern "C"
20246 #endif
20247 /* We use char because int might match the return type of a gcc2
20248 builtin and then its argument prototype would still apply. */
20249 char $ac_func ();
20250 /* The GNU C library defines this for functions which it implements
20251 to always fail with ENOSYS. Some functions are actually named
20252 something starting with __ and the normal name is an alias. */
20253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20254 choke me
20255 #else
20256 char (*f) () = $ac_func;
20257 #endif
20258 #ifdef __cplusplus
20260 #endif
20263 main ()
20265 return f != $ac_func;
20267 return 0;
20269 _ACEOF
20270 rm -f conftest.$ac_objext conftest$ac_exeext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20272 (eval $ac_link) 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; } &&
20285 { ac_try='test -s conftest$ac_exeext'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; }; then
20291 eval "$as_ac_var=yes"
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 eval "$as_ac_var=no"
20298 rm -f conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20303 if test `eval echo '${'$as_ac_var'}'` = yes; then
20304 cat >>confdefs.h <<_ACEOF
20305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20306 _ACEOF
20309 done
20311 else
20313 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20314 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20315 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20316 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20322 ac_ext=cc
20323 ac_cpp='$CXXCPP $CPPFLAGS'
20324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <math.h>
20336 main ()
20338 _fmodl(0, 0);
20340 return 0;
20342 _ACEOF
20343 rm -f conftest.$ac_objext
20344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345 (eval $ac_compile) 2>conftest.er1
20346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 glibcxx_cv_func__fmodl_use=yes
20365 else
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 glibcxx_cv_func__fmodl_use=no
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372 ac_ext=c
20373 ac_cpp='$CPP $CPPFLAGS'
20374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20382 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20383 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20385 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20387 for ac_func in _fmodl
20389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20390 echo "$as_me:$LINENO: checking for $ac_func" >&5
20391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20392 if eval "test \"\${$as_ac_var+set}\" = set"; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395 if test x$gcc_no_link = xyes; then
20396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20398 { (exit 1); exit 1; }; }
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h. */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20408 #define $ac_func innocuous_$ac_func
20410 /* System header to define __stub macros and hopefully few prototypes,
20411 which can conflict with char $ac_func (); below.
20412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 <limits.h> exists even on freestanding compilers. */
20415 #ifdef __STDC__
20416 # include <limits.h>
20417 #else
20418 # include <assert.h>
20419 #endif
20421 #undef $ac_func
20423 /* Override any gcc2 internal prototype to avoid an error. */
20424 #ifdef __cplusplus
20425 extern "C"
20427 #endif
20428 /* We use char because int might match the return type of a gcc2
20429 builtin and then its argument prototype would still apply. */
20430 char $ac_func ();
20431 /* The GNU C library defines this for functions which it implements
20432 to always fail with ENOSYS. Some functions are actually named
20433 something starting with __ and the normal name is an alias. */
20434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20435 choke me
20436 #else
20437 char (*f) () = $ac_func;
20438 #endif
20439 #ifdef __cplusplus
20441 #endif
20444 main ()
20446 return f != $ac_func;
20448 return 0;
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20453 (eval $ac_link) 2>conftest.er1
20454 ac_status=$?
20455 grep -v '^ *+' conftest.er1 >conftest.err
20456 rm -f conftest.er1
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } &&
20460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest$ac_exeext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 eval "$as_ac_var=yes"
20473 else
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 eval "$as_ac_var=no"
20479 rm -f conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20484 if test `eval echo '${'$as_ac_var'}'` = yes; then
20485 cat >>confdefs.h <<_ACEOF
20486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20487 _ACEOF
20490 done
20497 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20498 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20499 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20500 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20506 ac_ext=cc
20507 ac_cpp='$CXXCPP $CPPFLAGS'
20508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 #include <math.h>
20520 main ()
20522 frexpl(0, 0);
20524 return 0;
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529 (eval $ac_compile) 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 glibcxx_cv_func_frexpl_use=yes
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 glibcxx_cv_func_frexpl_use=no
20555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20556 ac_ext=c
20557 ac_cpp='$CPP $CPPFLAGS'
20558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20566 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20567 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20569 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20571 for ac_func in frexpl
20573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20574 echo "$as_me:$LINENO: checking for $ac_func" >&5
20575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20576 if eval "test \"\${$as_ac_var+set}\" = set"; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579 if test x$gcc_no_link = xyes; then
20580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20582 { (exit 1); exit 1; }; }
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20592 #define $ac_func innocuous_$ac_func
20594 /* System header to define __stub macros and hopefully few prototypes,
20595 which can conflict with char $ac_func (); below.
20596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20597 <limits.h> exists even on freestanding compilers. */
20599 #ifdef __STDC__
20600 # include <limits.h>
20601 #else
20602 # include <assert.h>
20603 #endif
20605 #undef $ac_func
20607 /* Override any gcc2 internal prototype to avoid an error. */
20608 #ifdef __cplusplus
20609 extern "C"
20611 #endif
20612 /* We use char because int might match the return type of a gcc2
20613 builtin and then its argument prototype would still apply. */
20614 char $ac_func ();
20615 /* The GNU C library defines this for functions which it implements
20616 to always fail with ENOSYS. Some functions are actually named
20617 something starting with __ and the normal name is an alias. */
20618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20619 choke me
20620 #else
20621 char (*f) () = $ac_func;
20622 #endif
20623 #ifdef __cplusplus
20625 #endif
20628 main ()
20630 return f != $ac_func;
20632 return 0;
20634 _ACEOF
20635 rm -f conftest.$ac_objext conftest$ac_exeext
20636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20637 (eval $ac_link) 2>conftest.er1
20638 ac_status=$?
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
20644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest$ac_exeext'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 eval "$as_ac_var=yes"
20657 else
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 eval "$as_ac_var=no"
20663 rm -f conftest.err conftest.$ac_objext \
20664 conftest$ac_exeext conftest.$ac_ext
20666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20668 if test `eval echo '${'$as_ac_var'}'` = yes; then
20669 cat >>confdefs.h <<_ACEOF
20670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20671 _ACEOF
20674 done
20676 else
20678 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
20679 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
20680 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
20681 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20687 ac_ext=cc
20688 ac_cpp='$CXXCPP $CPPFLAGS'
20689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 #include <math.h>
20701 main ()
20703 _frexpl(0, 0);
20705 return 0;
20707 _ACEOF
20708 rm -f conftest.$ac_objext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20710 (eval $ac_compile) 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try='test -s conftest.$ac_objext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20726 ac_status=$?
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 glibcxx_cv_func__frexpl_use=yes
20730 else
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 glibcxx_cv_func__frexpl_use=no
20736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20737 ac_ext=c
20738 ac_cpp='$CPP $CPPFLAGS'
20739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
20748 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
20750 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
20752 for ac_func in _frexpl
20754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20755 echo "$as_me:$LINENO: checking for $ac_func" >&5
20756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20757 if eval "test \"\${$as_ac_var+set}\" = set"; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760 if test x$gcc_no_link = xyes; then
20761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20763 { (exit 1); exit 1; }; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h. */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20773 #define $ac_func innocuous_$ac_func
20775 /* System header to define __stub macros and hopefully few prototypes,
20776 which can conflict with char $ac_func (); below.
20777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20778 <limits.h> exists even on freestanding compilers. */
20780 #ifdef __STDC__
20781 # include <limits.h>
20782 #else
20783 # include <assert.h>
20784 #endif
20786 #undef $ac_func
20788 /* Override any gcc2 internal prototype to avoid an error. */
20789 #ifdef __cplusplus
20790 extern "C"
20792 #endif
20793 /* We use char because int might match the return type of a gcc2
20794 builtin and then its argument prototype would still apply. */
20795 char $ac_func ();
20796 /* The GNU C library defines this for functions which it implements
20797 to always fail with ENOSYS. Some functions are actually named
20798 something starting with __ and the normal name is an alias. */
20799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20800 choke me
20801 #else
20802 char (*f) () = $ac_func;
20803 #endif
20804 #ifdef __cplusplus
20806 #endif
20809 main ()
20811 return f != $ac_func;
20813 return 0;
20815 _ACEOF
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20818 (eval $ac_link) 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } &&
20825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20828 ac_status=$?
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; } &&
20831 { ac_try='test -s conftest$ac_exeext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 eval "$as_ac_var=yes"
20838 else
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 eval "$as_ac_var=no"
20844 rm -f conftest.err conftest.$ac_objext \
20845 conftest$ac_exeext conftest.$ac_ext
20847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20849 if test `eval echo '${'$as_ac_var'}'` = yes; then
20850 cat >>confdefs.h <<_ACEOF
20851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20852 _ACEOF
20855 done
20862 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
20863 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
20864 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
20865 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 else
20871 ac_ext=cc
20872 ac_cpp='$CXXCPP $CPPFLAGS'
20873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 #include <math.h>
20885 main ()
20887 hypotl(0, 0);
20889 return 0;
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20894 (eval $ac_compile) 2>conftest.er1
20895 ac_status=$?
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
20901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest.$ac_objext'
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 glibcxx_cv_func_hypotl_use=yes
20914 else
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 glibcxx_cv_func_hypotl_use=no
20920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20921 ac_ext=c
20922 ac_cpp='$CPP $CPPFLAGS'
20923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20931 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
20932 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
20934 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
20936 for ac_func in hypotl
20938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20939 echo "$as_me:$LINENO: checking for $ac_func" >&5
20940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20941 if eval "test \"\${$as_ac_var+set}\" = set"; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944 if test x$gcc_no_link = xyes; then
20945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20947 { (exit 1); exit 1; }; }
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h. */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20957 #define $ac_func innocuous_$ac_func
20959 /* System header to define __stub macros and hopefully few prototypes,
20960 which can conflict with char $ac_func (); below.
20961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20962 <limits.h> exists even on freestanding compilers. */
20964 #ifdef __STDC__
20965 # include <limits.h>
20966 #else
20967 # include <assert.h>
20968 #endif
20970 #undef $ac_func
20972 /* Override any gcc2 internal prototype to avoid an error. */
20973 #ifdef __cplusplus
20974 extern "C"
20976 #endif
20977 /* We use char because int might match the return type of a gcc2
20978 builtin and then its argument prototype would still apply. */
20979 char $ac_func ();
20980 /* The GNU C library defines this for functions which it implements
20981 to always fail with ENOSYS. Some functions are actually named
20982 something starting with __ and the normal name is an alias. */
20983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20984 choke me
20985 #else
20986 char (*f) () = $ac_func;
20987 #endif
20988 #ifdef __cplusplus
20990 #endif
20993 main ()
20995 return f != $ac_func;
20997 return 0;
20999 _ACEOF
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002 (eval $ac_link) 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest$ac_exeext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 eval "$as_ac_var=yes"
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 eval "$as_ac_var=no"
21028 rm -f conftest.err conftest.$ac_objext \
21029 conftest$ac_exeext conftest.$ac_ext
21031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21033 if test `eval echo '${'$as_ac_var'}'` = yes; then
21034 cat >>confdefs.h <<_ACEOF
21035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21036 _ACEOF
21039 done
21041 else
21043 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21044 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21045 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21046 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21048 else
21052 ac_ext=cc
21053 ac_cpp='$CXXCPP $CPPFLAGS'
21054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h. */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 #include <math.h>
21066 main ()
21068 _hypotl(0, 0);
21070 return 0;
21072 _ACEOF
21073 rm -f conftest.$ac_objext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>conftest.er1
21076 ac_status=$?
21077 grep -v '^ *+' conftest.er1 >conftest.err
21078 rm -f conftest.er1
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } &&
21082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; } &&
21088 { ac_try='test -s conftest.$ac_objext'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 glibcxx_cv_func__hypotl_use=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 glibcxx_cv_func__hypotl_use=no
21101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102 ac_ext=c
21103 ac_cpp='$CPP $CPPFLAGS'
21104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21113 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21115 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21117 for ac_func in _hypotl
21119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21120 echo "$as_me:$LINENO: checking for $ac_func" >&5
21121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21122 if eval "test \"\${$as_ac_var+set}\" = set"; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125 if test x$gcc_no_link = xyes; then
21126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21128 { (exit 1); exit 1; }; }
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21138 #define $ac_func innocuous_$ac_func
21140 /* System header to define __stub macros and hopefully few prototypes,
21141 which can conflict with char $ac_func (); below.
21142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21143 <limits.h> exists even on freestanding compilers. */
21145 #ifdef __STDC__
21146 # include <limits.h>
21147 #else
21148 # include <assert.h>
21149 #endif
21151 #undef $ac_func
21153 /* Override any gcc2 internal prototype to avoid an error. */
21154 #ifdef __cplusplus
21155 extern "C"
21157 #endif
21158 /* We use char because int might match the return type of a gcc2
21159 builtin and then its argument prototype would still apply. */
21160 char $ac_func ();
21161 /* The GNU C library defines this for functions which it implements
21162 to always fail with ENOSYS. Some functions are actually named
21163 something starting with __ and the normal name is an alias. */
21164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21165 choke me
21166 #else
21167 char (*f) () = $ac_func;
21168 #endif
21169 #ifdef __cplusplus
21171 #endif
21174 main ()
21176 return f != $ac_func;
21178 return 0;
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest$ac_exeext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 eval "$as_ac_var=yes"
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 eval "$as_ac_var=no"
21209 rm -f conftest.err conftest.$ac_objext \
21210 conftest$ac_exeext conftest.$ac_ext
21212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21214 if test `eval echo '${'$as_ac_var'}'` = yes; then
21215 cat >>confdefs.h <<_ACEOF
21216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21217 _ACEOF
21220 done
21227 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21228 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21229 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21230 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 else
21236 ac_ext=cc
21237 ac_cpp='$CXXCPP $CPPFLAGS'
21238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21242 cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h. */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248 #include <math.h>
21250 main ()
21252 ldexpl(0, 0);
21254 return 0;
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; } &&
21272 { ac_try='test -s conftest.$ac_objext'
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; }; then
21278 glibcxx_cv_func_ldexpl_use=yes
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 glibcxx_cv_func_ldexpl_use=no
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 ac_ext=c
21287 ac_cpp='$CPP $CPPFLAGS'
21288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21296 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21297 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21299 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21301 for ac_func in ldexpl
21303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21304 echo "$as_me:$LINENO: checking for $ac_func" >&5
21305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21306 if eval "test \"\${$as_ac_var+set}\" = set"; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309 if test x$gcc_no_link = xyes; then
21310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21312 { (exit 1); exit 1; }; }
21314 cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h. */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21322 #define $ac_func innocuous_$ac_func
21324 /* System header to define __stub macros and hopefully few prototypes,
21325 which can conflict with char $ac_func (); below.
21326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21327 <limits.h> exists even on freestanding compilers. */
21329 #ifdef __STDC__
21330 # include <limits.h>
21331 #else
21332 # include <assert.h>
21333 #endif
21335 #undef $ac_func
21337 /* Override any gcc2 internal prototype to avoid an error. */
21338 #ifdef __cplusplus
21339 extern "C"
21341 #endif
21342 /* We use char because int might match the return type of a gcc2
21343 builtin and then its argument prototype would still apply. */
21344 char $ac_func ();
21345 /* The GNU C library defines this for functions which it implements
21346 to always fail with ENOSYS. Some functions are actually named
21347 something starting with __ and the normal name is an alias. */
21348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21349 choke me
21350 #else
21351 char (*f) () = $ac_func;
21352 #endif
21353 #ifdef __cplusplus
21355 #endif
21358 main ()
21360 return f != $ac_func;
21362 return 0;
21364 _ACEOF
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367 (eval $ac_link) 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } &&
21374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest$ac_exeext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 eval "$as_ac_var=yes"
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 eval "$as_ac_var=no"
21393 rm -f conftest.err conftest.$ac_objext \
21394 conftest$ac_exeext conftest.$ac_ext
21396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21398 if test `eval echo '${'$as_ac_var'}'` = yes; then
21399 cat >>confdefs.h <<_ACEOF
21400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21401 _ACEOF
21404 done
21406 else
21408 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21409 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21410 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21411 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21417 ac_ext=cc
21418 ac_cpp='$CXXCPP $CPPFLAGS'
21419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21423 cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h. */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 #include <math.h>
21431 main ()
21433 _ldexpl(0, 0);
21435 return 0;
21437 _ACEOF
21438 rm -f conftest.$ac_objext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21440 (eval $ac_compile) 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; } &&
21453 { ac_try='test -s conftest.$ac_objext'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; }; then
21459 glibcxx_cv_func__ldexpl_use=yes
21460 else
21461 echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21464 glibcxx_cv_func__ldexpl_use=no
21466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21467 ac_ext=c
21468 ac_cpp='$CPP $CPPFLAGS'
21469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21477 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21478 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21480 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21482 for ac_func in _ldexpl
21484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21485 echo "$as_me:$LINENO: checking for $ac_func" >&5
21486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21487 if eval "test \"\${$as_ac_var+set}\" = set"; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490 if test x$gcc_no_link = xyes; then
21491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21493 { (exit 1); exit 1; }; }
21495 cat >conftest.$ac_ext <<_ACEOF
21496 /* confdefs.h. */
21497 _ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21503 #define $ac_func innocuous_$ac_func
21505 /* System header to define __stub macros and hopefully few prototypes,
21506 which can conflict with char $ac_func (); below.
21507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21508 <limits.h> exists even on freestanding compilers. */
21510 #ifdef __STDC__
21511 # include <limits.h>
21512 #else
21513 # include <assert.h>
21514 #endif
21516 #undef $ac_func
21518 /* Override any gcc2 internal prototype to avoid an error. */
21519 #ifdef __cplusplus
21520 extern "C"
21522 #endif
21523 /* We use char because int might match the return type of a gcc2
21524 builtin and then its argument prototype would still apply. */
21525 char $ac_func ();
21526 /* The GNU C library defines this for functions which it implements
21527 to always fail with ENOSYS. Some functions are actually named
21528 something starting with __ and the normal name is an alias. */
21529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21530 choke me
21531 #else
21532 char (*f) () = $ac_func;
21533 #endif
21534 #ifdef __cplusplus
21536 #endif
21539 main ()
21541 return f != $ac_func;
21543 return 0;
21545 _ACEOF
21546 rm -f conftest.$ac_objext conftest$ac_exeext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21548 (eval $ac_link) 2>conftest.er1
21549 ac_status=$?
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
21555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try='test -s conftest$ac_exeext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 eval "$as_ac_var=yes"
21568 else
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 eval "$as_ac_var=no"
21574 rm -f conftest.err conftest.$ac_objext \
21575 conftest$ac_exeext conftest.$ac_ext
21577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21579 if test `eval echo '${'$as_ac_var'}'` = yes; then
21580 cat >>confdefs.h <<_ACEOF
21581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21582 _ACEOF
21585 done
21592 echo "$as_me:$LINENO: checking for logl declaration" >&5
21593 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21594 if test x${glibcxx_cv_func_logl_use+set} != xset; then
21595 if test "${glibcxx_cv_func_logl_use+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21601 ac_ext=cc
21602 ac_cpp='$CXXCPP $CPPFLAGS'
21603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 #include <math.h>
21614 #ifdef HAVE_IEEEFP_H
21615 #include <ieeefp.h>
21616 #endif
21619 main ()
21621 logl(0);
21623 return 0;
21625 _ACEOF
21626 rm -f conftest.$ac_objext
21627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21628 (eval $ac_compile) 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; } &&
21641 { ac_try='test -s conftest.$ac_objext'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 glibcxx_cv_func_logl_use=yes
21648 else
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 glibcxx_cv_func_logl_use=no
21654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21655 ac_ext=c
21656 ac_cpp='$CPP $CPPFLAGS'
21657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21665 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
21666 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
21668 if test x$glibcxx_cv_func_logl_use = x"yes"; then
21670 for ac_func in logl
21672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21673 echo "$as_me:$LINENO: checking for $ac_func" >&5
21674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21675 if eval "test \"\${$as_ac_var+set}\" = set"; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678 if test x$gcc_no_link = xyes; then
21679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21681 { (exit 1); exit 1; }; }
21683 cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h. */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h. */
21689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21691 #define $ac_func innocuous_$ac_func
21693 /* System header to define __stub macros and hopefully few prototypes,
21694 which can conflict with char $ac_func (); below.
21695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21696 <limits.h> exists even on freestanding compilers. */
21698 #ifdef __STDC__
21699 # include <limits.h>
21700 #else
21701 # include <assert.h>
21702 #endif
21704 #undef $ac_func
21706 /* Override any gcc2 internal prototype to avoid an error. */
21707 #ifdef __cplusplus
21708 extern "C"
21710 #endif
21711 /* We use char because int might match the return type of a gcc2
21712 builtin and then its argument prototype would still apply. */
21713 char $ac_func ();
21714 /* The GNU C library defines this for functions which it implements
21715 to always fail with ENOSYS. Some functions are actually named
21716 something starting with __ and the normal name is an alias. */
21717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21718 choke me
21719 #else
21720 char (*f) () = $ac_func;
21721 #endif
21722 #ifdef __cplusplus
21724 #endif
21727 main ()
21729 return f != $ac_func;
21731 return 0;
21733 _ACEOF
21734 rm -f conftest.$ac_objext conftest$ac_exeext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21736 (eval $ac_link) 2>conftest.er1
21737 ac_status=$?
21738 grep -v '^ *+' conftest.er1 >conftest.err
21739 rm -f conftest.er1
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
21743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; } &&
21749 { ac_try='test -s conftest$ac_exeext'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 eval "$as_ac_var=yes"
21756 else
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21760 eval "$as_ac_var=no"
21762 rm -f conftest.err conftest.$ac_objext \
21763 conftest$ac_exeext conftest.$ac_ext
21765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21767 if test `eval echo '${'$as_ac_var'}'` = yes; then
21768 cat >>confdefs.h <<_ACEOF
21769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21770 _ACEOF
21773 done
21775 else
21777 echo "$as_me:$LINENO: checking for _logl declaration" >&5
21778 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
21779 if test x${glibcxx_cv_func__logl_use+set} != xset; then
21780 if test "${glibcxx_cv_func__logl_use+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21786 ac_ext=cc
21787 ac_cpp='$CXXCPP $CPPFLAGS'
21788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <math.h>
21799 #ifdef HAVE_IEEEFP_H
21800 #include <ieeefp.h>
21801 #endif
21804 main ()
21806 _logl(0);
21808 return 0;
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; } &&
21826 { ac_try='test -s conftest.$ac_objext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 glibcxx_cv_func__logl_use=yes
21833 else
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 glibcxx_cv_func__logl_use=no
21839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840 ac_ext=c
21841 ac_cpp='$CPP $CPPFLAGS'
21842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21850 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
21851 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
21853 if test x$glibcxx_cv_func__logl_use = x"yes"; then
21855 for ac_func in _logl
21857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21858 echo "$as_me:$LINENO: checking for $ac_func" >&5
21859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21860 if eval "test \"\${$as_ac_var+set}\" = set"; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863 if test x$gcc_no_link = xyes; then
21864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21866 { (exit 1); exit 1; }; }
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21876 #define $ac_func innocuous_$ac_func
21878 /* System header to define __stub macros and hopefully few prototypes,
21879 which can conflict with char $ac_func (); below.
21880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21881 <limits.h> exists even on freestanding compilers. */
21883 #ifdef __STDC__
21884 # include <limits.h>
21885 #else
21886 # include <assert.h>
21887 #endif
21889 #undef $ac_func
21891 /* Override any gcc2 internal prototype to avoid an error. */
21892 #ifdef __cplusplus
21893 extern "C"
21895 #endif
21896 /* We use char because int might match the return type of a gcc2
21897 builtin and then its argument prototype would still apply. */
21898 char $ac_func ();
21899 /* The GNU C library defines this for functions which it implements
21900 to always fail with ENOSYS. Some functions are actually named
21901 something starting with __ and the normal name is an alias. */
21902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21903 choke me
21904 #else
21905 char (*f) () = $ac_func;
21906 #endif
21907 #ifdef __cplusplus
21909 #endif
21912 main ()
21914 return f != $ac_func;
21916 return 0;
21918 _ACEOF
21919 rm -f conftest.$ac_objext conftest$ac_exeext
21920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21921 (eval $ac_link) 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; } &&
21934 { ac_try='test -s conftest$ac_exeext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 eval "$as_ac_var=yes"
21941 else
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 eval "$as_ac_var=no"
21947 rm -f conftest.err conftest.$ac_objext \
21948 conftest$ac_exeext conftest.$ac_ext
21950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21952 if test `eval echo '${'$as_ac_var'}'` = yes; then
21953 cat >>confdefs.h <<_ACEOF
21954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21955 _ACEOF
21958 done
21965 echo "$as_me:$LINENO: checking for log10l declaration" >&5
21966 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
21967 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
21968 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21974 ac_ext=cc
21975 ac_cpp='$CXXCPP $CPPFLAGS'
21976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 #include <math.h>
21987 #ifdef HAVE_IEEEFP_H
21988 #include <ieeefp.h>
21989 #endif
21992 main ()
21994 log10l(0);
21996 return 0;
21998 _ACEOF
21999 rm -f conftest.$ac_objext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22001 (eval $ac_compile) 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 glibcxx_cv_func_log10l_use=yes
22021 else
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 glibcxx_cv_func_log10l_use=no
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028 ac_ext=c
22029 ac_cpp='$CPP $CPPFLAGS'
22030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22038 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22039 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22041 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22043 for ac_func in log10l
22045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22046 echo "$as_me:$LINENO: checking for $ac_func" >&5
22047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22048 if eval "test \"\${$as_ac_var+set}\" = set"; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 if test x$gcc_no_link = xyes; then
22052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22054 { (exit 1); exit 1; }; }
22056 cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h. */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22064 #define $ac_func innocuous_$ac_func
22066 /* System header to define __stub macros and hopefully few prototypes,
22067 which can conflict with char $ac_func (); below.
22068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22069 <limits.h> exists even on freestanding compilers. */
22071 #ifdef __STDC__
22072 # include <limits.h>
22073 #else
22074 # include <assert.h>
22075 #endif
22077 #undef $ac_func
22079 /* Override any gcc2 internal prototype to avoid an error. */
22080 #ifdef __cplusplus
22081 extern "C"
22083 #endif
22084 /* We use char because int might match the return type of a gcc2
22085 builtin and then its argument prototype would still apply. */
22086 char $ac_func ();
22087 /* The GNU C library defines this for functions which it implements
22088 to always fail with ENOSYS. Some functions are actually named
22089 something starting with __ and the normal name is an alias. */
22090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22091 choke me
22092 #else
22093 char (*f) () = $ac_func;
22094 #endif
22095 #ifdef __cplusplus
22097 #endif
22100 main ()
22102 return f != $ac_func;
22104 return 0;
22106 _ACEOF
22107 rm -f conftest.$ac_objext conftest$ac_exeext
22108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
22116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest$ac_exeext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 eval "$as_ac_var=yes"
22129 else
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 eval "$as_ac_var=no"
22135 rm -f conftest.err conftest.$ac_objext \
22136 conftest$ac_exeext conftest.$ac_ext
22138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22140 if test `eval echo '${'$as_ac_var'}'` = yes; then
22141 cat >>confdefs.h <<_ACEOF
22142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22143 _ACEOF
22146 done
22148 else
22150 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22151 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22152 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22153 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22159 ac_ext=cc
22160 ac_cpp='$CXXCPP $CPPFLAGS'
22161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 #include <math.h>
22172 #ifdef HAVE_IEEEFP_H
22173 #include <ieeefp.h>
22174 #endif
22177 main ()
22179 _log10l(0);
22181 return 0;
22183 _ACEOF
22184 rm -f conftest.$ac_objext
22185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22186 (eval $ac_compile) 2>conftest.er1
22187 ac_status=$?
22188 grep -v '^ *+' conftest.er1 >conftest.err
22189 rm -f conftest.er1
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } &&
22193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); }; } &&
22199 { ac_try='test -s conftest.$ac_objext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 glibcxx_cv_func__log10l_use=yes
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 glibcxx_cv_func__log10l_use=no
22212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22213 ac_ext=c
22214 ac_cpp='$CPP $CPPFLAGS'
22215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22224 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22226 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22228 for ac_func in _log10l
22230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22231 echo "$as_me:$LINENO: checking for $ac_func" >&5
22232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22233 if eval "test \"\${$as_ac_var+set}\" = set"; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236 if test x$gcc_no_link = xyes; then
22237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22239 { (exit 1); exit 1; }; }
22241 cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h. */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22249 #define $ac_func innocuous_$ac_func
22251 /* System header to define __stub macros and hopefully few prototypes,
22252 which can conflict with char $ac_func (); below.
22253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254 <limits.h> exists even on freestanding compilers. */
22256 #ifdef __STDC__
22257 # include <limits.h>
22258 #else
22259 # include <assert.h>
22260 #endif
22262 #undef $ac_func
22264 /* Override any gcc2 internal prototype to avoid an error. */
22265 #ifdef __cplusplus
22266 extern "C"
22268 #endif
22269 /* We use char because int might match the return type of a gcc2
22270 builtin and then its argument prototype would still apply. */
22271 char $ac_func ();
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22276 choke me
22277 #else
22278 char (*f) () = $ac_func;
22279 #endif
22280 #ifdef __cplusplus
22282 #endif
22285 main ()
22287 return f != $ac_func;
22289 return 0;
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22294 (eval $ac_link) 2>conftest.er1
22295 ac_status=$?
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
22301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; } &&
22307 { ac_try='test -s conftest$ac_exeext'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; }; then
22313 eval "$as_ac_var=yes"
22314 else
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 eval "$as_ac_var=no"
22320 rm -f conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
22323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22325 if test `eval echo '${'$as_ac_var'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22328 _ACEOF
22331 done
22338 echo "$as_me:$LINENO: checking for modfl declaration" >&5
22339 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22340 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22341 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22347 ac_ext=cc
22348 ac_cpp='$CXXCPP $CPPFLAGS'
22349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 #include <math.h>
22361 main ()
22363 modfl(0, 0);
22365 return 0;
22367 _ACEOF
22368 rm -f conftest.$ac_objext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22370 (eval $ac_compile) 2>conftest.er1
22371 ac_status=$?
22372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
22377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try='test -s conftest.$ac_objext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 glibcxx_cv_func_modfl_use=yes
22390 else
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22394 glibcxx_cv_func_modfl_use=no
22396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22397 ac_ext=c
22398 ac_cpp='$CPP $CPPFLAGS'
22399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22407 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22408 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22410 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22412 for ac_func in modfl
22414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22415 echo "$as_me:$LINENO: checking for $ac_func" >&5
22416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22417 if eval "test \"\${$as_ac_var+set}\" = set"; then
22418 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 else
22420 if test x$gcc_no_link = xyes; then
22421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22423 { (exit 1); exit 1; }; }
22425 cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h. */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22433 #define $ac_func innocuous_$ac_func
22435 /* System header to define __stub macros and hopefully few prototypes,
22436 which can conflict with char $ac_func (); below.
22437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22438 <limits.h> exists even on freestanding compilers. */
22440 #ifdef __STDC__
22441 # include <limits.h>
22442 #else
22443 # include <assert.h>
22444 #endif
22446 #undef $ac_func
22448 /* Override any gcc2 internal prototype to avoid an error. */
22449 #ifdef __cplusplus
22450 extern "C"
22452 #endif
22453 /* We use char because int might match the return type of a gcc2
22454 builtin and then its argument prototype would still apply. */
22455 char $ac_func ();
22456 /* The GNU C library defines this for functions which it implements
22457 to always fail with ENOSYS. Some functions are actually named
22458 something starting with __ and the normal name is an alias. */
22459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22460 choke me
22461 #else
22462 char (*f) () = $ac_func;
22463 #endif
22464 #ifdef __cplusplus
22466 #endif
22469 main ()
22471 return f != $ac_func;
22473 return 0;
22475 _ACEOF
22476 rm -f conftest.$ac_objext conftest$ac_exeext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22478 (eval $ac_link) 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } &&
22485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest$ac_exeext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 eval "$as_ac_var=yes"
22498 else
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 eval "$as_ac_var=no"
22504 rm -f conftest.err conftest.$ac_objext \
22505 conftest$ac_exeext conftest.$ac_ext
22507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22509 if test `eval echo '${'$as_ac_var'}'` = yes; then
22510 cat >>confdefs.h <<_ACEOF
22511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22512 _ACEOF
22515 done
22517 else
22519 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22520 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22521 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22522 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22528 ac_ext=cc
22529 ac_cpp='$CXXCPP $CPPFLAGS'
22530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 #include <math.h>
22542 main ()
22544 _modfl(0, 0);
22546 return 0;
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22551 (eval $ac_compile) 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
22558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 glibcxx_cv_func__modfl_use=yes
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 glibcxx_cv_func__modfl_use=no
22577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22578 ac_ext=c
22579 ac_cpp='$CPP $CPPFLAGS'
22580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22588 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22589 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22591 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22593 for ac_func in _modfl
22595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22596 echo "$as_me:$LINENO: checking for $ac_func" >&5
22597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22598 if eval "test \"\${$as_ac_var+set}\" = set"; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601 if test x$gcc_no_link = xyes; then
22602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22604 { (exit 1); exit 1; }; }
22606 cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h. */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22614 #define $ac_func innocuous_$ac_func
22616 /* System header to define __stub macros and hopefully few prototypes,
22617 which can conflict with char $ac_func (); below.
22618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22619 <limits.h> exists even on freestanding compilers. */
22621 #ifdef __STDC__
22622 # include <limits.h>
22623 #else
22624 # include <assert.h>
22625 #endif
22627 #undef $ac_func
22629 /* Override any gcc2 internal prototype to avoid an error. */
22630 #ifdef __cplusplus
22631 extern "C"
22633 #endif
22634 /* We use char because int might match the return type of a gcc2
22635 builtin and then its argument prototype would still apply. */
22636 char $ac_func ();
22637 /* The GNU C library defines this for functions which it implements
22638 to always fail with ENOSYS. Some functions are actually named
22639 something starting with __ and the normal name is an alias. */
22640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22641 choke me
22642 #else
22643 char (*f) () = $ac_func;
22644 #endif
22645 #ifdef __cplusplus
22647 #endif
22650 main ()
22652 return f != $ac_func;
22654 return 0;
22656 _ACEOF
22657 rm -f conftest.$ac_objext conftest$ac_exeext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22659 (eval $ac_link) 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; } &&
22672 { ac_try='test -s conftest$ac_exeext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 eval "$as_ac_var=yes"
22679 else
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 eval "$as_ac_var=no"
22685 rm -f conftest.err conftest.$ac_objext \
22686 conftest$ac_exeext conftest.$ac_ext
22688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22690 if test `eval echo '${'$as_ac_var'}'` = yes; then
22691 cat >>confdefs.h <<_ACEOF
22692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22693 _ACEOF
22696 done
22703 echo "$as_me:$LINENO: checking for powl declaration" >&5
22704 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
22705 if test x${glibcxx_cv_func_powl_use+set} != xset; then
22706 if test "${glibcxx_cv_func_powl_use+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22712 ac_ext=cc
22713 ac_cpp='$CXXCPP $CPPFLAGS'
22714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 #include <math.h>
22726 main ()
22728 powl(0, 0);
22730 return 0;
22732 _ACEOF
22733 rm -f conftest.$ac_objext
22734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22735 (eval $ac_compile) 2>conftest.er1
22736 ac_status=$?
22737 grep -v '^ *+' conftest.er1 >conftest.err
22738 rm -f conftest.er1
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } &&
22742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest.$ac_objext'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 glibcxx_cv_func_powl_use=yes
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 glibcxx_cv_func_powl_use=no
22761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22762 ac_ext=c
22763 ac_cpp='$CPP $CPPFLAGS'
22764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22772 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
22773 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
22775 if test x$glibcxx_cv_func_powl_use = x"yes"; then
22777 for ac_func in powl
22779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22780 echo "$as_me:$LINENO: checking for $ac_func" >&5
22781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22782 if eval "test \"\${$as_ac_var+set}\" = set"; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785 if test x$gcc_no_link = xyes; then
22786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22788 { (exit 1); exit 1; }; }
22790 cat >conftest.$ac_ext <<_ACEOF
22791 /* confdefs.h. */
22792 _ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22798 #define $ac_func innocuous_$ac_func
22800 /* System header to define __stub macros and hopefully few prototypes,
22801 which can conflict with char $ac_func (); below.
22802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22803 <limits.h> exists even on freestanding compilers. */
22805 #ifdef __STDC__
22806 # include <limits.h>
22807 #else
22808 # include <assert.h>
22809 #endif
22811 #undef $ac_func
22813 /* Override any gcc2 internal prototype to avoid an error. */
22814 #ifdef __cplusplus
22815 extern "C"
22817 #endif
22818 /* We use char because int might match the return type of a gcc2
22819 builtin and then its argument prototype would still apply. */
22820 char $ac_func ();
22821 /* The GNU C library defines this for functions which it implements
22822 to always fail with ENOSYS. Some functions are actually named
22823 something starting with __ and the normal name is an alias. */
22824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22825 choke me
22826 #else
22827 char (*f) () = $ac_func;
22828 #endif
22829 #ifdef __cplusplus
22831 #endif
22834 main ()
22836 return f != $ac_func;
22838 return 0;
22840 _ACEOF
22841 rm -f conftest.$ac_objext conftest$ac_exeext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22843 (eval $ac_link) 2>conftest.er1
22844 ac_status=$?
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } &&
22850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; } &&
22856 { ac_try='test -s conftest$ac_exeext'
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; }; then
22862 eval "$as_ac_var=yes"
22863 else
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 eval "$as_ac_var=no"
22869 rm -f conftest.err conftest.$ac_objext \
22870 conftest$ac_exeext conftest.$ac_ext
22872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22874 if test `eval echo '${'$as_ac_var'}'` = yes; then
22875 cat >>confdefs.h <<_ACEOF
22876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22877 _ACEOF
22880 done
22882 else
22884 echo "$as_me:$LINENO: checking for _powl declaration" >&5
22885 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
22886 if test x${glibcxx_cv_func__powl_use+set} != xset; then
22887 if test "${glibcxx_cv_func__powl_use+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22893 ac_ext=cc
22894 ac_cpp='$CXXCPP $CPPFLAGS'
22895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22899 cat >conftest.$ac_ext <<_ACEOF
22900 /* confdefs.h. */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22905 #include <math.h>
22907 main ()
22909 _powl(0, 0);
22911 return 0;
22913 _ACEOF
22914 rm -f conftest.$ac_objext
22915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22916 (eval $ac_compile) 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest.$ac_objext'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 glibcxx_cv_func__powl_use=yes
22936 else
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 glibcxx_cv_func__powl_use=no
22942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22943 ac_ext=c
22944 ac_cpp='$CPP $CPPFLAGS'
22945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22953 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
22954 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
22956 if test x$glibcxx_cv_func__powl_use = x"yes"; then
22958 for ac_func in _powl
22960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22961 echo "$as_me:$LINENO: checking for $ac_func" >&5
22962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22963 if eval "test \"\${$as_ac_var+set}\" = set"; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 else
22966 if test x$gcc_no_link = xyes; then
22967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22969 { (exit 1); exit 1; }; }
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h. */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22979 #define $ac_func innocuous_$ac_func
22981 /* System header to define __stub macros and hopefully few prototypes,
22982 which can conflict with char $ac_func (); below.
22983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22984 <limits.h> exists even on freestanding compilers. */
22986 #ifdef __STDC__
22987 # include <limits.h>
22988 #else
22989 # include <assert.h>
22990 #endif
22992 #undef $ac_func
22994 /* Override any gcc2 internal prototype to avoid an error. */
22995 #ifdef __cplusplus
22996 extern "C"
22998 #endif
22999 /* We use char because int might match the return type of a gcc2
23000 builtin and then its argument prototype would still apply. */
23001 char $ac_func ();
23002 /* The GNU C library defines this for functions which it implements
23003 to always fail with ENOSYS. Some functions are actually named
23004 something starting with __ and the normal name is an alias. */
23005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23006 choke me
23007 #else
23008 char (*f) () = $ac_func;
23009 #endif
23010 #ifdef __cplusplus
23012 #endif
23015 main ()
23017 return f != $ac_func;
23019 return 0;
23021 _ACEOF
23022 rm -f conftest.$ac_objext conftest$ac_exeext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23024 (eval $ac_link) 2>conftest.er1
23025 ac_status=$?
23026 grep -v '^ *+' conftest.er1 >conftest.err
23027 rm -f conftest.er1
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } &&
23031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; } &&
23037 { ac_try='test -s conftest$ac_exeext'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 eval "$as_ac_var=yes"
23044 else
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 eval "$as_ac_var=no"
23050 rm -f conftest.err conftest.$ac_objext \
23051 conftest$ac_exeext conftest.$ac_ext
23053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23055 if test `eval echo '${'$as_ac_var'}'` = yes; then
23056 cat >>confdefs.h <<_ACEOF
23057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23058 _ACEOF
23061 done
23068 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23069 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23070 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23071 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 else
23077 ac_ext=cc
23078 ac_cpp='$CXXCPP $CPPFLAGS'
23079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 #include <math.h>
23090 #ifdef HAVE_IEEEFP_H
23091 #include <ieeefp.h>
23092 #endif
23095 main ()
23097 sqrtl(0);
23099 return 0;
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23104 (eval $ac_compile) 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } &&
23111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; } &&
23117 { ac_try='test -s conftest.$ac_objext'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23120 ac_status=$?
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; }; then
23123 glibcxx_cv_func_sqrtl_use=yes
23124 else
23125 echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23128 glibcxx_cv_func_sqrtl_use=no
23130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23131 ac_ext=c
23132 ac_cpp='$CPP $CPPFLAGS'
23133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23141 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23142 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23144 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23146 for ac_func in sqrtl
23148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23149 echo "$as_me:$LINENO: checking for $ac_func" >&5
23150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23151 if eval "test \"\${$as_ac_var+set}\" = set"; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 else
23154 if test x$gcc_no_link = xyes; then
23155 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23156 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23157 { (exit 1); exit 1; }; }
23159 cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h. */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23167 #define $ac_func innocuous_$ac_func
23169 /* System header to define __stub macros and hopefully few prototypes,
23170 which can conflict with char $ac_func (); below.
23171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23172 <limits.h> exists even on freestanding compilers. */
23174 #ifdef __STDC__
23175 # include <limits.h>
23176 #else
23177 # include <assert.h>
23178 #endif
23180 #undef $ac_func
23182 /* Override any gcc2 internal prototype to avoid an error. */
23183 #ifdef __cplusplus
23184 extern "C"
23186 #endif
23187 /* We use char because int might match the return type of a gcc2
23188 builtin and then its argument prototype would still apply. */
23189 char $ac_func ();
23190 /* The GNU C library defines this for functions which it implements
23191 to always fail with ENOSYS. Some functions are actually named
23192 something starting with __ and the normal name is an alias. */
23193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23194 choke me
23195 #else
23196 char (*f) () = $ac_func;
23197 #endif
23198 #ifdef __cplusplus
23200 #endif
23203 main ()
23205 return f != $ac_func;
23207 return 0;
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212 (eval $ac_link) 2>conftest.er1
23213 ac_status=$?
23214 grep -v '^ *+' conftest.er1 >conftest.err
23215 rm -f conftest.er1
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } &&
23219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; } &&
23225 { ac_try='test -s conftest$ac_exeext'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; }; then
23231 eval "$as_ac_var=yes"
23232 else
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 eval "$as_ac_var=no"
23238 rm -f conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23243 if test `eval echo '${'$as_ac_var'}'` = yes; then
23244 cat >>confdefs.h <<_ACEOF
23245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23246 _ACEOF
23249 done
23251 else
23253 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23254 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23255 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23256 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 else
23262 ac_ext=cc
23263 ac_cpp='$CXXCPP $CPPFLAGS'
23264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <math.h>
23275 #ifdef HAVE_IEEEFP_H
23276 #include <ieeefp.h>
23277 #endif
23280 main ()
23282 _sqrtl(0);
23284 return 0;
23286 _ACEOF
23287 rm -f conftest.$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289 (eval $ac_compile) 2>conftest.er1
23290 ac_status=$?
23291 grep -v '^ *+' conftest.er1 >conftest.err
23292 rm -f conftest.er1
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; } &&
23302 { ac_try='test -s conftest.$ac_objext'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; }; then
23308 glibcxx_cv_func__sqrtl_use=yes
23309 else
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 glibcxx_cv_func__sqrtl_use=no
23315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23316 ac_ext=c
23317 ac_cpp='$CPP $CPPFLAGS'
23318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23326 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23327 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23329 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23331 for ac_func in _sqrtl
23333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23334 echo "$as_me:$LINENO: checking for $ac_func" >&5
23335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23336 if eval "test \"\${$as_ac_var+set}\" = set"; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339 if test x$gcc_no_link = xyes; then
23340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23342 { (exit 1); exit 1; }; }
23344 cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h. */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h. */
23350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23352 #define $ac_func innocuous_$ac_func
23354 /* System header to define __stub macros and hopefully few prototypes,
23355 which can conflict with char $ac_func (); below.
23356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23357 <limits.h> exists even on freestanding compilers. */
23359 #ifdef __STDC__
23360 # include <limits.h>
23361 #else
23362 # include <assert.h>
23363 #endif
23365 #undef $ac_func
23367 /* Override any gcc2 internal prototype to avoid an error. */
23368 #ifdef __cplusplus
23369 extern "C"
23371 #endif
23372 /* We use char because int might match the return type of a gcc2
23373 builtin and then its argument prototype would still apply. */
23374 char $ac_func ();
23375 /* The GNU C library defines this for functions which it implements
23376 to always fail with ENOSYS. Some functions are actually named
23377 something starting with __ and the normal name is an alias. */
23378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23379 choke me
23380 #else
23381 char (*f) () = $ac_func;
23382 #endif
23383 #ifdef __cplusplus
23385 #endif
23388 main ()
23390 return f != $ac_func;
23392 return 0;
23394 _ACEOF
23395 rm -f conftest.$ac_objext conftest$ac_exeext
23396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23397 (eval $ac_link) 2>conftest.er1
23398 ac_status=$?
23399 grep -v '^ *+' conftest.er1 >conftest.err
23400 rm -f conftest.er1
23401 cat conftest.err >&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } &&
23404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; } &&
23410 { ac_try='test -s conftest$ac_exeext'
23411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); }; }; then
23416 eval "$as_ac_var=yes"
23417 else
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23421 eval "$as_ac_var=no"
23423 rm -f conftest.err conftest.$ac_objext \
23424 conftest$ac_exeext conftest.$ac_ext
23426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23428 if test `eval echo '${'$as_ac_var'}'` = yes; then
23429 cat >>confdefs.h <<_ACEOF
23430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23431 _ACEOF
23434 done
23441 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23442 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23443 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23444 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23445 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23450 ac_ext=cc
23451 ac_cpp='$CXXCPP $CPPFLAGS'
23452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23456 cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h. */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h. */
23462 #include <math.h>
23464 main ()
23466 sincosl(0, 0, 0);
23468 return 0;
23470 _ACEOF
23471 rm -f conftest.$ac_objext
23472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23473 (eval $ac_compile) 2>conftest.er1
23474 ac_status=$?
23475 grep -v '^ *+' conftest.er1 >conftest.err
23476 rm -f conftest.er1
23477 cat conftest.err >&5
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); } &&
23480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; } &&
23486 { ac_try='test -s conftest.$ac_objext'
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 glibcxx_cv_func_sincosl_use=yes
23493 else
23494 echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23497 glibcxx_cv_func_sincosl_use=no
23499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23500 ac_ext=c
23501 ac_cpp='$CPP $CPPFLAGS'
23502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23510 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23511 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23513 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23515 for ac_func in sincosl
23517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23518 echo "$as_me:$LINENO: checking for $ac_func" >&5
23519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23520 if eval "test \"\${$as_ac_var+set}\" = set"; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23522 else
23523 if test x$gcc_no_link = xyes; then
23524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23526 { (exit 1); exit 1; }; }
23528 cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h. */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h. */
23534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23536 #define $ac_func innocuous_$ac_func
23538 /* System header to define __stub macros and hopefully few prototypes,
23539 which can conflict with char $ac_func (); below.
23540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23541 <limits.h> exists even on freestanding compilers. */
23543 #ifdef __STDC__
23544 # include <limits.h>
23545 #else
23546 # include <assert.h>
23547 #endif
23549 #undef $ac_func
23551 /* Override any gcc2 internal prototype to avoid an error. */
23552 #ifdef __cplusplus
23553 extern "C"
23555 #endif
23556 /* We use char because int might match the return type of a gcc2
23557 builtin and then its argument prototype would still apply. */
23558 char $ac_func ();
23559 /* The GNU C library defines this for functions which it implements
23560 to always fail with ENOSYS. Some functions are actually named
23561 something starting with __ and the normal name is an alias. */
23562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23563 choke me
23564 #else
23565 char (*f) () = $ac_func;
23566 #endif
23567 #ifdef __cplusplus
23569 #endif
23572 main ()
23574 return f != $ac_func;
23576 return 0;
23578 _ACEOF
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23581 (eval $ac_link) 2>conftest.er1
23582 ac_status=$?
23583 grep -v '^ *+' conftest.er1 >conftest.err
23584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } &&
23588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; } &&
23594 { ac_try='test -s conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 eval "$as_ac_var=yes"
23601 else
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 eval "$as_ac_var=no"
23607 rm -f conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
23610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23612 if test `eval echo '${'$as_ac_var'}'` = yes; then
23613 cat >>confdefs.h <<_ACEOF
23614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23615 _ACEOF
23618 done
23620 else
23622 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
23623 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
23624 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
23625 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 else
23631 ac_ext=cc
23632 ac_cpp='$CXXCPP $CPPFLAGS'
23633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23637 cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h. */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 #include <math.h>
23645 main ()
23647 _sincosl(0, 0, 0);
23649 return 0;
23651 _ACEOF
23652 rm -f conftest.$ac_objext
23653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654 (eval $ac_compile) 2>conftest.er1
23655 ac_status=$?
23656 grep -v '^ *+' conftest.er1 >conftest.err
23657 rm -f conftest.er1
23658 cat conftest.err >&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } &&
23661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; } &&
23667 { ac_try='test -s conftest.$ac_objext'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23670 ac_status=$?
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; }; then
23673 glibcxx_cv_func__sincosl_use=yes
23674 else
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23678 glibcxx_cv_func__sincosl_use=no
23680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23681 ac_ext=c
23682 ac_cpp='$CPP $CPPFLAGS'
23683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23691 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
23692 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
23694 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
23696 for ac_func in _sincosl
23698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23699 echo "$as_me:$LINENO: checking for $ac_func" >&5
23700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23701 if eval "test \"\${$as_ac_var+set}\" = set"; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704 if test x$gcc_no_link = xyes; then
23705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23707 { (exit 1); exit 1; }; }
23709 cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h. */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23717 #define $ac_func innocuous_$ac_func
23719 /* System header to define __stub macros and hopefully few prototypes,
23720 which can conflict with char $ac_func (); below.
23721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23722 <limits.h> exists even on freestanding compilers. */
23724 #ifdef __STDC__
23725 # include <limits.h>
23726 #else
23727 # include <assert.h>
23728 #endif
23730 #undef $ac_func
23732 /* Override any gcc2 internal prototype to avoid an error. */
23733 #ifdef __cplusplus
23734 extern "C"
23736 #endif
23737 /* We use char because int might match the return type of a gcc2
23738 builtin and then its argument prototype would still apply. */
23739 char $ac_func ();
23740 /* The GNU C library defines this for functions which it implements
23741 to always fail with ENOSYS. Some functions are actually named
23742 something starting with __ and the normal name is an alias. */
23743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23744 choke me
23745 #else
23746 char (*f) () = $ac_func;
23747 #endif
23748 #ifdef __cplusplus
23750 #endif
23753 main ()
23755 return f != $ac_func;
23757 return 0;
23759 _ACEOF
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23762 (eval $ac_link) 2>conftest.er1
23763 ac_status=$?
23764 grep -v '^ *+' conftest.er1 >conftest.err
23765 rm -f conftest.er1
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } &&
23769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; } &&
23775 { ac_try='test -s conftest$ac_exeext'
23776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777 (eval $ac_try) 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; }; then
23781 eval "$as_ac_var=yes"
23782 else
23783 echo "$as_me: failed program was:" >&5
23784 sed 's/^/| /' conftest.$ac_ext >&5
23786 eval "$as_ac_var=no"
23788 rm -f conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
23791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23793 if test `eval echo '${'$as_ac_var'}'` = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23796 _ACEOF
23799 done
23806 echo "$as_me:$LINENO: checking for finitel declaration" >&5
23807 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
23808 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
23809 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 else
23815 ac_ext=cc
23816 ac_cpp='$CXXCPP $CPPFLAGS'
23817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23821 cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h. */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23827 #include <math.h>
23828 #ifdef HAVE_IEEEFP_H
23829 #include <ieeefp.h>
23830 #endif
23833 main ()
23835 finitel(0);
23837 return 0;
23839 _ACEOF
23840 rm -f conftest.$ac_objext
23841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23842 (eval $ac_compile) 2>conftest.er1
23843 ac_status=$?
23844 grep -v '^ *+' conftest.er1 >conftest.err
23845 rm -f conftest.er1
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } &&
23849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; } &&
23855 { ac_try='test -s conftest.$ac_objext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 glibcxx_cv_func_finitel_use=yes
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 glibcxx_cv_func_finitel_use=no
23868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23869 ac_ext=c
23870 ac_cpp='$CPP $CPPFLAGS'
23871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23879 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
23880 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
23882 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
23884 for ac_func in finitel
23886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23887 echo "$as_me:$LINENO: checking for $ac_func" >&5
23888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23889 if eval "test \"\${$as_ac_var+set}\" = set"; then
23890 echo $ECHO_N "(cached) $ECHO_C" >&6
23891 else
23892 if test x$gcc_no_link = xyes; then
23893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23895 { (exit 1); exit 1; }; }
23897 cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h. */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h. */
23903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23905 #define $ac_func innocuous_$ac_func
23907 /* System header to define __stub macros and hopefully few prototypes,
23908 which can conflict with char $ac_func (); below.
23909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23910 <limits.h> exists even on freestanding compilers. */
23912 #ifdef __STDC__
23913 # include <limits.h>
23914 #else
23915 # include <assert.h>
23916 #endif
23918 #undef $ac_func
23920 /* Override any gcc2 internal prototype to avoid an error. */
23921 #ifdef __cplusplus
23922 extern "C"
23924 #endif
23925 /* We use char because int might match the return type of a gcc2
23926 builtin and then its argument prototype would still apply. */
23927 char $ac_func ();
23928 /* The GNU C library defines this for functions which it implements
23929 to always fail with ENOSYS. Some functions are actually named
23930 something starting with __ and the normal name is an alias. */
23931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23932 choke me
23933 #else
23934 char (*f) () = $ac_func;
23935 #endif
23936 #ifdef __cplusplus
23938 #endif
23941 main ()
23943 return f != $ac_func;
23945 return 0;
23947 _ACEOF
23948 rm -f conftest.$ac_objext conftest$ac_exeext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23950 (eval $ac_link) 2>conftest.er1
23951 ac_status=$?
23952 grep -v '^ *+' conftest.er1 >conftest.err
23953 rm -f conftest.er1
23954 cat conftest.err >&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } &&
23957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; } &&
23963 { ac_try='test -s conftest$ac_exeext'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; }; then
23969 eval "$as_ac_var=yes"
23970 else
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 eval "$as_ac_var=no"
23976 rm -f conftest.err conftest.$ac_objext \
23977 conftest$ac_exeext conftest.$ac_ext
23979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23981 if test `eval echo '${'$as_ac_var'}'` = yes; then
23982 cat >>confdefs.h <<_ACEOF
23983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23984 _ACEOF
23987 done
23989 else
23991 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
23992 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
23993 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
23994 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
24000 ac_ext=cc
24001 ac_cpp='$CXXCPP $CPPFLAGS'
24002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24006 cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h. */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h. */
24012 #include <math.h>
24013 #ifdef HAVE_IEEEFP_H
24014 #include <ieeefp.h>
24015 #endif
24018 main ()
24020 _finitel(0);
24022 return 0;
24024 _ACEOF
24025 rm -f conftest.$ac_objext
24026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24027 (eval $ac_compile) 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } &&
24034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036 (eval $ac_try) 2>&5
24037 ac_status=$?
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; } &&
24040 { ac_try='test -s conftest.$ac_objext'
24041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24042 (eval $ac_try) 2>&5
24043 ac_status=$?
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; }; then
24046 glibcxx_cv_func__finitel_use=yes
24047 else
24048 echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24051 glibcxx_cv_func__finitel_use=no
24053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24054 ac_ext=c
24055 ac_cpp='$CPP $CPPFLAGS'
24056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24064 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24065 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24067 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24069 for ac_func in _finitel
24071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24072 echo "$as_me:$LINENO: checking for $ac_func" >&5
24073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24074 if eval "test \"\${$as_ac_var+set}\" = set"; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24076 else
24077 if test x$gcc_no_link = xyes; then
24078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24080 { (exit 1); exit 1; }; }
24082 cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h. */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24090 #define $ac_func innocuous_$ac_func
24092 /* System header to define __stub macros and hopefully few prototypes,
24093 which can conflict with char $ac_func (); below.
24094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24095 <limits.h> exists even on freestanding compilers. */
24097 #ifdef __STDC__
24098 # include <limits.h>
24099 #else
24100 # include <assert.h>
24101 #endif
24103 #undef $ac_func
24105 /* Override any gcc2 internal prototype to avoid an error. */
24106 #ifdef __cplusplus
24107 extern "C"
24109 #endif
24110 /* We use char because int might match the return type of a gcc2
24111 builtin and then its argument prototype would still apply. */
24112 char $ac_func ();
24113 /* The GNU C library defines this for functions which it implements
24114 to always fail with ENOSYS. Some functions are actually named
24115 something starting with __ and the normal name is an alias. */
24116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24117 choke me
24118 #else
24119 char (*f) () = $ac_func;
24120 #endif
24121 #ifdef __cplusplus
24123 #endif
24126 main ()
24128 return f != $ac_func;
24130 return 0;
24132 _ACEOF
24133 rm -f conftest.$ac_objext conftest$ac_exeext
24134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24135 (eval $ac_link) 2>conftest.er1
24136 ac_status=$?
24137 grep -v '^ *+' conftest.er1 >conftest.err
24138 rm -f conftest.er1
24139 cat conftest.err >&5
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); } &&
24142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); }; } &&
24148 { ac_try='test -s conftest$ac_exeext'
24149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); }; }; then
24154 eval "$as_ac_var=yes"
24155 else
24156 echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24159 eval "$as_ac_var=no"
24161 rm -f conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
24164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24166 if test `eval echo '${'$as_ac_var'}'` = yes; then
24167 cat >>confdefs.h <<_ACEOF
24168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24169 _ACEOF
24172 done
24180 echo "$as_me:$LINENO: checking for _float trig functions" >&5
24181 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24182 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24183 echo $ECHO_N "(cached) $ECHO_C" >&6
24184 else
24188 ac_ext=cc
24189 ac_cpp='$CXXCPP $CPPFLAGS'
24190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24194 cat >conftest.$ac_ext <<_ACEOF
24195 /* confdefs.h. */
24196 _ACEOF
24197 cat confdefs.h >>conftest.$ac_ext
24198 cat >>conftest.$ac_ext <<_ACEOF
24199 /* end confdefs.h. */
24200 #include <math.h>
24202 main ()
24204 `for x in _acosf _asinf _atanf \
24205 _cosf _sinf _tanf \
24206 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24208 return 0;
24210 _ACEOF
24211 rm -f conftest.$ac_objext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24213 (eval $ac_compile) 2>conftest.er1
24214 ac_status=$?
24215 grep -v '^ *+' conftest.er1 >conftest.err
24216 rm -f conftest.er1
24217 cat conftest.err >&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } &&
24220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24223 ac_status=$?
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }; } &&
24226 { ac_try='test -s conftest.$ac_objext'
24227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228 (eval $ac_try) 2>&5
24229 ac_status=$?
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; }; then
24232 glibcxx_cv_func__float_trig_use=yes
24233 else
24234 echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24237 glibcxx_cv_func__float_trig_use=no
24239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24240 ac_ext=c
24241 ac_cpp='$CPP $CPPFLAGS'
24242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24248 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24249 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24250 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24260 for ac_func in _acosf _asinf _atanf \
24261 _cosf _sinf _tanf \
24262 _coshf _sinhf _tanhf
24264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24265 echo "$as_me:$LINENO: checking for $ac_func" >&5
24266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24267 if eval "test \"\${$as_ac_var+set}\" = set"; then
24268 echo $ECHO_N "(cached) $ECHO_C" >&6
24269 else
24270 if test x$gcc_no_link = xyes; then
24271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24273 { (exit 1); exit 1; }; }
24275 cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h. */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h. */
24281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24283 #define $ac_func innocuous_$ac_func
24285 /* System header to define __stub macros and hopefully few prototypes,
24286 which can conflict with char $ac_func (); below.
24287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24288 <limits.h> exists even on freestanding compilers. */
24290 #ifdef __STDC__
24291 # include <limits.h>
24292 #else
24293 # include <assert.h>
24294 #endif
24296 #undef $ac_func
24298 /* Override any gcc2 internal prototype to avoid an error. */
24299 #ifdef __cplusplus
24300 extern "C"
24302 #endif
24303 /* We use char because int might match the return type of a gcc2
24304 builtin and then its argument prototype would still apply. */
24305 char $ac_func ();
24306 /* The GNU C library defines this for functions which it implements
24307 to always fail with ENOSYS. Some functions are actually named
24308 something starting with __ and the normal name is an alias. */
24309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24310 choke me
24311 #else
24312 char (*f) () = $ac_func;
24313 #endif
24314 #ifdef __cplusplus
24316 #endif
24319 main ()
24321 return f != $ac_func;
24323 return 0;
24325 _ACEOF
24326 rm -f conftest.$ac_objext conftest$ac_exeext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24328 (eval $ac_link) 2>conftest.er1
24329 ac_status=$?
24330 grep -v '^ *+' conftest.er1 >conftest.err
24331 rm -f conftest.er1
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest$ac_exeext'
24342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343 (eval $ac_try) 2>&5
24344 ac_status=$?
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 eval "$as_ac_var=yes"
24348 else
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 eval "$as_ac_var=no"
24354 rm -f conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24359 if test `eval echo '${'$as_ac_var'}'` = yes; then
24360 cat >>confdefs.h <<_ACEOF
24361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24362 _ACEOF
24365 done
24370 echo "$as_me:$LINENO: checking for _float round functions" >&5
24371 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24372 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24378 ac_ext=cc
24379 ac_cpp='$CXXCPP $CPPFLAGS'
24380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h. */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 #include <math.h>
24392 main ()
24394 `for x in _ceilf _floorf; do echo "$x (0);"; done`
24396 return 0;
24398 _ACEOF
24399 rm -f conftest.$ac_objext
24400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24401 (eval $ac_compile) 2>conftest.er1
24402 ac_status=$?
24403 grep -v '^ *+' conftest.er1 >conftest.err
24404 rm -f conftest.er1
24405 cat conftest.err >&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } &&
24408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; } &&
24414 { ac_try='test -s conftest.$ac_objext'
24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416 (eval $ac_try) 2>&5
24417 ac_status=$?
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 glibcxx_cv_func__float_round_use=yes
24421 else
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 glibcxx_cv_func__float_round_use=no
24427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24428 ac_ext=c
24429 ac_cpp='$CPP $CPPFLAGS'
24430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24436 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24437 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24438 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24441 for ac_func in _ceilf _floorf
24443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24444 echo "$as_me:$LINENO: checking for $ac_func" >&5
24445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24446 if eval "test \"\${$as_ac_var+set}\" = set"; then
24447 echo $ECHO_N "(cached) $ECHO_C" >&6
24448 else
24449 if test x$gcc_no_link = xyes; then
24450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24452 { (exit 1); exit 1; }; }
24454 cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h. */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h. */
24460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24462 #define $ac_func innocuous_$ac_func
24464 /* System header to define __stub macros and hopefully few prototypes,
24465 which can conflict with char $ac_func (); below.
24466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24467 <limits.h> exists even on freestanding compilers. */
24469 #ifdef __STDC__
24470 # include <limits.h>
24471 #else
24472 # include <assert.h>
24473 #endif
24475 #undef $ac_func
24477 /* Override any gcc2 internal prototype to avoid an error. */
24478 #ifdef __cplusplus
24479 extern "C"
24481 #endif
24482 /* We use char because int might match the return type of a gcc2
24483 builtin and then its argument prototype would still apply. */
24484 char $ac_func ();
24485 /* The GNU C library defines this for functions which it implements
24486 to always fail with ENOSYS. Some functions are actually named
24487 something starting with __ and the normal name is an alias. */
24488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24489 choke me
24490 #else
24491 char (*f) () = $ac_func;
24492 #endif
24493 #ifdef __cplusplus
24495 #endif
24498 main ()
24500 return f != $ac_func;
24502 return 0;
24504 _ACEOF
24505 rm -f conftest.$ac_objext conftest$ac_exeext
24506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24507 (eval $ac_link) 2>conftest.er1
24508 ac_status=$?
24509 grep -v '^ *+' conftest.er1 >conftest.err
24510 rm -f conftest.er1
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } &&
24514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); }; } &&
24520 { ac_try='test -s conftest$ac_exeext'
24521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522 (eval $ac_try) 2>&5
24523 ac_status=$?
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 eval "$as_ac_var=yes"
24527 else
24528 echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24531 eval "$as_ac_var=no"
24533 rm -f conftest.err conftest.$ac_objext \
24534 conftest$ac_exeext conftest.$ac_ext
24536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24538 if test `eval echo '${'$as_ac_var'}'` = yes; then
24539 cat >>confdefs.h <<_ACEOF
24540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24541 _ACEOF
24544 done
24550 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24551 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24552 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24553 echo $ECHO_N "(cached) $ECHO_C" >&6
24554 else
24558 ac_ext=cc
24559 ac_cpp='$CXXCPP $CPPFLAGS'
24560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24564 cat >conftest.$ac_ext <<_ACEOF
24565 /* confdefs.h. */
24566 _ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h. */
24570 #include <math.h>
24572 main ()
24574 `for x in _acosl _asinl _atanl \
24575 _cosl _sinl _tanl \
24576 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24578 return 0;
24580 _ACEOF
24581 rm -f conftest.$ac_objext
24582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24583 (eval $ac_compile) 2>conftest.er1
24584 ac_status=$?
24585 grep -v '^ *+' conftest.er1 >conftest.err
24586 rm -f conftest.er1
24587 cat conftest.err >&5
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } &&
24590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; } &&
24596 { ac_try='test -s conftest.$ac_objext'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; }; then
24602 glibcxx_cv_func__long_double_trig_use=yes
24603 else
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 glibcxx_cv_func__long_double_trig_use=no
24609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24610 ac_ext=c
24611 ac_cpp='$CPP $CPPFLAGS'
24612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24618 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
24619 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
24620 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
24630 for ac_func in _acosl _asinl _atanl \
24631 _cosl _sinl _tanl \
24632 _coshl _sinhl _tanhl
24634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24635 echo "$as_me:$LINENO: checking for $ac_func" >&5
24636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24637 if eval "test \"\${$as_ac_var+set}\" = set"; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 else
24640 if test x$gcc_no_link = xyes; then
24641 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24643 { (exit 1); exit 1; }; }
24645 cat >conftest.$ac_ext <<_ACEOF
24646 /* confdefs.h. */
24647 _ACEOF
24648 cat confdefs.h >>conftest.$ac_ext
24649 cat >>conftest.$ac_ext <<_ACEOF
24650 /* end confdefs.h. */
24651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24653 #define $ac_func innocuous_$ac_func
24655 /* System header to define __stub macros and hopefully few prototypes,
24656 which can conflict with char $ac_func (); below.
24657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24658 <limits.h> exists even on freestanding compilers. */
24660 #ifdef __STDC__
24661 # include <limits.h>
24662 #else
24663 # include <assert.h>
24664 #endif
24666 #undef $ac_func
24668 /* Override any gcc2 internal prototype to avoid an error. */
24669 #ifdef __cplusplus
24670 extern "C"
24672 #endif
24673 /* We use char because int might match the return type of a gcc2
24674 builtin and then its argument prototype would still apply. */
24675 char $ac_func ();
24676 /* The GNU C library defines this for functions which it implements
24677 to always fail with ENOSYS. Some functions are actually named
24678 something starting with __ and the normal name is an alias. */
24679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24680 choke me
24681 #else
24682 char (*f) () = $ac_func;
24683 #endif
24684 #ifdef __cplusplus
24686 #endif
24689 main ()
24691 return f != $ac_func;
24693 return 0;
24695 _ACEOF
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24698 (eval $ac_link) 2>conftest.er1
24699 ac_status=$?
24700 grep -v '^ *+' conftest.er1 >conftest.err
24701 rm -f conftest.er1
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } &&
24705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24707 (eval $ac_try) 2>&5
24708 ac_status=$?
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; } &&
24711 { ac_try='test -s conftest$ac_exeext'
24712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; }; then
24717 eval "$as_ac_var=yes"
24718 else
24719 echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24722 eval "$as_ac_var=no"
24724 rm -f conftest.err conftest.$ac_objext \
24725 conftest$ac_exeext conftest.$ac_ext
24727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24729 if test `eval echo '${'$as_ac_var'}'` = yes; then
24730 cat >>confdefs.h <<_ACEOF
24731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24732 _ACEOF
24735 done
24740 echo "$as_me:$LINENO: checking for _long double round functions" >&5
24741 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
24742 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24748 ac_ext=cc
24749 ac_cpp='$CXXCPP $CPPFLAGS'
24750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24754 cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h. */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h. */
24760 #include <math.h>
24762 main ()
24764 `for x in _ceill _floorl; do echo "$x (0);"; done`
24766 return 0;
24768 _ACEOF
24769 rm -f conftest.$ac_objext
24770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24771 (eval $ac_compile) 2>conftest.er1
24772 ac_status=$?
24773 grep -v '^ *+' conftest.er1 >conftest.err
24774 rm -f conftest.er1
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } &&
24778 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); }; } &&
24784 { ac_try='test -s conftest.$ac_objext'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; }; then
24790 glibcxx_cv_func__long_double_round_use=yes
24791 else
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 glibcxx_cv_func__long_double_round_use=no
24797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24798 ac_ext=c
24799 ac_cpp='$CPP $CPPFLAGS'
24800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24806 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
24807 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
24808 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
24811 for ac_func in _ceill _floorl
24813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24814 echo "$as_me:$LINENO: checking for $ac_func" >&5
24815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24816 if eval "test \"\${$as_ac_var+set}\" = set"; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819 if test x$gcc_no_link = xyes; then
24820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24822 { (exit 1); exit 1; }; }
24824 cat >conftest.$ac_ext <<_ACEOF
24825 /* confdefs.h. */
24826 _ACEOF
24827 cat confdefs.h >>conftest.$ac_ext
24828 cat >>conftest.$ac_ext <<_ACEOF
24829 /* end confdefs.h. */
24830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24832 #define $ac_func innocuous_$ac_func
24834 /* System header to define __stub macros and hopefully few prototypes,
24835 which can conflict with char $ac_func (); below.
24836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24837 <limits.h> exists even on freestanding compilers. */
24839 #ifdef __STDC__
24840 # include <limits.h>
24841 #else
24842 # include <assert.h>
24843 #endif
24845 #undef $ac_func
24847 /* Override any gcc2 internal prototype to avoid an error. */
24848 #ifdef __cplusplus
24849 extern "C"
24851 #endif
24852 /* We use char because int might match the return type of a gcc2
24853 builtin and then its argument prototype would still apply. */
24854 char $ac_func ();
24855 /* The GNU C library defines this for functions which it implements
24856 to always fail with ENOSYS. Some functions are actually named
24857 something starting with __ and the normal name is an alias. */
24858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24859 choke me
24860 #else
24861 char (*f) () = $ac_func;
24862 #endif
24863 #ifdef __cplusplus
24865 #endif
24868 main ()
24870 return f != $ac_func;
24872 return 0;
24874 _ACEOF
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24878 ac_status=$?
24879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest$ac_exeext'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24893 ac_status=$?
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 eval "$as_ac_var=yes"
24897 else
24898 echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 eval "$as_ac_var=no"
24903 rm -f conftest.err conftest.$ac_objext \
24904 conftest$ac_exeext conftest.$ac_ext
24906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24908 if test `eval echo '${'$as_ac_var'}'` = yes; then
24909 cat >>confdefs.h <<_ACEOF
24910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24911 _ACEOF
24914 done
24919 LIBS="$ac_save_LIBS"
24920 CXXFLAGS="$ac_save_CXXFLAGS"
24924 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
24925 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
24926 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
24927 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
24929 else
24933 ac_ext=cc
24934 ac_cpp='$CXXCPP $CPPFLAGS'
24935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24939 cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h. */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 #include <math.h>
24947 main ()
24949 __builtin_abs(0);
24951 return 0;
24953 _ACEOF
24954 rm -f conftest.$ac_objext
24955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24956 (eval $ac_compile) 2>conftest.er1
24957 ac_status=$?
24958 grep -v '^ *+' conftest.er1 >conftest.err
24959 rm -f conftest.er1
24960 cat conftest.err >&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } &&
24963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } &&
24969 { ac_try='test -s conftest.$ac_objext'
24970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24975 glibcxx_cv_func___builtin_abs_use=yes
24976 else
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 glibcxx_cv_func___builtin_abs_use=no
24982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24983 ac_ext=c
24984 ac_cpp='$CPP $CPPFLAGS'
24985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24993 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
24994 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
24995 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
24996 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
24997 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
24998 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
24999 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25001 else
25003 if test x$gcc_no_link = xyes; then
25004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25006 { (exit 1); exit 1; }; }
25008 cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h. */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 #include <math.h>
25016 main ()
25018 __builtin_abs(0);
25020 return 0;
25022 _ACEOF
25023 rm -f conftest.$ac_objext conftest$ac_exeext
25024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25025 (eval $ac_link) 2>conftest.er1
25026 ac_status=$?
25027 grep -v '^ *+' conftest.er1 >conftest.err
25028 rm -f conftest.er1
25029 cat conftest.err >&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } &&
25032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s conftest$ac_exeext'
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044 glibcxx_cv_func___builtin_abs_link=yes
25045 else
25046 echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 glibcxx_cv_func___builtin_abs_link=no
25051 rm -f conftest.err conftest.$ac_objext \
25052 conftest$ac_exeext conftest.$ac_ext
25057 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25058 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25059 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25060 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25061 cat >>confdefs.h <<_ACEOF
25062 #define ${ac_tr_func} 1
25063 _ACEOF
25069 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25070 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25071 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25072 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25073 echo $ECHO_N "(cached) $ECHO_C" >&6
25074 else
25078 ac_ext=cc
25079 ac_cpp='$CXXCPP $CPPFLAGS'
25080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25084 cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h. */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h. */
25090 #include <math.h>
25092 main ()
25094 __builtin_fabsf(0);
25096 return 0;
25098 _ACEOF
25099 rm -f conftest.$ac_objext
25100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25101 (eval $ac_compile) 2>conftest.er1
25102 ac_status=$?
25103 grep -v '^ *+' conftest.er1 >conftest.err
25104 rm -f conftest.er1
25105 cat conftest.err >&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } &&
25108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; } &&
25114 { ac_try='test -s conftest.$ac_objext'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25120 glibcxx_cv_func___builtin_fabsf_use=yes
25121 else
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 glibcxx_cv_func___builtin_fabsf_use=no
25127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25128 ac_ext=c
25129 ac_cpp='$CPP $CPPFLAGS'
25130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25138 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25139 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25140 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25141 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25142 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25143 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25144 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25146 else
25148 if test x$gcc_no_link = xyes; then
25149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25151 { (exit 1); exit 1; }; }
25153 cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h. */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 #include <math.h>
25161 main ()
25163 __builtin_fabsf(0);
25165 return 0;
25167 _ACEOF
25168 rm -f conftest.$ac_objext conftest$ac_exeext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25170 (eval $ac_link) 2>conftest.er1
25171 ac_status=$?
25172 grep -v '^ *+' conftest.er1 >conftest.err
25173 rm -f conftest.er1
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } &&
25177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); }; } &&
25183 { ac_try='test -s conftest$ac_exeext'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; }; then
25189 glibcxx_cv_func___builtin_fabsf_link=yes
25190 else
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25194 glibcxx_cv_func___builtin_fabsf_link=no
25196 rm -f conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
25202 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25203 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25204 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25205 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25206 cat >>confdefs.h <<_ACEOF
25207 #define ${ac_tr_func} 1
25208 _ACEOF
25214 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25215 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25216 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25217 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25218 echo $ECHO_N "(cached) $ECHO_C" >&6
25219 else
25223 ac_ext=cc
25224 ac_cpp='$CXXCPP $CPPFLAGS'
25225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25229 cat >conftest.$ac_ext <<_ACEOF
25230 /* confdefs.h. */
25231 _ACEOF
25232 cat confdefs.h >>conftest.$ac_ext
25233 cat >>conftest.$ac_ext <<_ACEOF
25234 /* end confdefs.h. */
25235 #include <math.h>
25237 main ()
25239 __builtin_fabs(0);
25241 return 0;
25243 _ACEOF
25244 rm -f conftest.$ac_objext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246 (eval $ac_compile) 2>conftest.er1
25247 ac_status=$?
25248 grep -v '^ *+' conftest.er1 >conftest.err
25249 rm -f conftest.er1
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
25253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; } &&
25259 { ac_try='test -s conftest.$ac_objext'
25260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25262 ac_status=$?
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; }; then
25265 glibcxx_cv_func___builtin_fabs_use=yes
25266 else
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25270 glibcxx_cv_func___builtin_fabs_use=no
25272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25273 ac_ext=c
25274 ac_cpp='$CPP $CPPFLAGS'
25275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25283 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25284 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25285 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25286 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25287 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25288 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25289 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25291 else
25293 if test x$gcc_no_link = xyes; then
25294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25296 { (exit 1); exit 1; }; }
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h. */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 #include <math.h>
25306 main ()
25308 __builtin_fabs(0);
25310 return 0;
25312 _ACEOF
25313 rm -f conftest.$ac_objext conftest$ac_exeext
25314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25315 (eval $ac_link) 2>conftest.er1
25316 ac_status=$?
25317 grep -v '^ *+' conftest.er1 >conftest.err
25318 rm -f conftest.er1
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } &&
25322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; } &&
25328 { ac_try='test -s conftest$ac_exeext'
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; }; then
25334 glibcxx_cv_func___builtin_fabs_link=yes
25335 else
25336 echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25339 glibcxx_cv_func___builtin_fabs_link=no
25341 rm -f conftest.err conftest.$ac_objext \
25342 conftest$ac_exeext conftest.$ac_ext
25347 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25348 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25349 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25350 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25351 cat >>confdefs.h <<_ACEOF
25352 #define ${ac_tr_func} 1
25353 _ACEOF
25359 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25360 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25361 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25362 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25364 else
25368 ac_ext=cc
25369 ac_cpp='$CXXCPP $CPPFLAGS'
25370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25374 cat >conftest.$ac_ext <<_ACEOF
25375 /* confdefs.h. */
25376 _ACEOF
25377 cat confdefs.h >>conftest.$ac_ext
25378 cat >>conftest.$ac_ext <<_ACEOF
25379 /* end confdefs.h. */
25380 #include <math.h>
25382 main ()
25384 __builtin_fabsl(0);
25386 return 0;
25388 _ACEOF
25389 rm -f conftest.$ac_objext
25390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25391 (eval $ac_compile) 2>conftest.er1
25392 ac_status=$?
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } &&
25398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest.$ac_objext'
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 glibcxx_cv_func___builtin_fabsl_use=yes
25411 else
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25415 glibcxx_cv_func___builtin_fabsl_use=no
25417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25418 ac_ext=c
25419 ac_cpp='$CPP $CPPFLAGS'
25420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25428 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25429 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25430 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25431 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25432 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25433 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25434 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25436 else
25438 if test x$gcc_no_link = xyes; then
25439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25441 { (exit 1); exit 1; }; }
25443 cat >conftest.$ac_ext <<_ACEOF
25444 /* confdefs.h. */
25445 _ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 #include <math.h>
25451 main ()
25453 __builtin_fabsl(0);
25455 return 0;
25457 _ACEOF
25458 rm -f conftest.$ac_objext conftest$ac_exeext
25459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25460 (eval $ac_link) 2>conftest.er1
25461 ac_status=$?
25462 grep -v '^ *+' conftest.er1 >conftest.err
25463 rm -f conftest.er1
25464 cat conftest.err >&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } &&
25467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469 (eval $ac_try) 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; } &&
25473 { ac_try='test -s conftest$ac_exeext'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; }; then
25479 glibcxx_cv_func___builtin_fabsl_link=yes
25480 else
25481 echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25484 glibcxx_cv_func___builtin_fabsl_link=no
25486 rm -f conftest.err conftest.$ac_objext \
25487 conftest$ac_exeext conftest.$ac_ext
25492 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25493 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25494 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25495 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25496 cat >>confdefs.h <<_ACEOF
25497 #define ${ac_tr_func} 1
25498 _ACEOF
25504 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25505 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25506 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25507 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25513 ac_ext=cc
25514 ac_cpp='$CXXCPP $CPPFLAGS'
25515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25519 cat >conftest.$ac_ext <<_ACEOF
25520 /* confdefs.h. */
25521 _ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25525 #include <math.h>
25527 main ()
25529 __builtin_labs(0);
25531 return 0;
25533 _ACEOF
25534 rm -f conftest.$ac_objext
25535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25536 (eval $ac_compile) 2>conftest.er1
25537 ac_status=$?
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; } &&
25549 { ac_try='test -s conftest.$ac_objext'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25552 ac_status=$?
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; }; then
25555 glibcxx_cv_func___builtin_labs_use=yes
25556 else
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25560 glibcxx_cv_func___builtin_labs_use=no
25562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25563 ac_ext=c
25564 ac_cpp='$CPP $CPPFLAGS'
25565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25573 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25574 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25575 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25576 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25577 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25578 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25579 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581 else
25583 if test x$gcc_no_link = xyes; then
25584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25586 { (exit 1); exit 1; }; }
25588 cat >conftest.$ac_ext <<_ACEOF
25589 /* confdefs.h. */
25590 _ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25594 #include <math.h>
25596 main ()
25598 __builtin_labs(0);
25600 return 0;
25602 _ACEOF
25603 rm -f conftest.$ac_objext conftest$ac_exeext
25604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25605 (eval $ac_link) 2>conftest.er1
25606 ac_status=$?
25607 grep -v '^ *+' conftest.er1 >conftest.err
25608 rm -f conftest.er1
25609 cat conftest.err >&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } &&
25612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; } &&
25618 { ac_try='test -s conftest$ac_exeext'
25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); }; }; then
25624 glibcxx_cv_func___builtin_labs_link=yes
25625 else
25626 echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25629 glibcxx_cv_func___builtin_labs_link=no
25631 rm -f conftest.err conftest.$ac_objext \
25632 conftest$ac_exeext conftest.$ac_ext
25637 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
25638 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
25639 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
25640 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25641 cat >>confdefs.h <<_ACEOF
25642 #define ${ac_tr_func} 1
25643 _ACEOF
25650 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
25651 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
25652 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
25653 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25655 else
25659 ac_ext=cc
25660 ac_cpp='$CXXCPP $CPPFLAGS'
25661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h. */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 #include <math.h>
25673 main ()
25675 __builtin_sqrtf(0);
25677 return 0;
25679 _ACEOF
25680 rm -f conftest.$ac_objext
25681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25682 (eval $ac_compile) 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
25689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691 (eval $ac_try) 2>&5
25692 ac_status=$?
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); }; } &&
25695 { ac_try='test -s conftest.$ac_objext'
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; }; then
25701 glibcxx_cv_func___builtin_sqrtf_use=yes
25702 else
25703 echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25706 glibcxx_cv_func___builtin_sqrtf_use=no
25708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25709 ac_ext=c
25710 ac_cpp='$CPP $CPPFLAGS'
25711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25719 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
25720 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
25721 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
25722 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
25723 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
25724 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
25725 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
25726 echo $ECHO_N "(cached) $ECHO_C" >&6
25727 else
25729 if test x$gcc_no_link = xyes; then
25730 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25732 { (exit 1); exit 1; }; }
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h. */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 #include <math.h>
25742 main ()
25744 __builtin_sqrtf(0);
25746 return 0;
25748 _ACEOF
25749 rm -f conftest.$ac_objext conftest$ac_exeext
25750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25751 (eval $ac_link) 2>conftest.er1
25752 ac_status=$?
25753 grep -v '^ *+' conftest.er1 >conftest.err
25754 rm -f conftest.er1
25755 cat conftest.err >&5
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
25758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; } &&
25764 { ac_try='test -s conftest$ac_exeext'
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; }; then
25770 glibcxx_cv_func___builtin_sqrtf_link=yes
25771 else
25772 echo "$as_me: failed program was:" >&5
25773 sed 's/^/| /' conftest.$ac_ext >&5
25775 glibcxx_cv_func___builtin_sqrtf_link=no
25777 rm -f conftest.err conftest.$ac_objext \
25778 conftest$ac_exeext conftest.$ac_ext
25783 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
25784 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
25785 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
25786 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25787 cat >>confdefs.h <<_ACEOF
25788 #define ${ac_tr_func} 1
25789 _ACEOF
25795 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
25796 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
25797 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
25798 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
25799 echo $ECHO_N "(cached) $ECHO_C" >&6
25800 else
25804 ac_ext=cc
25805 ac_cpp='$CXXCPP $CPPFLAGS'
25806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25810 cat >conftest.$ac_ext <<_ACEOF
25811 /* confdefs.h. */
25812 _ACEOF
25813 cat confdefs.h >>conftest.$ac_ext
25814 cat >>conftest.$ac_ext <<_ACEOF
25815 /* end confdefs.h. */
25816 #include <math.h>
25818 main ()
25820 __builtin_sqrt(0);
25822 return 0;
25824 _ACEOF
25825 rm -f conftest.$ac_objext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25827 (eval $ac_compile) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25836 (eval $ac_try) 2>&5
25837 ac_status=$?
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); }; } &&
25840 { ac_try='test -s conftest.$ac_objext'
25841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); }; }; then
25846 glibcxx_cv_func___builtin_sqrt_use=yes
25847 else
25848 echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25851 glibcxx_cv_func___builtin_sqrt_use=no
25853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25854 ac_ext=c
25855 ac_cpp='$CPP $CPPFLAGS'
25856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25864 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
25865 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
25866 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
25867 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
25868 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
25869 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
25870 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25874 if test x$gcc_no_link = xyes; then
25875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25877 { (exit 1); exit 1; }; }
25879 cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h. */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 #include <math.h>
25887 main ()
25889 __builtin_sqrt(0);
25891 return 0;
25893 _ACEOF
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25896 (eval $ac_link) 2>conftest.er1
25897 ac_status=$?
25898 grep -v '^ *+' conftest.er1 >conftest.err
25899 rm -f conftest.er1
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } &&
25903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); }; } &&
25909 { ac_try='test -s conftest$ac_exeext'
25910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25912 ac_status=$?
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); }; }; then
25915 glibcxx_cv_func___builtin_sqrt_link=yes
25916 else
25917 echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25920 glibcxx_cv_func___builtin_sqrt_link=no
25922 rm -f conftest.err conftest.$ac_objext \
25923 conftest$ac_exeext conftest.$ac_ext
25928 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
25929 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
25930 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
25931 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25932 cat >>confdefs.h <<_ACEOF
25933 #define ${ac_tr_func} 1
25934 _ACEOF
25940 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
25941 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
25942 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
25943 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
25944 echo $ECHO_N "(cached) $ECHO_C" >&6
25945 else
25949 ac_ext=cc
25950 ac_cpp='$CXXCPP $CPPFLAGS'
25951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25955 cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h. */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25961 #include <math.h>
25963 main ()
25965 __builtin_sqrtl(0);
25967 return 0;
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25972 (eval $ac_compile) 2>conftest.er1
25973 ac_status=$?
25974 grep -v '^ *+' conftest.er1 >conftest.err
25975 rm -f conftest.er1
25976 cat conftest.err >&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } &&
25979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25982 ac_status=$?
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; } &&
25985 { ac_try='test -s conftest.$ac_objext'
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; }; then
25991 glibcxx_cv_func___builtin_sqrtl_use=yes
25992 else
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25996 glibcxx_cv_func___builtin_sqrtl_use=no
25998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25999 ac_ext=c
26000 ac_cpp='$CPP $CPPFLAGS'
26001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26009 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26010 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26011 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26012 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26013 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26014 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26015 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 else
26019 if test x$gcc_no_link = xyes; then
26020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26022 { (exit 1); exit 1; }; }
26024 cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h. */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h. */
26030 #include <math.h>
26032 main ()
26034 __builtin_sqrtl(0);
26036 return 0;
26038 _ACEOF
26039 rm -f conftest.$ac_objext conftest$ac_exeext
26040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26041 (eval $ac_link) 2>conftest.er1
26042 ac_status=$?
26043 grep -v '^ *+' conftest.er1 >conftest.err
26044 rm -f conftest.er1
26045 cat conftest.err >&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } &&
26048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest$ac_exeext'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060 glibcxx_cv_func___builtin_sqrtl_link=yes
26061 else
26062 echo "$as_me: failed program was:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 glibcxx_cv_func___builtin_sqrtl_link=no
26067 rm -f conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
26073 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26074 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26075 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26076 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26077 cat >>confdefs.h <<_ACEOF
26078 #define ${ac_tr_func} 1
26079 _ACEOF
26086 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26087 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26088 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26089 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 else
26095 ac_ext=cc
26096 ac_cpp='$CXXCPP $CPPFLAGS'
26097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26101 cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h. */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26107 #include <math.h>
26109 main ()
26111 __builtin_sinf(0);
26113 return 0;
26115 _ACEOF
26116 rm -f conftest.$ac_objext
26117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118 (eval $ac_compile) 2>conftest.er1
26119 ac_status=$?
26120 grep -v '^ *+' conftest.er1 >conftest.err
26121 rm -f conftest.er1
26122 cat conftest.err >&5
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); } &&
26125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 glibcxx_cv_func___builtin_sinf_use=yes
26138 else
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 glibcxx_cv_func___builtin_sinf_use=no
26144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26145 ac_ext=c
26146 ac_cpp='$CPP $CPPFLAGS'
26147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26155 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26156 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26157 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26158 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26159 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26160 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26161 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26162 echo $ECHO_N "(cached) $ECHO_C" >&6
26163 else
26165 if test x$gcc_no_link = xyes; then
26166 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26168 { (exit 1); exit 1; }; }
26170 cat >conftest.$ac_ext <<_ACEOF
26171 /* confdefs.h. */
26172 _ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h. */
26176 #include <math.h>
26178 main ()
26180 __builtin_sinf(0);
26182 return 0;
26184 _ACEOF
26185 rm -f conftest.$ac_objext conftest$ac_exeext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26187 (eval $ac_link) 2>conftest.er1
26188 ac_status=$?
26189 grep -v '^ *+' conftest.er1 >conftest.err
26190 rm -f conftest.er1
26191 cat conftest.err >&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
26194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; } &&
26200 { ac_try='test -s conftest$ac_exeext'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26203 ac_status=$?
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; }; then
26206 glibcxx_cv_func___builtin_sinf_link=yes
26207 else
26208 echo "$as_me: failed program was:" >&5
26209 sed 's/^/| /' conftest.$ac_ext >&5
26211 glibcxx_cv_func___builtin_sinf_link=no
26213 rm -f conftest.err conftest.$ac_objext \
26214 conftest$ac_exeext conftest.$ac_ext
26219 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26220 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26221 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26222 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26223 cat >>confdefs.h <<_ACEOF
26224 #define ${ac_tr_func} 1
26225 _ACEOF
26231 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26232 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26233 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26234 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26236 else
26240 ac_ext=cc
26241 ac_cpp='$CXXCPP $CPPFLAGS'
26242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26246 cat >conftest.$ac_ext <<_ACEOF
26247 /* confdefs.h. */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h. */
26252 #include <math.h>
26254 main ()
26256 __builtin_sin(0);
26258 return 0;
26260 _ACEOF
26261 rm -f conftest.$ac_objext
26262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26263 (eval $ac_compile) 2>conftest.er1
26264 ac_status=$?
26265 grep -v '^ *+' conftest.er1 >conftest.err
26266 rm -f conftest.er1
26267 cat conftest.err >&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } &&
26270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; } &&
26276 { ac_try='test -s conftest.$ac_objext'
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; }; then
26282 glibcxx_cv_func___builtin_sin_use=yes
26283 else
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 glibcxx_cv_func___builtin_sin_use=no
26289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26290 ac_ext=c
26291 ac_cpp='$CPP $CPPFLAGS'
26292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26300 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26301 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26302 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26303 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26304 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26305 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26306 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 else
26310 if test x$gcc_no_link = xyes; then
26311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26313 { (exit 1); exit 1; }; }
26315 cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h. */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h. */
26321 #include <math.h>
26323 main ()
26325 __builtin_sin(0);
26327 return 0;
26329 _ACEOF
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26332 (eval $ac_link) 2>conftest.er1
26333 ac_status=$?
26334 grep -v '^ *+' conftest.er1 >conftest.err
26335 rm -f conftest.er1
26336 cat conftest.err >&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); } &&
26339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); }; } &&
26345 { ac_try='test -s conftest$ac_exeext'
26346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); }; }; then
26351 glibcxx_cv_func___builtin_sin_link=yes
26352 else
26353 echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26356 glibcxx_cv_func___builtin_sin_link=no
26358 rm -f conftest.err conftest.$ac_objext \
26359 conftest$ac_exeext conftest.$ac_ext
26364 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26365 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26366 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26367 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26368 cat >>confdefs.h <<_ACEOF
26369 #define ${ac_tr_func} 1
26370 _ACEOF
26376 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26377 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26378 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26379 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26381 else
26385 ac_ext=cc
26386 ac_cpp='$CXXCPP $CPPFLAGS'
26387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26391 cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h. */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397 #include <math.h>
26399 main ()
26401 __builtin_sinl(0);
26403 return 0;
26405 _ACEOF
26406 rm -f conftest.$ac_objext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408 (eval $ac_compile) 2>conftest.er1
26409 ac_status=$?
26410 grep -v '^ *+' conftest.er1 >conftest.err
26411 rm -f conftest.er1
26412 cat conftest.err >&5
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
26415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); }; } &&
26421 { ac_try='test -s conftest.$ac_objext'
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; }; then
26427 glibcxx_cv_func___builtin_sinl_use=yes
26428 else
26429 echo "$as_me: failed program was:" >&5
26430 sed 's/^/| /' conftest.$ac_ext >&5
26432 glibcxx_cv_func___builtin_sinl_use=no
26434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26435 ac_ext=c
26436 ac_cpp='$CPP $CPPFLAGS'
26437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26445 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26446 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26447 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26448 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26449 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26450 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26451 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26453 else
26455 if test x$gcc_no_link = xyes; then
26456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26458 { (exit 1); exit 1; }; }
26460 cat >conftest.$ac_ext <<_ACEOF
26461 /* confdefs.h. */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h. */
26466 #include <math.h>
26468 main ()
26470 __builtin_sinl(0);
26472 return 0;
26474 _ACEOF
26475 rm -f conftest.$ac_objext conftest$ac_exeext
26476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26477 (eval $ac_link) 2>conftest.er1
26478 ac_status=$?
26479 grep -v '^ *+' conftest.er1 >conftest.err
26480 rm -f conftest.er1
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
26484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26486 (eval $ac_try) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); }; } &&
26490 { ac_try='test -s conftest$ac_exeext'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; }; then
26496 glibcxx_cv_func___builtin_sinl_link=yes
26497 else
26498 echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26501 glibcxx_cv_func___builtin_sinl_link=no
26503 rm -f conftest.err conftest.$ac_objext \
26504 conftest$ac_exeext conftest.$ac_ext
26509 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26510 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26511 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26512 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26513 cat >>confdefs.h <<_ACEOF
26514 #define ${ac_tr_func} 1
26515 _ACEOF
26522 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26523 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26524 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26525 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26526 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 else
26531 ac_ext=cc
26532 ac_cpp='$CXXCPP $CPPFLAGS'
26533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h. */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 #include <math.h>
26545 main ()
26547 __builtin_cosf(0);
26549 return 0;
26551 _ACEOF
26552 rm -f conftest.$ac_objext
26553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26554 (eval $ac_compile) 2>conftest.er1
26555 ac_status=$?
26556 grep -v '^ *+' conftest.er1 >conftest.err
26557 rm -f conftest.er1
26558 cat conftest.err >&5
26559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } &&
26561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563 (eval $ac_try) 2>&5
26564 ac_status=$?
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; } &&
26567 { ac_try='test -s conftest.$ac_objext'
26568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569 (eval $ac_try) 2>&5
26570 ac_status=$?
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); }; }; then
26573 glibcxx_cv_func___builtin_cosf_use=yes
26574 else
26575 echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26578 glibcxx_cv_func___builtin_cosf_use=no
26580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26581 ac_ext=c
26582 ac_cpp='$CPP $CPPFLAGS'
26583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26591 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
26592 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
26593 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
26594 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
26595 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
26596 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
26597 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26599 else
26601 if test x$gcc_no_link = xyes; then
26602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26604 { (exit 1); exit 1; }; }
26606 cat >conftest.$ac_ext <<_ACEOF
26607 /* confdefs.h. */
26608 _ACEOF
26609 cat confdefs.h >>conftest.$ac_ext
26610 cat >>conftest.$ac_ext <<_ACEOF
26611 /* end confdefs.h. */
26612 #include <math.h>
26614 main ()
26616 __builtin_cosf(0);
26618 return 0;
26620 _ACEOF
26621 rm -f conftest.$ac_objext conftest$ac_exeext
26622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26623 (eval $ac_link) 2>conftest.er1
26624 ac_status=$?
26625 grep -v '^ *+' conftest.er1 >conftest.err
26626 rm -f conftest.er1
26627 cat conftest.err >&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } &&
26630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; } &&
26636 { ac_try='test -s conftest$ac_exeext'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; }; then
26642 glibcxx_cv_func___builtin_cosf_link=yes
26643 else
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26647 glibcxx_cv_func___builtin_cosf_link=no
26649 rm -f conftest.err conftest.$ac_objext \
26650 conftest$ac_exeext conftest.$ac_ext
26655 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
26656 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
26657 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
26658 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26659 cat >>confdefs.h <<_ACEOF
26660 #define ${ac_tr_func} 1
26661 _ACEOF
26667 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
26668 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
26669 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
26670 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
26671 echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26676 ac_ext=cc
26677 ac_cpp='$CXXCPP $CPPFLAGS'
26678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26682 cat >conftest.$ac_ext <<_ACEOF
26683 /* confdefs.h. */
26684 _ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h. */
26688 #include <math.h>
26690 main ()
26692 __builtin_cos(0);
26694 return 0;
26696 _ACEOF
26697 rm -f conftest.$ac_objext
26698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26699 (eval $ac_compile) 2>conftest.er1
26700 ac_status=$?
26701 grep -v '^ *+' conftest.er1 >conftest.err
26702 rm -f conftest.er1
26703 cat conftest.err >&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } &&
26706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); }; } &&
26712 { ac_try='test -s conftest.$ac_objext'
26713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); }; }; then
26718 glibcxx_cv_func___builtin_cos_use=yes
26719 else
26720 echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26723 glibcxx_cv_func___builtin_cos_use=no
26725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26726 ac_ext=c
26727 ac_cpp='$CPP $CPPFLAGS'
26728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26736 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
26737 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
26738 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
26739 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
26740 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
26741 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
26742 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26746 if test x$gcc_no_link = xyes; then
26747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26749 { (exit 1); exit 1; }; }
26751 cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h. */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 #include <math.h>
26759 main ()
26761 __builtin_cos(0);
26763 return 0;
26765 _ACEOF
26766 rm -f conftest.$ac_objext conftest$ac_exeext
26767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26768 (eval $ac_link) 2>conftest.er1
26769 ac_status=$?
26770 grep -v '^ *+' conftest.er1 >conftest.err
26771 rm -f conftest.er1
26772 cat conftest.err >&5
26773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774 (exit $ac_status); } &&
26775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777 (eval $ac_try) 2>&5
26778 ac_status=$?
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); }; } &&
26781 { ac_try='test -s conftest$ac_exeext'
26782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783 (eval $ac_try) 2>&5
26784 ac_status=$?
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); }; }; then
26787 glibcxx_cv_func___builtin_cos_link=yes
26788 else
26789 echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26792 glibcxx_cv_func___builtin_cos_link=no
26794 rm -f conftest.err conftest.$ac_objext \
26795 conftest$ac_exeext conftest.$ac_ext
26800 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
26801 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
26802 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
26803 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26804 cat >>confdefs.h <<_ACEOF
26805 #define ${ac_tr_func} 1
26806 _ACEOF
26812 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
26813 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
26814 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
26815 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
26816 echo $ECHO_N "(cached) $ECHO_C" >&6
26817 else
26821 ac_ext=cc
26822 ac_cpp='$CXXCPP $CPPFLAGS'
26823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26827 cat >conftest.$ac_ext <<_ACEOF
26828 /* confdefs.h. */
26829 _ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h. */
26833 #include <math.h>
26835 main ()
26837 __builtin_cosl(0);
26839 return 0;
26841 _ACEOF
26842 rm -f conftest.$ac_objext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26844 (eval $ac_compile) 2>conftest.er1
26845 ac_status=$?
26846 grep -v '^ *+' conftest.er1 >conftest.err
26847 rm -f conftest.er1
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } &&
26851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26863 glibcxx_cv_func___builtin_cosl_use=yes
26864 else
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26868 glibcxx_cv_func___builtin_cosl_use=no
26870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26871 ac_ext=c
26872 ac_cpp='$CPP $CPPFLAGS'
26873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26881 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
26882 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
26883 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
26884 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
26885 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
26886 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
26887 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
26889 else
26891 if test x$gcc_no_link = xyes; then
26892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26894 { (exit 1); exit 1; }; }
26896 cat >conftest.$ac_ext <<_ACEOF
26897 /* confdefs.h. */
26898 _ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h. */
26902 #include <math.h>
26904 main ()
26906 __builtin_cosl(0);
26908 return 0;
26910 _ACEOF
26911 rm -f conftest.$ac_objext conftest$ac_exeext
26912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26913 (eval $ac_link) 2>conftest.er1
26914 ac_status=$?
26915 grep -v '^ *+' conftest.er1 >conftest.err
26916 rm -f conftest.er1
26917 cat conftest.err >&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } &&
26920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; } &&
26926 { ac_try='test -s conftest$ac_exeext'
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26932 glibcxx_cv_func___builtin_cosl_link=yes
26933 else
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 glibcxx_cv_func___builtin_cosl_link=no
26939 rm -f conftest.err conftest.$ac_objext \
26940 conftest$ac_exeext conftest.$ac_ext
26945 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
26946 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
26947 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
26948 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26949 cat >>confdefs.h <<_ACEOF
26950 #define ${ac_tr_func} 1
26951 _ACEOF
26957 dummyvar=no
26958 if test x$dummyvar = x"yes"; then
26959 cat >>confdefs.h <<\_ACEOF
26960 #define HAVE___BUILTIN_ABS 1
26961 _ACEOF
26963 cat >>confdefs.h <<\_ACEOF
26964 #define HAVE___BUILTIN_LABS 1
26965 _ACEOF
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE___BUILTIN_COS 1
26969 _ACEOF
26971 cat >>confdefs.h <<\_ACEOF
26972 #define HAVE___BUILTIN_COSF 1
26973 _ACEOF
26975 cat >>confdefs.h <<\_ACEOF
26976 #define HAVE___BUILTIN_COSL 1
26977 _ACEOF
26979 cat >>confdefs.h <<\_ACEOF
26980 #define HAVE___BUILTIN_FABS 1
26981 _ACEOF
26983 cat >>confdefs.h <<\_ACEOF
26984 #define HAVE___BUILTIN_FABSF 1
26985 _ACEOF
26987 cat >>confdefs.h <<\_ACEOF
26988 #define HAVE___BUILTIN_FABSL 1
26989 _ACEOF
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE___BUILTIN_SIN 1
26993 _ACEOF
26995 cat >>confdefs.h <<\_ACEOF
26996 #define HAVE___BUILTIN_SINF 1
26997 _ACEOF
26999 cat >>confdefs.h <<\_ACEOF
27000 #define HAVE___BUILTIN_SINL 1
27001 _ACEOF
27003 cat >>confdefs.h <<\_ACEOF
27004 #define HAVE___BUILTIN_SQRT 1
27005 _ACEOF
27007 cat >>confdefs.h <<\_ACEOF
27008 #define HAVE___BUILTIN_SQRTF 1
27009 _ACEOF
27011 cat >>confdefs.h <<\_ACEOF
27012 #define HAVE___BUILTIN_SQRTL 1
27013 _ACEOF
27019 echo "$as_me:$LINENO: checking for main in -lm" >&5
27020 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27021 if test "${ac_cv_lib_m_main+set}" = set; then
27022 echo $ECHO_N "(cached) $ECHO_C" >&6
27023 else
27024 ac_check_lib_save_LIBS=$LIBS
27025 LIBS="-lm $LIBS"
27026 if test x$gcc_no_link = xyes; then
27027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27029 { (exit 1); exit 1; }; }
27031 cat >conftest.$ac_ext <<_ACEOF
27032 /* confdefs.h. */
27033 _ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h. */
27040 main ()
27042 main ();
27044 return 0;
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27049 (eval $ac_link) 2>conftest.er1
27050 ac_status=$?
27051 grep -v '^ *+' conftest.er1 >conftest.err
27052 rm -f conftest.er1
27053 cat conftest.err >&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); } &&
27056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; } &&
27062 { ac_try='test -s conftest$ac_exeext'
27063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; }; then
27068 ac_cv_lib_m_main=yes
27069 else
27070 echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 ac_cv_lib_m_main=no
27075 rm -f conftest.err conftest.$ac_objext \
27076 conftest$ac_exeext conftest.$ac_ext
27077 LIBS=$ac_check_lib_save_LIBS
27079 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27080 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27081 if test $ac_cv_lib_m_main = yes; then
27082 cat >>confdefs.h <<_ACEOF
27083 #define HAVE_LIBM 1
27084 _ACEOF
27086 LIBS="-lm $LIBS"
27092 for ac_func in nan copysignf
27094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27095 echo "$as_me:$LINENO: checking for $ac_func" >&5
27096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27097 if eval "test \"\${$as_ac_var+set}\" = set"; then
27098 echo $ECHO_N "(cached) $ECHO_C" >&6
27099 else
27100 if test x$gcc_no_link = xyes; then
27101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27103 { (exit 1); exit 1; }; }
27105 cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h. */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27113 #define $ac_func innocuous_$ac_func
27115 /* System header to define __stub macros and hopefully few prototypes,
27116 which can conflict with char $ac_func (); below.
27117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27118 <limits.h> exists even on freestanding compilers. */
27120 #ifdef __STDC__
27121 # include <limits.h>
27122 #else
27123 # include <assert.h>
27124 #endif
27126 #undef $ac_func
27128 /* Override any gcc2 internal prototype to avoid an error. */
27129 #ifdef __cplusplus
27130 extern "C"
27132 #endif
27133 /* We use char because int might match the return type of a gcc2
27134 builtin and then its argument prototype would still apply. */
27135 char $ac_func ();
27136 /* The GNU C library defines this for functions which it implements
27137 to always fail with ENOSYS. Some functions are actually named
27138 something starting with __ and the normal name is an alias. */
27139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27140 choke me
27141 #else
27142 char (*f) () = $ac_func;
27143 #endif
27144 #ifdef __cplusplus
27146 #endif
27149 main ()
27151 return f != $ac_func;
27153 return 0;
27155 _ACEOF
27156 rm -f conftest.$ac_objext conftest$ac_exeext
27157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27158 (eval $ac_link) 2>conftest.er1
27159 ac_status=$?
27160 grep -v '^ *+' conftest.er1 >conftest.err
27161 rm -f conftest.er1
27162 cat conftest.err >&5
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); } &&
27165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; } &&
27171 { ac_try='test -s conftest$ac_exeext'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27174 ac_status=$?
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; }; then
27177 eval "$as_ac_var=yes"
27178 else
27179 echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27182 eval "$as_ac_var=no"
27184 rm -f conftest.err conftest.$ac_objext \
27185 conftest$ac_exeext conftest.$ac_ext
27187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27189 if test `eval echo '${'$as_ac_var'}'` = yes; then
27190 cat >>confdefs.h <<_ACEOF
27191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27192 _ACEOF
27194 else
27195 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27197 done
27201 for ac_func in __signbit
27203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27204 echo "$as_me:$LINENO: checking for $ac_func" >&5
27205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27206 if eval "test \"\${$as_ac_var+set}\" = set"; then
27207 echo $ECHO_N "(cached) $ECHO_C" >&6
27208 else
27209 if test x$gcc_no_link = xyes; then
27210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27212 { (exit 1); exit 1; }; }
27214 cat >conftest.$ac_ext <<_ACEOF
27215 /* confdefs.h. */
27216 _ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h. */
27220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27222 #define $ac_func innocuous_$ac_func
27224 /* System header to define __stub macros and hopefully few prototypes,
27225 which can conflict with char $ac_func (); below.
27226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27227 <limits.h> exists even on freestanding compilers. */
27229 #ifdef __STDC__
27230 # include <limits.h>
27231 #else
27232 # include <assert.h>
27233 #endif
27235 #undef $ac_func
27237 /* Override any gcc2 internal prototype to avoid an error. */
27238 #ifdef __cplusplus
27239 extern "C"
27241 #endif
27242 /* We use char because int might match the return type of a gcc2
27243 builtin and then its argument prototype would still apply. */
27244 char $ac_func ();
27245 /* The GNU C library defines this for functions which it implements
27246 to always fail with ENOSYS. Some functions are actually named
27247 something starting with __ and the normal name is an alias. */
27248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27249 choke me
27250 #else
27251 char (*f) () = $ac_func;
27252 #endif
27253 #ifdef __cplusplus
27255 #endif
27258 main ()
27260 return f != $ac_func;
27262 return 0;
27264 _ACEOF
27265 rm -f conftest.$ac_objext conftest$ac_exeext
27266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27267 (eval $ac_link) 2>conftest.er1
27268 ac_status=$?
27269 grep -v '^ *+' conftest.er1 >conftest.err
27270 rm -f conftest.er1
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } &&
27274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27276 (eval $ac_try) 2>&5
27277 ac_status=$?
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); }; } &&
27280 { ac_try='test -s conftest$ac_exeext'
27281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27282 (eval $ac_try) 2>&5
27283 ac_status=$?
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); }; }; then
27286 eval "$as_ac_var=yes"
27287 else
27288 echo "$as_me: failed program was:" >&5
27289 sed 's/^/| /' conftest.$ac_ext >&5
27291 eval "$as_ac_var=no"
27293 rm -f conftest.err conftest.$ac_objext \
27294 conftest$ac_exeext conftest.$ac_ext
27296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27298 if test `eval echo '${'$as_ac_var'}'` = yes; then
27299 cat >>confdefs.h <<_ACEOF
27300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27301 _ACEOF
27303 else
27304 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27306 done
27309 for ac_func in __signbitf
27311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27312 echo "$as_me:$LINENO: checking for $ac_func" >&5
27313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27314 if eval "test \"\${$as_ac_var+set}\" = set"; then
27315 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 else
27317 if test x$gcc_no_link = xyes; then
27318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27320 { (exit 1); exit 1; }; }
27322 cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h. */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27330 #define $ac_func innocuous_$ac_func
27332 /* System header to define __stub macros and hopefully few prototypes,
27333 which can conflict with char $ac_func (); below.
27334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27335 <limits.h> exists even on freestanding compilers. */
27337 #ifdef __STDC__
27338 # include <limits.h>
27339 #else
27340 # include <assert.h>
27341 #endif
27343 #undef $ac_func
27345 /* Override any gcc2 internal prototype to avoid an error. */
27346 #ifdef __cplusplus
27347 extern "C"
27349 #endif
27350 /* We use char because int might match the return type of a gcc2
27351 builtin and then its argument prototype would still apply. */
27352 char $ac_func ();
27353 /* The GNU C library defines this for functions which it implements
27354 to always fail with ENOSYS. Some functions are actually named
27355 something starting with __ and the normal name is an alias. */
27356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27357 choke me
27358 #else
27359 char (*f) () = $ac_func;
27360 #endif
27361 #ifdef __cplusplus
27363 #endif
27366 main ()
27368 return f != $ac_func;
27370 return 0;
27372 _ACEOF
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27375 (eval $ac_link) 2>conftest.er1
27376 ac_status=$?
27377 grep -v '^ *+' conftest.er1 >conftest.err
27378 rm -f conftest.er1
27379 cat conftest.err >&5
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); } &&
27382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384 (eval $ac_try) 2>&5
27385 ac_status=$?
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest$ac_exeext'
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; }; then
27394 eval "$as_ac_var=yes"
27395 else
27396 echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27399 eval "$as_ac_var=no"
27401 rm -f conftest.err conftest.$ac_objext \
27402 conftest$ac_exeext conftest.$ac_ext
27404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27406 if test `eval echo '${'$as_ac_var'}'` = yes; then
27407 cat >>confdefs.h <<_ACEOF
27408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27409 _ACEOF
27411 else
27412 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27414 done
27417 if test x$ac_cv_func_copysignl = x"yes"; then
27419 for ac_func in __signbitl
27421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27422 echo "$as_me:$LINENO: checking for $ac_func" >&5
27423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27424 if eval "test \"\${$as_ac_var+set}\" = set"; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427 if test x$gcc_no_link = xyes; then
27428 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27430 { (exit 1); exit 1; }; }
27432 cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h. */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27440 #define $ac_func innocuous_$ac_func
27442 /* System header to define __stub macros and hopefully few prototypes,
27443 which can conflict with char $ac_func (); below.
27444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27445 <limits.h> exists even on freestanding compilers. */
27447 #ifdef __STDC__
27448 # include <limits.h>
27449 #else
27450 # include <assert.h>
27451 #endif
27453 #undef $ac_func
27455 /* Override any gcc2 internal prototype to avoid an error. */
27456 #ifdef __cplusplus
27457 extern "C"
27459 #endif
27460 /* We use char because int might match the return type of a gcc2
27461 builtin and then its argument prototype would still apply. */
27462 char $ac_func ();
27463 /* The GNU C library defines this for functions which it implements
27464 to always fail with ENOSYS. Some functions are actually named
27465 something starting with __ and the normal name is an alias. */
27466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27467 choke me
27468 #else
27469 char (*f) () = $ac_func;
27470 #endif
27471 #ifdef __cplusplus
27473 #endif
27476 main ()
27478 return f != $ac_func;
27480 return 0;
27482 _ACEOF
27483 rm -f conftest.$ac_objext conftest$ac_exeext
27484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27485 (eval $ac_link) 2>conftest.er1
27486 ac_status=$?
27487 grep -v '^ *+' conftest.er1 >conftest.err
27488 rm -f conftest.er1
27489 cat conftest.err >&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } &&
27492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; } &&
27498 { ac_try='test -s conftest$ac_exeext'
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27501 ac_status=$?
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; }; then
27504 eval "$as_ac_var=yes"
27505 else
27506 echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27509 eval "$as_ac_var=no"
27511 rm -f conftest.err conftest.$ac_objext \
27512 conftest$ac_exeext conftest.$ac_ext
27514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27516 if test `eval echo '${'$as_ac_var'}'` = yes; then
27517 cat >>confdefs.h <<_ACEOF
27518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27519 _ACEOF
27521 else
27522 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27524 done
27528 # XXX Review this. Nothing uses it.
27529 if test -n "$LIBMATHOBJS"; then
27530 need_libmath=yes
27535 # Test wchar.h for mbstate_t, which is needed for char_traits and
27536 # others even if wchar_t support is not on.
27537 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27538 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27539 cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h. */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h. */
27545 #include <wchar.h>
27547 main ()
27549 mbstate_t teststate;
27551 return 0;
27553 _ACEOF
27554 rm -f conftest.$ac_objext
27555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27556 (eval $ac_compile) 2>conftest.er1
27557 ac_status=$?
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
27563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest.$ac_objext'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 have_mbstate_t=yes
27576 else
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 have_mbstate_t=no
27582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27583 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27584 echo "${ECHO_T}$have_mbstate_t" >&6
27585 if test x"$have_mbstate_t" = xyes; then
27586 cat >>confdefs.h <<\_ACEOF
27587 #define HAVE_MBSTATE_T 1
27588 _ACEOF
27592 # Sanity check for existence of ISO C99 headers for extended encoding.
27594 for ac_header in wchar.h
27596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27598 echo "$as_me:$LINENO: checking for $ac_header" >&5
27599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27605 else
27606 # Is the header compilable?
27607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27609 cat >conftest.$ac_ext <<_ACEOF
27610 /* confdefs.h. */
27611 _ACEOF
27612 cat confdefs.h >>conftest.$ac_ext
27613 cat >>conftest.$ac_ext <<_ACEOF
27614 /* end confdefs.h. */
27615 $ac_includes_default
27616 #include <$ac_header>
27617 _ACEOF
27618 rm -f conftest.$ac_objext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27620 (eval $ac_compile) 2>conftest.er1
27621 ac_status=$?
27622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; } &&
27633 { ac_try='test -s conftest.$ac_objext'
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 ac_header_compiler=yes
27640 else
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 ac_header_compiler=no
27646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27648 echo "${ECHO_T}$ac_header_compiler" >&6
27650 # Is the header present?
27651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27653 cat >conftest.$ac_ext <<_ACEOF
27654 /* confdefs.h. */
27655 _ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27659 #include <$ac_header>
27660 _ACEOF
27661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27663 ac_status=$?
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } >/dev/null; then
27669 if test -s conftest.err; then
27670 ac_cpp_err=$ac_c_preproc_warn_flag
27671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27672 else
27673 ac_cpp_err=
27675 else
27676 ac_cpp_err=yes
27678 if test -z "$ac_cpp_err"; then
27679 ac_header_preproc=yes
27680 else
27681 echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27684 ac_header_preproc=no
27686 rm -f conftest.err conftest.$ac_ext
27687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27688 echo "${ECHO_T}$ac_header_preproc" >&6
27690 # So? What about this header?
27691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27692 yes:no: )
27693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27697 ac_header_preproc=yes
27699 no:yes:* )
27700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27713 cat <<\_ASBOX
27714 ## ----------------------------------------- ##
27715 ## Report this to the package-unused lists. ##
27716 ## ----------------------------------------- ##
27717 _ASBOX
27719 sed "s/^/$as_me: WARNING: /" >&2
27721 esac
27722 echo "$as_me:$LINENO: checking for $ac_header" >&5
27723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27726 else
27727 eval "$as_ac_Header=\$ac_header_preproc"
27729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27734 cat >>confdefs.h <<_ACEOF
27735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27736 _ACEOF
27737 ac_has_wchar_h=yes
27738 else
27739 ac_has_wchar_h=no
27742 done
27745 for ac_header in wctype.h
27747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27749 echo "$as_me:$LINENO: checking for $ac_header" >&5
27750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27752 echo $ECHO_N "(cached) $ECHO_C" >&6
27754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27756 else
27757 # Is the header compilable?
27758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27760 cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h. */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766 $ac_includes_default
27767 #include <$ac_header>
27768 _ACEOF
27769 rm -f conftest.$ac_objext
27770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27771 (eval $ac_compile) 2>conftest.er1
27772 ac_status=$?
27773 grep -v '^ *+' conftest.er1 >conftest.err
27774 rm -f conftest.er1
27775 cat conftest.err >&5
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); } &&
27778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; } &&
27784 { ac_try='test -s conftest.$ac_objext'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27787 ac_status=$?
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; }; then
27790 ac_header_compiler=yes
27791 else
27792 echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27795 ac_header_compiler=no
27797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27799 echo "${ECHO_T}$ac_header_compiler" >&6
27801 # Is the header present?
27802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h. */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 #include <$ac_header>
27811 _ACEOF
27812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27814 ac_status=$?
27815 grep -v '^ *+' conftest.er1 >conftest.err
27816 rm -f conftest.er1
27817 cat conftest.err >&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } >/dev/null; then
27820 if test -s conftest.err; then
27821 ac_cpp_err=$ac_c_preproc_warn_flag
27822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27823 else
27824 ac_cpp_err=
27826 else
27827 ac_cpp_err=yes
27829 if test -z "$ac_cpp_err"; then
27830 ac_header_preproc=yes
27831 else
27832 echo "$as_me: failed program was:" >&5
27833 sed 's/^/| /' conftest.$ac_ext >&5
27835 ac_header_preproc=no
27837 rm -f conftest.err conftest.$ac_ext
27838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27839 echo "${ECHO_T}$ac_header_preproc" >&6
27841 # So? What about this header?
27842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27843 yes:no: )
27844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27848 ac_header_preproc=yes
27850 no:yes:* )
27851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27864 cat <<\_ASBOX
27865 ## ----------------------------------------- ##
27866 ## Report this to the package-unused lists. ##
27867 ## ----------------------------------------- ##
27868 _ASBOX
27870 sed "s/^/$as_me: WARNING: /" >&2
27872 esac
27873 echo "$as_me:$LINENO: checking for $ac_header" >&5
27874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27877 else
27878 eval "$as_ac_Header=\$ac_header_preproc"
27880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27885 cat >>confdefs.h <<_ACEOF
27886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27887 _ACEOF
27888 ac_has_wctype_h=yes
27889 else
27890 ac_has_wctype_h=no
27893 done
27896 # Only continue checking if the ISO C99 headers exist and support is on.
27897 if test x"$ac_has_wchar_h" = xyes &&
27898 test x"$ac_has_wctype_h" = xyes &&
27899 test x"$enable_c_mbchar" != xno; then
27901 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
27902 # numeric_limits can instantiate type_traits<wchar_t>
27903 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
27904 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
27905 cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h. */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h. */
27911 #include <wchar.h>
27913 main ()
27915 int i = WCHAR_MIN; int j = WCHAR_MAX;
27917 return 0;
27919 _ACEOF
27920 rm -f conftest.$ac_objext
27921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27922 (eval $ac_compile) 2>conftest.er1
27923 ac_status=$?
27924 grep -v '^ *+' conftest.er1 >conftest.err
27925 rm -f conftest.er1
27926 cat conftest.err >&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); } &&
27929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27931 (eval $ac_try) 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; } &&
27935 { ac_try='test -s conftest.$ac_objext'
27936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; }; then
27941 has_wchar_minmax=yes
27942 else
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.$ac_ext >&5
27946 has_wchar_minmax=no
27948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27949 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
27950 echo "${ECHO_T}$has_wchar_minmax" >&6
27952 # Test wchar.h for WEOF, which is what we use to determine whether
27953 # to specialize for char_traits<wchar_t> or not.
27954 echo "$as_me:$LINENO: checking for WEOF" >&5
27955 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
27956 cat >conftest.$ac_ext <<_ACEOF
27957 /* confdefs.h. */
27958 _ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h. */
27963 #include <wchar.h>
27964 #include <stddef.h>
27966 main ()
27968 wint_t i = WEOF;
27970 return 0;
27972 _ACEOF
27973 rm -f conftest.$ac_objext
27974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27975 (eval $ac_compile) 2>conftest.er1
27976 ac_status=$?
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27985 ac_status=$?
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; } &&
27988 { ac_try='test -s conftest.$ac_objext'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; }; then
27994 has_weof=yes
27995 else
27996 echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27999 has_weof=no
28001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28002 echo "$as_me:$LINENO: result: $has_weof" >&5
28003 echo "${ECHO_T}$has_weof" >&6
28005 # Tests for wide character functions used in char_traits<wchar_t>.
28006 ac_wfuncs=yes
28013 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28016 echo "$as_me:$LINENO: checking for $ac_func" >&5
28017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28018 if eval "test \"\${$as_ac_var+set}\" = set"; then
28019 echo $ECHO_N "(cached) $ECHO_C" >&6
28020 else
28021 if test x$gcc_no_link = xyes; then
28022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28024 { (exit 1); exit 1; }; }
28026 cat >conftest.$ac_ext <<_ACEOF
28027 /* confdefs.h. */
28028 _ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h. */
28032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28034 #define $ac_func innocuous_$ac_func
28036 /* System header to define __stub macros and hopefully few prototypes,
28037 which can conflict with char $ac_func (); below.
28038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28039 <limits.h> exists even on freestanding compilers. */
28041 #ifdef __STDC__
28042 # include <limits.h>
28043 #else
28044 # include <assert.h>
28045 #endif
28047 #undef $ac_func
28049 /* Override any gcc2 internal prototype to avoid an error. */
28050 #ifdef __cplusplus
28051 extern "C"
28053 #endif
28054 /* We use char because int might match the return type of a gcc2
28055 builtin and then its argument prototype would still apply. */
28056 char $ac_func ();
28057 /* The GNU C library defines this for functions which it implements
28058 to always fail with ENOSYS. Some functions are actually named
28059 something starting with __ and the normal name is an alias. */
28060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28061 choke me
28062 #else
28063 char (*f) () = $ac_func;
28064 #endif
28065 #ifdef __cplusplus
28067 #endif
28070 main ()
28072 return f != $ac_func;
28074 return 0;
28076 _ACEOF
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28079 (eval $ac_link) 2>conftest.er1
28080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088 (eval $ac_try) 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; } &&
28092 { ac_try='test -s conftest$ac_exeext'
28093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094 (eval $ac_try) 2>&5
28095 ac_status=$?
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 eval "$as_ac_var=yes"
28099 else
28100 echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28103 eval "$as_ac_var=no"
28105 rm -f conftest.err conftest.$ac_objext \
28106 conftest$ac_exeext conftest.$ac_ext
28108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28110 if test `eval echo '${'$as_ac_var'}'` = yes; then
28111 cat >>confdefs.h <<_ACEOF
28112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28113 _ACEOF
28115 else
28116 ac_wfuncs=no
28118 done
28121 # Checks for names injected into std:: by the c_std headers.
28168 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28169 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28170 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28171 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28172 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28173 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28176 echo "$as_me:$LINENO: checking for $ac_func" >&5
28177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28178 if eval "test \"\${$as_ac_var+set}\" = set"; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181 if test x$gcc_no_link = xyes; then
28182 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28184 { (exit 1); exit 1; }; }
28186 cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h. */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h. */
28192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28194 #define $ac_func innocuous_$ac_func
28196 /* System header to define __stub macros and hopefully few prototypes,
28197 which can conflict with char $ac_func (); below.
28198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199 <limits.h> exists even on freestanding compilers. */
28201 #ifdef __STDC__
28202 # include <limits.h>
28203 #else
28204 # include <assert.h>
28205 #endif
28207 #undef $ac_func
28209 /* Override any gcc2 internal prototype to avoid an error. */
28210 #ifdef __cplusplus
28211 extern "C"
28213 #endif
28214 /* We use char because int might match the return type of a gcc2
28215 builtin and then its argument prototype would still apply. */
28216 char $ac_func ();
28217 /* The GNU C library defines this for functions which it implements
28218 to always fail with ENOSYS. Some functions are actually named
28219 something starting with __ and the normal name is an alias. */
28220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28221 choke me
28222 #else
28223 char (*f) () = $ac_func;
28224 #endif
28225 #ifdef __cplusplus
28227 #endif
28230 main ()
28232 return f != $ac_func;
28234 return 0;
28236 _ACEOF
28237 rm -f conftest.$ac_objext conftest$ac_exeext
28238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28239 (eval $ac_link) 2>conftest.er1
28240 ac_status=$?
28241 grep -v '^ *+' conftest.er1 >conftest.err
28242 rm -f conftest.er1
28243 cat conftest.err >&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } &&
28246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28248 (eval $ac_try) 2>&5
28249 ac_status=$?
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); }; } &&
28252 { ac_try='test -s conftest$ac_exeext'
28253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); }; }; then
28258 eval "$as_ac_var=yes"
28259 else
28260 echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28263 eval "$as_ac_var=no"
28265 rm -f conftest.err conftest.$ac_objext \
28266 conftest$ac_exeext conftest.$ac_ext
28268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28270 if test `eval echo '${'$as_ac_var'}'` = yes; then
28271 cat >>confdefs.h <<_ACEOF
28272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28273 _ACEOF
28275 else
28276 ac_wfuncs=no
28278 done
28281 # Checks for wide character functions that are not required
28282 # for basic wchar_t support. Don't disable support if they are missing.
28283 # Injection of these is wrapped with guard macros.
28289 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28292 echo "$as_me:$LINENO: checking for $ac_func" >&5
28293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28294 if eval "test \"\${$as_ac_var+set}\" = set"; then
28295 echo $ECHO_N "(cached) $ECHO_C" >&6
28296 else
28297 if test x$gcc_no_link = xyes; then
28298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28300 { (exit 1); exit 1; }; }
28302 cat >conftest.$ac_ext <<_ACEOF
28303 /* confdefs.h. */
28304 _ACEOF
28305 cat confdefs.h >>conftest.$ac_ext
28306 cat >>conftest.$ac_ext <<_ACEOF
28307 /* end confdefs.h. */
28308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28310 #define $ac_func innocuous_$ac_func
28312 /* System header to define __stub macros and hopefully few prototypes,
28313 which can conflict with char $ac_func (); below.
28314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28315 <limits.h> exists even on freestanding compilers. */
28317 #ifdef __STDC__
28318 # include <limits.h>
28319 #else
28320 # include <assert.h>
28321 #endif
28323 #undef $ac_func
28325 /* Override any gcc2 internal prototype to avoid an error. */
28326 #ifdef __cplusplus
28327 extern "C"
28329 #endif
28330 /* We use char because int might match the return type of a gcc2
28331 builtin and then its argument prototype would still apply. */
28332 char $ac_func ();
28333 /* The GNU C library defines this for functions which it implements
28334 to always fail with ENOSYS. Some functions are actually named
28335 something starting with __ and the normal name is an alias. */
28336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28337 choke me
28338 #else
28339 char (*f) () = $ac_func;
28340 #endif
28341 #ifdef __cplusplus
28343 #endif
28346 main ()
28348 return f != $ac_func;
28350 return 0;
28352 _ACEOF
28353 rm -f conftest.$ac_objext conftest$ac_exeext
28354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28355 (eval $ac_link) 2>conftest.er1
28356 ac_status=$?
28357 grep -v '^ *+' conftest.er1 >conftest.err
28358 rm -f conftest.er1
28359 cat conftest.err >&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); } &&
28362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest$ac_exeext'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 eval "$as_ac_var=yes"
28375 else
28376 echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28379 eval "$as_ac_var=no"
28381 rm -f conftest.err conftest.$ac_objext \
28382 conftest$ac_exeext conftest.$ac_ext
28384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28386 if test `eval echo '${'$as_ac_var'}'` = yes; then
28387 cat >>confdefs.h <<_ACEOF
28388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28389 _ACEOF
28392 done
28395 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28396 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28397 if test x"$has_weof" = xyes &&
28398 test x"$has_wchar_minmax" = xyes &&
28399 test x"$ac_wfuncs" = xyes;
28400 then
28401 ac_isoC99_wchar_t=yes
28402 else
28403 ac_isoC99_wchar_t=no
28405 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28406 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28408 # Use iconv for wchar_t to char conversions. As such, check for
28409 # X/Open Portability Guide, version 2 features (XPG2).
28410 if test "${ac_cv_header_iconv_h+set}" = set; then
28411 echo "$as_me:$LINENO: checking for iconv.h" >&5
28412 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28413 if test "${ac_cv_header_iconv_h+set}" = set; then
28414 echo $ECHO_N "(cached) $ECHO_C" >&6
28416 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28417 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28418 else
28419 # Is the header compilable?
28420 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28421 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28422 cat >conftest.$ac_ext <<_ACEOF
28423 /* confdefs.h. */
28424 _ACEOF
28425 cat confdefs.h >>conftest.$ac_ext
28426 cat >>conftest.$ac_ext <<_ACEOF
28427 /* end confdefs.h. */
28428 $ac_includes_default
28429 #include <iconv.h>
28430 _ACEOF
28431 rm -f conftest.$ac_objext
28432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28433 (eval $ac_compile) 2>conftest.er1
28434 ac_status=$?
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
28440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; } &&
28446 { ac_try='test -s conftest.$ac_objext'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; }; then
28452 ac_header_compiler=yes
28453 else
28454 echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28457 ac_header_compiler=no
28459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28461 echo "${ECHO_T}$ac_header_compiler" >&6
28463 # Is the header present?
28464 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28465 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28466 cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h. */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28472 #include <iconv.h>
28473 _ACEOF
28474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28476 ac_status=$?
28477 grep -v '^ *+' conftest.er1 >conftest.err
28478 rm -f conftest.er1
28479 cat conftest.err >&5
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); } >/dev/null; then
28482 if test -s conftest.err; then
28483 ac_cpp_err=$ac_c_preproc_warn_flag
28484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28485 else
28486 ac_cpp_err=
28488 else
28489 ac_cpp_err=yes
28491 if test -z "$ac_cpp_err"; then
28492 ac_header_preproc=yes
28493 else
28494 echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28497 ac_header_preproc=no
28499 rm -f conftest.err conftest.$ac_ext
28500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28501 echo "${ECHO_T}$ac_header_preproc" >&6
28503 # So? What about this header?
28504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28505 yes:no: )
28506 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28507 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28508 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28509 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28510 ac_header_preproc=yes
28512 no:yes:* )
28513 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28514 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28515 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28516 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28517 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28518 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28519 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
28520 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
28521 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28522 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28523 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28524 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28526 cat <<\_ASBOX
28527 ## ----------------------------------------- ##
28528 ## Report this to the package-unused lists. ##
28529 ## ----------------------------------------- ##
28530 _ASBOX
28532 sed "s/^/$as_me: WARNING: /" >&2
28534 esac
28535 echo "$as_me:$LINENO: checking for iconv.h" >&5
28536 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28537 if test "${ac_cv_header_iconv_h+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539 else
28540 ac_cv_header_iconv_h=$ac_header_preproc
28542 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28543 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28546 if test $ac_cv_header_iconv_h = yes; then
28547 ac_has_iconv_h=yes
28548 else
28549 ac_has_iconv_h=no
28553 if test "${ac_cv_header_langinfo_h+set}" = set; then
28554 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28555 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28556 if test "${ac_cv_header_langinfo_h+set}" = set; then
28557 echo $ECHO_N "(cached) $ECHO_C" >&6
28559 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28560 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28561 else
28562 # Is the header compilable?
28563 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28564 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28565 cat >conftest.$ac_ext <<_ACEOF
28566 /* confdefs.h. */
28567 _ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h. */
28571 $ac_includes_default
28572 #include <langinfo.h>
28573 _ACEOF
28574 rm -f conftest.$ac_objext
28575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28576 (eval $ac_compile) 2>conftest.er1
28577 ac_status=$?
28578 grep -v '^ *+' conftest.er1 >conftest.err
28579 rm -f conftest.er1
28580 cat conftest.err >&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); } &&
28583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; } &&
28589 { ac_try='test -s conftest.$ac_objext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28595 ac_header_compiler=yes
28596 else
28597 echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28600 ac_header_compiler=no
28602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28604 echo "${ECHO_T}$ac_header_compiler" >&6
28606 # Is the header present?
28607 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28608 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28609 cat >conftest.$ac_ext <<_ACEOF
28610 /* confdefs.h. */
28611 _ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28615 #include <langinfo.h>
28616 _ACEOF
28617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28619 ac_status=$?
28620 grep -v '^ *+' conftest.er1 >conftest.err
28621 rm -f conftest.er1
28622 cat conftest.err >&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } >/dev/null; then
28625 if test -s conftest.err; then
28626 ac_cpp_err=$ac_c_preproc_warn_flag
28627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28628 else
28629 ac_cpp_err=
28631 else
28632 ac_cpp_err=yes
28634 if test -z "$ac_cpp_err"; then
28635 ac_header_preproc=yes
28636 else
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28640 ac_header_preproc=no
28642 rm -f conftest.err conftest.$ac_ext
28643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28644 echo "${ECHO_T}$ac_header_preproc" >&6
28646 # So? What about this header?
28647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28648 yes:no: )
28649 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28650 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28651 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
28652 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
28653 ac_header_preproc=yes
28655 no:yes:* )
28656 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
28657 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
28658 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
28659 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
28660 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
28661 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
28662 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
28663 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
28664 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
28665 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
28666 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
28667 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
28669 cat <<\_ASBOX
28670 ## ----------------------------------------- ##
28671 ## Report this to the package-unused lists. ##
28672 ## ----------------------------------------- ##
28673 _ASBOX
28675 sed "s/^/$as_me: WARNING: /" >&2
28677 esac
28678 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28679 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28680 if test "${ac_cv_header_langinfo_h+set}" = set; then
28681 echo $ECHO_N "(cached) $ECHO_C" >&6
28682 else
28683 ac_cv_header_langinfo_h=$ac_header_preproc
28685 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28686 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28689 if test $ac_cv_header_langinfo_h = yes; then
28690 ac_has_langinfo_h=yes
28691 else
28692 ac_has_langinfo_h=no
28697 # Check for existence of libiconv.a providing XPG2 wchar_t support.
28698 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
28699 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
28700 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
28701 echo $ECHO_N "(cached) $ECHO_C" >&6
28702 else
28703 ac_check_lib_save_LIBS=$LIBS
28704 LIBS="-liconv $LIBS"
28705 if test x$gcc_no_link = xyes; then
28706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28708 { (exit 1); exit 1; }; }
28710 cat >conftest.$ac_ext <<_ACEOF
28711 /* confdefs.h. */
28712 _ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28717 /* Override any gcc2 internal prototype to avoid an error. */
28718 #ifdef __cplusplus
28719 extern "C"
28720 #endif
28721 /* We use char because int might match the return type of a gcc2
28722 builtin and then its argument prototype would still apply. */
28723 char iconv ();
28725 main ()
28727 iconv ();
28729 return 0;
28731 _ACEOF
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734 (eval $ac_link) 2>conftest.er1
28735 ac_status=$?
28736 grep -v '^ *+' conftest.er1 >conftest.err
28737 rm -f conftest.er1
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28744 ac_status=$?
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; } &&
28747 { ac_try='test -s conftest$ac_exeext'
28748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749 (eval $ac_try) 2>&5
28750 ac_status=$?
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); }; }; then
28753 ac_cv_lib_iconv_iconv=yes
28754 else
28755 echo "$as_me: failed program was:" >&5
28756 sed 's/^/| /' conftest.$ac_ext >&5
28758 ac_cv_lib_iconv_iconv=no
28760 rm -f conftest.err conftest.$ac_objext \
28761 conftest$ac_exeext conftest.$ac_ext
28762 LIBS=$ac_check_lib_save_LIBS
28764 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
28765 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
28766 if test $ac_cv_lib_iconv_iconv = yes; then
28767 libiconv="-liconv"
28770 ac_save_LIBS="$LIBS"
28771 LIBS="$LIBS $libiconv"
28777 for ac_func in iconv_open iconv_close iconv nl_langinfo
28779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28780 echo "$as_me:$LINENO: checking for $ac_func" >&5
28781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28782 if eval "test \"\${$as_ac_var+set}\" = set"; then
28783 echo $ECHO_N "(cached) $ECHO_C" >&6
28784 else
28785 if test x$gcc_no_link = xyes; then
28786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28788 { (exit 1); exit 1; }; }
28790 cat >conftest.$ac_ext <<_ACEOF
28791 /* confdefs.h. */
28792 _ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28798 #define $ac_func innocuous_$ac_func
28800 /* System header to define __stub macros and hopefully few prototypes,
28801 which can conflict with char $ac_func (); below.
28802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28803 <limits.h> exists even on freestanding compilers. */
28805 #ifdef __STDC__
28806 # include <limits.h>
28807 #else
28808 # include <assert.h>
28809 #endif
28811 #undef $ac_func
28813 /* Override any gcc2 internal prototype to avoid an error. */
28814 #ifdef __cplusplus
28815 extern "C"
28817 #endif
28818 /* We use char because int might match the return type of a gcc2
28819 builtin and then its argument prototype would still apply. */
28820 char $ac_func ();
28821 /* The GNU C library defines this for functions which it implements
28822 to always fail with ENOSYS. Some functions are actually named
28823 something starting with __ and the normal name is an alias. */
28824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28825 choke me
28826 #else
28827 char (*f) () = $ac_func;
28828 #endif
28829 #ifdef __cplusplus
28831 #endif
28834 main ()
28836 return f != $ac_func;
28838 return 0;
28840 _ACEOF
28841 rm -f conftest.$ac_objext conftest$ac_exeext
28842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28843 (eval $ac_link) 2>conftest.er1
28844 ac_status=$?
28845 grep -v '^ *+' conftest.er1 >conftest.err
28846 rm -f conftest.er1
28847 cat conftest.err >&5
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); } &&
28850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28859 ac_status=$?
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28862 eval "$as_ac_var=yes"
28863 else
28864 echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28867 eval "$as_ac_var=no"
28869 rm -f conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
28872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28874 if test `eval echo '${'$as_ac_var'}'` = yes; then
28875 cat >>confdefs.h <<_ACEOF
28876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28877 _ACEOF
28878 ac_XPG2funcs=yes
28879 else
28880 ac_XPG2funcs=no
28882 done
28885 LIBS="$ac_save_LIBS"
28887 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
28888 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
28889 if test x"$ac_has_iconv_h" = xyes &&
28890 test x"$ac_has_langinfo_h" = xyes &&
28891 test x"$ac_XPG2funcs" = xyes;
28892 then
28893 ac_XPG2_wchar_t=yes
28894 else
28895 ac_XPG2_wchar_t=no
28897 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
28898 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
28900 # At the moment, only enable wchar_t specializations if all the
28901 # above support is present.
28902 if test x"$ac_isoC99_wchar_t" = xyes &&
28903 test x"$ac_XPG2_wchar_t" = xyes;
28904 then
28905 cat >>confdefs.h <<\_ACEOF
28906 #define _GLIBCXX_USE_WCHAR_T 1
28907 _ACEOF
28909 enable_wchar_t=yes
28912 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
28913 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
28914 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
28915 echo "${ECHO_T}$enable_wchar_t" >&6
28918 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28919 ac_save_CXXFLAGS="$CXXFLAGS"
28920 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
28923 echo "$as_me:$LINENO: checking for strtold declaration" >&5
28924 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
28925 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
28926 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
28927 echo $ECHO_N "(cached) $ECHO_C" >&6
28928 else
28932 ac_ext=cc
28933 ac_cpp='$CXXCPP $CPPFLAGS'
28934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28938 cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h. */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 #include <stdlib.h>
28946 main ()
28948 strtold(0, 0);
28950 return 0;
28952 _ACEOF
28953 rm -f conftest.$ac_objext
28954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28955 (eval $ac_compile) 2>conftest.er1
28956 ac_status=$?
28957 grep -v '^ *+' conftest.er1 >conftest.err
28958 rm -f conftest.er1
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } &&
28962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28964 (eval $ac_try) 2>&5
28965 ac_status=$?
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; } &&
28968 { ac_try='test -s conftest.$ac_objext'
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; }; then
28974 glibcxx_cv_func_strtold_use=yes
28975 else
28976 echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28979 glibcxx_cv_func_strtold_use=no
28981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28982 ac_ext=c
28983 ac_cpp='$CPP $CPPFLAGS'
28984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28992 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
28993 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
28994 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
28996 for ac_func in strtold
28998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28999 echo "$as_me:$LINENO: checking for $ac_func" >&5
29000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29001 if eval "test \"\${$as_ac_var+set}\" = set"; then
29002 echo $ECHO_N "(cached) $ECHO_C" >&6
29003 else
29004 if test x$gcc_no_link = xyes; then
29005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29007 { (exit 1); exit 1; }; }
29009 cat >conftest.$ac_ext <<_ACEOF
29010 /* confdefs.h. */
29011 _ACEOF
29012 cat confdefs.h >>conftest.$ac_ext
29013 cat >>conftest.$ac_ext <<_ACEOF
29014 /* end confdefs.h. */
29015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29017 #define $ac_func innocuous_$ac_func
29019 /* System header to define __stub macros and hopefully few prototypes,
29020 which can conflict with char $ac_func (); below.
29021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29022 <limits.h> exists even on freestanding compilers. */
29024 #ifdef __STDC__
29025 # include <limits.h>
29026 #else
29027 # include <assert.h>
29028 #endif
29030 #undef $ac_func
29032 /* Override any gcc2 internal prototype to avoid an error. */
29033 #ifdef __cplusplus
29034 extern "C"
29036 #endif
29037 /* We use char because int might match the return type of a gcc2
29038 builtin and then its argument prototype would still apply. */
29039 char $ac_func ();
29040 /* The GNU C library defines this for functions which it implements
29041 to always fail with ENOSYS. Some functions are actually named
29042 something starting with __ and the normal name is an alias. */
29043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29044 choke me
29045 #else
29046 char (*f) () = $ac_func;
29047 #endif
29048 #ifdef __cplusplus
29050 #endif
29053 main ()
29055 return f != $ac_func;
29057 return 0;
29059 _ACEOF
29060 rm -f conftest.$ac_objext conftest$ac_exeext
29061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29062 (eval $ac_link) 2>conftest.er1
29063 ac_status=$?
29064 grep -v '^ *+' conftest.er1 >conftest.err
29065 rm -f conftest.er1
29066 cat conftest.err >&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); } &&
29069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29071 (eval $ac_try) 2>&5
29072 ac_status=$?
29073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074 (exit $ac_status); }; } &&
29075 { ac_try='test -s conftest$ac_exeext'
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
29081 eval "$as_ac_var=yes"
29082 else
29083 echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29086 eval "$as_ac_var=no"
29088 rm -f conftest.err conftest.$ac_objext \
29089 conftest$ac_exeext conftest.$ac_ext
29091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29093 if test `eval echo '${'$as_ac_var'}'` = yes; then
29094 cat >>confdefs.h <<_ACEOF
29095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29096 _ACEOF
29099 done
29104 echo "$as_me:$LINENO: checking for strtof declaration" >&5
29105 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29106 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29107 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29113 ac_ext=cc
29114 ac_cpp='$CXXCPP $CPPFLAGS'
29115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h. */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29125 #include <stdlib.h>
29127 main ()
29129 strtof(0, 0);
29131 return 0;
29133 _ACEOF
29134 rm -f conftest.$ac_objext
29135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29136 (eval $ac_compile) 2>conftest.er1
29137 ac_status=$?
29138 grep -v '^ *+' conftest.er1 >conftest.err
29139 rm -f conftest.er1
29140 cat conftest.err >&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); } &&
29143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; } &&
29149 { ac_try='test -s conftest.$ac_objext'
29150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151 (eval $ac_try) 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 glibcxx_cv_func_strtof_use=yes
29156 else
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 glibcxx_cv_func_strtof_use=no
29162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29163 ac_ext=c
29164 ac_cpp='$CPP $CPPFLAGS'
29165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29173 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29174 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29175 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29177 for ac_func in strtof
29179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29180 echo "$as_me:$LINENO: checking for $ac_func" >&5
29181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29182 if eval "test \"\${$as_ac_var+set}\" = set"; then
29183 echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185 if test x$gcc_no_link = xyes; then
29186 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29187 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29188 { (exit 1); exit 1; }; }
29190 cat >conftest.$ac_ext <<_ACEOF
29191 /* confdefs.h. */
29192 _ACEOF
29193 cat confdefs.h >>conftest.$ac_ext
29194 cat >>conftest.$ac_ext <<_ACEOF
29195 /* end confdefs.h. */
29196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29198 #define $ac_func innocuous_$ac_func
29200 /* System header to define __stub macros and hopefully few prototypes,
29201 which can conflict with char $ac_func (); below.
29202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29203 <limits.h> exists even on freestanding compilers. */
29205 #ifdef __STDC__
29206 # include <limits.h>
29207 #else
29208 # include <assert.h>
29209 #endif
29211 #undef $ac_func
29213 /* Override any gcc2 internal prototype to avoid an error. */
29214 #ifdef __cplusplus
29215 extern "C"
29217 #endif
29218 /* We use char because int might match the return type of a gcc2
29219 builtin and then its argument prototype would still apply. */
29220 char $ac_func ();
29221 /* The GNU C library defines this for functions which it implements
29222 to always fail with ENOSYS. Some functions are actually named
29223 something starting with __ and the normal name is an alias. */
29224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29225 choke me
29226 #else
29227 char (*f) () = $ac_func;
29228 #endif
29229 #ifdef __cplusplus
29231 #endif
29234 main ()
29236 return f != $ac_func;
29238 return 0;
29240 _ACEOF
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29243 (eval $ac_link) 2>conftest.er1
29244 ac_status=$?
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
29250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252 (eval $ac_try) 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; } &&
29256 { ac_try='test -s conftest$ac_exeext'
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; }; then
29262 eval "$as_ac_var=yes"
29263 else
29264 echo "$as_me: failed program was:" >&5
29265 sed 's/^/| /' conftest.$ac_ext >&5
29267 eval "$as_ac_var=no"
29269 rm -f conftest.err conftest.$ac_objext \
29270 conftest$ac_exeext conftest.$ac_ext
29272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29274 if test `eval echo '${'$as_ac_var'}'` = yes; then
29275 cat >>confdefs.h <<_ACEOF
29276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29277 _ACEOF
29280 done
29285 CXXFLAGS="$ac_save_CXXFLAGS"
29288 # For showmanyc_helper().
29291 for ac_header in sys/ioctl.h sys/filio.h
29293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29295 echo "$as_me:$LINENO: checking for $ac_header" >&5
29296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29298 echo $ECHO_N "(cached) $ECHO_C" >&6
29300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29302 else
29303 # Is the header compilable?
29304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29306 cat >conftest.$ac_ext <<_ACEOF
29307 /* confdefs.h. */
29308 _ACEOF
29309 cat confdefs.h >>conftest.$ac_ext
29310 cat >>conftest.$ac_ext <<_ACEOF
29311 /* end confdefs.h. */
29312 $ac_includes_default
29313 #include <$ac_header>
29314 _ACEOF
29315 rm -f conftest.$ac_objext
29316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29317 (eval $ac_compile) 2>conftest.er1
29318 ac_status=$?
29319 grep -v '^ *+' conftest.er1 >conftest.err
29320 rm -f conftest.er1
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
29324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; } &&
29330 { ac_try='test -s conftest.$ac_objext'
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29333 ac_status=$?
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
29336 ac_header_compiler=yes
29337 else
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ac_header_compiler=no
29343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29345 echo "${ECHO_T}$ac_header_compiler" >&6
29347 # Is the header present?
29348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29350 cat >conftest.$ac_ext <<_ACEOF
29351 /* confdefs.h. */
29352 _ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h. */
29356 #include <$ac_header>
29357 _ACEOF
29358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29360 ac_status=$?
29361 grep -v '^ *+' conftest.er1 >conftest.err
29362 rm -f conftest.er1
29363 cat conftest.err >&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } >/dev/null; then
29366 if test -s conftest.err; then
29367 ac_cpp_err=$ac_c_preproc_warn_flag
29368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29369 else
29370 ac_cpp_err=
29372 else
29373 ac_cpp_err=yes
29375 if test -z "$ac_cpp_err"; then
29376 ac_header_preproc=yes
29377 else
29378 echo "$as_me: failed program was:" >&5
29379 sed 's/^/| /' conftest.$ac_ext >&5
29381 ac_header_preproc=no
29383 rm -f conftest.err conftest.$ac_ext
29384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385 echo "${ECHO_T}$ac_header_preproc" >&6
29387 # So? What about this header?
29388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29389 yes:no: )
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29396 no:yes:* )
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29410 cat <<\_ASBOX
29411 ## ----------------------------------------- ##
29412 ## Report this to the package-unused lists. ##
29413 ## ----------------------------------------- ##
29414 _ASBOX
29416 sed "s/^/$as_me: WARNING: /" >&2
29418 esac
29419 echo "$as_me:$LINENO: checking for $ac_header" >&5
29420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29422 echo $ECHO_N "(cached) $ECHO_C" >&6
29423 else
29424 eval "$as_ac_Header=\$ac_header_preproc"
29426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29431 cat >>confdefs.h <<_ACEOF
29432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29433 _ACEOF
29437 done
29440 if test "${glibcxx_cv_POLL+set}" = set; then
29441 echo $ECHO_N "(cached) $ECHO_C" >&6
29442 else
29444 if test x$gcc_no_link = xyes; then
29445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29446 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29447 { (exit 1); exit 1; }; }
29449 cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h. */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h. */
29455 #include <poll.h>
29457 main ()
29459 struct pollfd pfd[1];
29460 pfd[0].events = POLLIN;
29461 poll(pfd, 1, 0);
29463 return 0;
29465 _ACEOF
29466 rm -f conftest.$ac_objext conftest$ac_exeext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29468 (eval $ac_link) 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
29475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29477 (eval $ac_try) 2>&5
29478 ac_status=$?
29479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; } &&
29481 { ac_try='test -s conftest$ac_exeext'
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; }; then
29487 glibcxx_cv_POLL=yes
29488 else
29489 echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.$ac_ext >&5
29492 glibcxx_cv_POLL=no
29494 rm -f conftest.err conftest.$ac_objext \
29495 conftest$ac_exeext conftest.$ac_ext
29499 if test $glibcxx_cv_POLL = yes; then
29500 cat >>confdefs.h <<\_ACEOF
29501 #define HAVE_POLL 1
29502 _ACEOF
29507 if test "${glibcxx_cv_S_ISREG+set}" = set; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 else
29511 if test x$gcc_no_link = xyes; then
29512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29514 { (exit 1); exit 1; }; }
29516 cat >conftest.$ac_ext <<_ACEOF
29517 /* confdefs.h. */
29518 _ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h. */
29522 #include <sys/stat.h>
29524 main ()
29526 struct stat buffer;
29527 fstat(0, &buffer);
29528 S_ISREG(buffer.st_mode);
29530 return 0;
29532 _ACEOF
29533 rm -f conftest.$ac_objext conftest$ac_exeext
29534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29535 (eval $ac_link) 2>conftest.er1
29536 ac_status=$?
29537 grep -v '^ *+' conftest.er1 >conftest.err
29538 rm -f conftest.er1
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } &&
29542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; } &&
29548 { ac_try='test -s conftest$ac_exeext'
29549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29550 (eval $ac_try) 2>&5
29551 ac_status=$?
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); }; }; then
29554 glibcxx_cv_S_ISREG=yes
29555 else
29556 echo "$as_me: failed program was:" >&5
29557 sed 's/^/| /' conftest.$ac_ext >&5
29559 glibcxx_cv_S_ISREG=no
29561 rm -f conftest.err conftest.$ac_objext \
29562 conftest$ac_exeext conftest.$ac_ext
29566 if test "${glibcxx_cv_S_IFREG+set}" = set; then
29567 echo $ECHO_N "(cached) $ECHO_C" >&6
29568 else
29570 if test x$gcc_no_link = xyes; then
29571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29573 { (exit 1); exit 1; }; }
29575 cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h. */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 #include <sys/stat.h>
29583 main ()
29585 struct stat buffer;
29586 fstat(0, &buffer);
29587 S_IFREG & buffer.st_mode;
29589 return 0;
29591 _ACEOF
29592 rm -f conftest.$ac_objext conftest$ac_exeext
29593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29594 (eval $ac_link) 2>conftest.er1
29595 ac_status=$?
29596 grep -v '^ *+' conftest.er1 >conftest.err
29597 rm -f conftest.er1
29598 cat conftest.err >&5
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } &&
29601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 (eval $ac_try) 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest$ac_exeext'
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29610 ac_status=$?
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; }; then
29613 glibcxx_cv_S_IFREG=yes
29614 else
29615 echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29618 glibcxx_cv_S_IFREG=no
29620 rm -f conftest.err conftest.$ac_objext \
29621 conftest$ac_exeext conftest.$ac_ext
29625 if test $glibcxx_cv_S_ISREG = yes; then
29626 cat >>confdefs.h <<\_ACEOF
29627 #define HAVE_S_ISREG 1
29628 _ACEOF
29630 elif test $glibcxx_cv_S_IFREG = yes; then
29631 cat >>confdefs.h <<\_ACEOF
29632 #define HAVE_S_IFREG 1
29633 _ACEOF
29638 # For xsputn_2().
29640 for ac_header in sys/uio.h
29642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29644 echo "$as_me:$LINENO: checking for $ac_header" >&5
29645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29647 echo $ECHO_N "(cached) $ECHO_C" >&6
29649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29651 else
29652 # Is the header compilable?
29653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29655 cat >conftest.$ac_ext <<_ACEOF
29656 /* confdefs.h. */
29657 _ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h. */
29661 $ac_includes_default
29662 #include <$ac_header>
29663 _ACEOF
29664 rm -f conftest.$ac_objext
29665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29666 (eval $ac_compile) 2>conftest.er1
29667 ac_status=$?
29668 grep -v '^ *+' conftest.er1 >conftest.err
29669 rm -f conftest.er1
29670 cat conftest.err >&5
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); } &&
29673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; } &&
29679 { ac_try='test -s conftest.$ac_objext'
29680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681 (eval $ac_try) 2>&5
29682 ac_status=$?
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); }; }; then
29685 ac_header_compiler=yes
29686 else
29687 echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29690 ac_header_compiler=no
29692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29694 echo "${ECHO_T}$ac_header_compiler" >&6
29696 # Is the header present?
29697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29699 cat >conftest.$ac_ext <<_ACEOF
29700 /* confdefs.h. */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29705 #include <$ac_header>
29706 _ACEOF
29707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29709 ac_status=$?
29710 grep -v '^ *+' conftest.er1 >conftest.err
29711 rm -f conftest.er1
29712 cat conftest.err >&5
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } >/dev/null; then
29715 if test -s conftest.err; then
29716 ac_cpp_err=$ac_c_preproc_warn_flag
29717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29718 else
29719 ac_cpp_err=
29721 else
29722 ac_cpp_err=yes
29724 if test -z "$ac_cpp_err"; then
29725 ac_header_preproc=yes
29726 else
29727 echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29730 ac_header_preproc=no
29732 rm -f conftest.err conftest.$ac_ext
29733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29734 echo "${ECHO_T}$ac_header_preproc" >&6
29736 # So? What about this header?
29737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29738 yes:no: )
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29743 ac_header_preproc=yes
29745 no:yes:* )
29746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29759 cat <<\_ASBOX
29760 ## ----------------------------------------- ##
29761 ## Report this to the package-unused lists. ##
29762 ## ----------------------------------------- ##
29763 _ASBOX
29765 sed "s/^/$as_me: WARNING: /" >&2
29767 esac
29768 echo "$as_me:$LINENO: checking for $ac_header" >&5
29769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29771 echo $ECHO_N "(cached) $ECHO_C" >&6
29772 else
29773 eval "$as_ac_Header=\$ac_header_preproc"
29775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29780 cat >>confdefs.h <<_ACEOF
29781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29782 _ACEOF
29786 done
29789 if test "${glibcxx_cv_WRITEV+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 else
29793 if test x$gcc_no_link = xyes; then
29794 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29795 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29796 { (exit 1); exit 1; }; }
29798 cat >conftest.$ac_ext <<_ACEOF
29799 /* confdefs.h. */
29800 _ACEOF
29801 cat confdefs.h >>conftest.$ac_ext
29802 cat >>conftest.$ac_ext <<_ACEOF
29803 /* end confdefs.h. */
29804 #include <sys/uio.h>
29806 main ()
29808 struct iovec iov[2];
29809 writev(0, iov, 0);
29811 return 0;
29813 _ACEOF
29814 rm -f conftest.$ac_objext conftest$ac_exeext
29815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29816 (eval $ac_link) 2>conftest.er1
29817 ac_status=$?
29818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } &&
29823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29825 (eval $ac_try) 2>&5
29826 ac_status=$?
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; } &&
29829 { ac_try='test -s conftest$ac_exeext'
29830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831 (eval $ac_try) 2>&5
29832 ac_status=$?
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; }; then
29835 glibcxx_cv_WRITEV=yes
29836 else
29837 echo "$as_me: failed program was:" >&5
29838 sed 's/^/| /' conftest.$ac_ext >&5
29840 glibcxx_cv_WRITEV=no
29842 rm -f conftest.err conftest.$ac_objext \
29843 conftest$ac_exeext conftest.$ac_ext
29847 if test $glibcxx_cv_WRITEV = yes; then
29848 cat >>confdefs.h <<\_ACEOF
29849 #define HAVE_WRITEV 1
29850 _ACEOF
29855 # For the __streamoff_base_type typedef.
29857 if test "${glibcxx_cv_INT64_T+set}" = set; then
29858 echo $ECHO_N "(cached) $ECHO_C" >&6
29859 else
29861 cat >conftest.$ac_ext <<_ACEOF
29862 /* confdefs.h. */
29863 _ACEOF
29864 cat confdefs.h >>conftest.$ac_ext
29865 cat >>conftest.$ac_ext <<_ACEOF
29866 /* end confdefs.h. */
29867 #include <stdint.h>
29869 main ()
29871 int64_t var;
29873 return 0;
29875 _ACEOF
29876 rm -f conftest.$ac_objext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29878 (eval $ac_compile) 2>conftest.er1
29879 ac_status=$?
29880 grep -v '^ *+' conftest.er1 >conftest.err
29881 rm -f conftest.er1
29882 cat conftest.err >&5
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); } &&
29885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; } &&
29891 { ac_try='test -s conftest.$ac_objext'
29892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893 (eval $ac_try) 2>&5
29894 ac_status=$?
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; }; then
29897 glibcxx_cv_INT64_T=yes
29898 else
29899 echo "$as_me: failed program was:" >&5
29900 sed 's/^/| /' conftest.$ac_ext >&5
29902 glibcxx_cv_INT64_T=no
29904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29908 if test $glibcxx_cv_INT64_T = yes; then
29909 cat >>confdefs.h <<\_ACEOF
29910 #define HAVE_INT64_T 1
29911 _ACEOF
29916 # For LFS support.
29920 ac_ext=cc
29921 ac_cpp='$CXXCPP $CPPFLAGS'
29922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29926 if test "${glibcxx_cv_LFS+set}" = set; then
29927 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 else
29930 if test x$gcc_no_link = xyes; then
29931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29933 { (exit 1); exit 1; }; }
29935 cat >conftest.$ac_ext <<_ACEOF
29936 /* confdefs.h. */
29937 _ACEOF
29938 cat confdefs.h >>conftest.$ac_ext
29939 cat >>conftest.$ac_ext <<_ACEOF
29940 /* end confdefs.h. */
29941 #include <unistd.h>
29942 #include <stdio.h>
29945 main ()
29947 FILE* fp;
29948 fopen64("t", "w");
29949 fseeko64(fp, 0, SEEK_CUR);
29950 ftello64(fp);
29951 lseek64(1, 0, SEEK_CUR);
29953 return 0;
29955 _ACEOF
29956 rm -f conftest.$ac_objext conftest$ac_exeext
29957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29958 (eval $ac_link) 2>conftest.er1
29959 ac_status=$?
29960 grep -v '^ *+' conftest.er1 >conftest.err
29961 rm -f conftest.er1
29962 cat conftest.err >&5
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); } &&
29965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try='test -s conftest$ac_exeext'
29972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973 (eval $ac_try) 2>&5
29974 ac_status=$?
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; }; then
29977 glibcxx_cv_LFS=yes
29978 else
29979 echo "$as_me: failed program was:" >&5
29980 sed 's/^/| /' conftest.$ac_ext >&5
29982 glibcxx_cv_LFS=no
29984 rm -f conftest.err conftest.$ac_objext \
29985 conftest$ac_exeext conftest.$ac_ext
29989 if test $glibcxx_cv_LFS = yes; then
29990 cat >>confdefs.h <<\_ACEOF
29991 #define _GLIBCXX_USE_LFS 1
29992 _ACEOF
29995 ac_ext=c
29996 ac_cpp='$CPP $CPPFLAGS'
29997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30004 if test "${ac_cv_header_locale_h+set}" = set; then
30005 echo "$as_me:$LINENO: checking for locale.h" >&5
30006 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30007 if test "${ac_cv_header_locale_h+set}" = set; then
30008 echo $ECHO_N "(cached) $ECHO_C" >&6
30010 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30011 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30012 else
30013 # Is the header compilable?
30014 echo "$as_me:$LINENO: checking locale.h usability" >&5
30015 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30016 cat >conftest.$ac_ext <<_ACEOF
30017 /* confdefs.h. */
30018 _ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h. */
30022 $ac_includes_default
30023 #include <locale.h>
30024 _ACEOF
30025 rm -f conftest.$ac_objext
30026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30027 (eval $ac_compile) 2>conftest.er1
30028 ac_status=$?
30029 grep -v '^ *+' conftest.er1 >conftest.err
30030 rm -f conftest.er1
30031 cat conftest.err >&5
30032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033 (exit $ac_status); } &&
30034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036 (eval $ac_try) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); }; } &&
30040 { ac_try='test -s conftest.$ac_objext'
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 ac_header_compiler=yes
30047 else
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30051 ac_header_compiler=no
30053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30055 echo "${ECHO_T}$ac_header_compiler" >&6
30057 # Is the header present?
30058 echo "$as_me:$LINENO: checking locale.h presence" >&5
30059 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30060 cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h. */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h. */
30066 #include <locale.h>
30067 _ACEOF
30068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30070 ac_status=$?
30071 grep -v '^ *+' conftest.er1 >conftest.err
30072 rm -f conftest.er1
30073 cat conftest.err >&5
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); } >/dev/null; then
30076 if test -s conftest.err; then
30077 ac_cpp_err=$ac_c_preproc_warn_flag
30078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30079 else
30080 ac_cpp_err=
30082 else
30083 ac_cpp_err=yes
30085 if test -z "$ac_cpp_err"; then
30086 ac_header_preproc=yes
30087 else
30088 echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30091 ac_header_preproc=no
30093 rm -f conftest.err conftest.$ac_ext
30094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30095 echo "${ECHO_T}$ac_header_preproc" >&6
30097 # So? What about this header?
30098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30099 yes:no: )
30100 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30101 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30103 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30104 ac_header_preproc=yes
30106 no:yes:* )
30107 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30108 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30109 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
30110 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
30111 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30112 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30113 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
30114 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
30115 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30116 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30118 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30120 cat <<\_ASBOX
30121 ## ----------------------------------------- ##
30122 ## Report this to the package-unused lists. ##
30123 ## ----------------------------------------- ##
30124 _ASBOX
30126 sed "s/^/$as_me: WARNING: /" >&2
30128 esac
30129 echo "$as_me:$LINENO: checking for locale.h" >&5
30130 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30131 if test "${ac_cv_header_locale_h+set}" = set; then
30132 echo $ECHO_N "(cached) $ECHO_C" >&6
30133 else
30134 ac_cv_header_locale_h=$ac_header_preproc
30136 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30137 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30140 if test $ac_cv_header_locale_h = yes; then
30142 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30143 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30144 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30146 else
30147 if test x$gcc_no_link = xyes; then
30148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30150 { (exit 1); exit 1; }; }
30152 cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h. */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30158 #include <locale.h>
30160 main ()
30162 return LC_MESSAGES
30164 return 0;
30166 _ACEOF
30167 rm -f conftest.$ac_objext conftest$ac_exeext
30168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30169 (eval $ac_link) 2>conftest.er1
30170 ac_status=$?
30171 grep -v '^ *+' conftest.er1 >conftest.err
30172 rm -f conftest.er1
30173 cat conftest.err >&5
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
30176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30178 (eval $ac_try) 2>&5
30179 ac_status=$?
30180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181 (exit $ac_status); }; } &&
30182 { ac_try='test -s conftest$ac_exeext'
30183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30184 (eval $ac_try) 2>&5
30185 ac_status=$?
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); }; }; then
30188 ac_cv_val_LC_MESSAGES=yes
30189 else
30190 echo "$as_me: failed program was:" >&5
30191 sed 's/^/| /' conftest.$ac_ext >&5
30193 ac_cv_val_LC_MESSAGES=no
30195 rm -f conftest.err conftest.$ac_objext \
30196 conftest$ac_exeext conftest.$ac_ext
30198 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30199 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30200 if test $ac_cv_val_LC_MESSAGES = yes; then
30201 cat >>confdefs.h <<\_ACEOF
30202 #define HAVE_LC_MESSAGES 1
30203 _ACEOF
30212 cat >conftest.$ac_ext <<_ACEOF
30213 /* confdefs.h. */
30214 _ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h. */
30218 #include <setjmp.h>
30220 main ()
30222 sigjmp_buf env;
30223 while (! sigsetjmp (env, 1))
30224 siglongjmp (env, 1);
30227 return 0;
30229 _ACEOF
30230 rm -f conftest.$ac_objext
30231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30232 (eval $ac_compile) 2>conftest.er1
30233 ac_status=$?
30234 grep -v '^ *+' conftest.er1 >conftest.err
30235 rm -f conftest.er1
30236 cat conftest.err >&5
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); } &&
30239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241 (eval $ac_try) 2>&5
30242 ac_status=$?
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; } &&
30245 { ac_try='test -s conftest.$ac_objext'
30246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30247 (eval $ac_try) 2>&5
30248 ac_status=$?
30249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250 (exit $ac_status); }; }; then
30252 cat >>confdefs.h <<\_ACEOF
30253 #define HAVE_SIGSETJMP 1
30254 _ACEOF
30256 else
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30263 if test x$gcc_no_link = xyes; then
30264 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30265 ac_cv_func_mmap_fixed_mapped=no
30268 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30271 for ac_header in stdlib.h unistd.h
30273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30275 echo "$as_me:$LINENO: checking for $ac_header" >&5
30276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30278 echo $ECHO_N "(cached) $ECHO_C" >&6
30280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30282 else
30283 # Is the header compilable?
30284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30286 cat >conftest.$ac_ext <<_ACEOF
30287 /* confdefs.h. */
30288 _ACEOF
30289 cat confdefs.h >>conftest.$ac_ext
30290 cat >>conftest.$ac_ext <<_ACEOF
30291 /* end confdefs.h. */
30292 $ac_includes_default
30293 #include <$ac_header>
30294 _ACEOF
30295 rm -f conftest.$ac_objext
30296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30297 (eval $ac_compile) 2>conftest.er1
30298 ac_status=$?
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
30304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30306 (eval $ac_try) 2>&5
30307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest.$ac_objext'
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 ac_header_compiler=yes
30317 else
30318 echo "$as_me: failed program was:" >&5
30319 sed 's/^/| /' conftest.$ac_ext >&5
30321 ac_header_compiler=no
30323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30325 echo "${ECHO_T}$ac_header_compiler" >&6
30327 # Is the header present?
30328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30330 cat >conftest.$ac_ext <<_ACEOF
30331 /* confdefs.h. */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 #include <$ac_header>
30337 _ACEOF
30338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30340 ac_status=$?
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } >/dev/null; then
30346 if test -s conftest.err; then
30347 ac_cpp_err=$ac_c_preproc_warn_flag
30348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30349 else
30350 ac_cpp_err=
30352 else
30353 ac_cpp_err=yes
30355 if test -z "$ac_cpp_err"; then
30356 ac_header_preproc=yes
30357 else
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30361 ac_header_preproc=no
30363 rm -f conftest.err conftest.$ac_ext
30364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30365 echo "${ECHO_T}$ac_header_preproc" >&6
30367 # So? What about this header?
30368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30369 yes:no: )
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30374 ac_header_preproc=yes
30376 no:yes:* )
30377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30390 cat <<\_ASBOX
30391 ## ----------------------------------------- ##
30392 ## Report this to the package-unused lists. ##
30393 ## ----------------------------------------- ##
30394 _ASBOX
30396 sed "s/^/$as_me: WARNING: /" >&2
30398 esac
30399 echo "$as_me:$LINENO: checking for $ac_header" >&5
30400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30403 else
30404 eval "$as_ac_Header=\$ac_header_preproc"
30406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30411 cat >>confdefs.h <<_ACEOF
30412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30413 _ACEOF
30417 done
30420 for ac_func in getpagesize
30422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30423 echo "$as_me:$LINENO: checking for $ac_func" >&5
30424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30425 if eval "test \"\${$as_ac_var+set}\" = set"; then
30426 echo $ECHO_N "(cached) $ECHO_C" >&6
30427 else
30428 if test x$gcc_no_link = xyes; then
30429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30431 { (exit 1); exit 1; }; }
30433 cat >conftest.$ac_ext <<_ACEOF
30434 /* confdefs.h. */
30435 _ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h. */
30439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30441 #define $ac_func innocuous_$ac_func
30443 /* System header to define __stub macros and hopefully few prototypes,
30444 which can conflict with char $ac_func (); below.
30445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30446 <limits.h> exists even on freestanding compilers. */
30448 #ifdef __STDC__
30449 # include <limits.h>
30450 #else
30451 # include <assert.h>
30452 #endif
30454 #undef $ac_func
30456 /* Override any gcc2 internal prototype to avoid an error. */
30457 #ifdef __cplusplus
30458 extern "C"
30460 #endif
30461 /* We use char because int might match the return type of a gcc2
30462 builtin and then its argument prototype would still apply. */
30463 char $ac_func ();
30464 /* The GNU C library defines this for functions which it implements
30465 to always fail with ENOSYS. Some functions are actually named
30466 something starting with __ and the normal name is an alias. */
30467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30468 choke me
30469 #else
30470 char (*f) () = $ac_func;
30471 #endif
30472 #ifdef __cplusplus
30474 #endif
30477 main ()
30479 return f != $ac_func;
30481 return 0;
30483 _ACEOF
30484 rm -f conftest.$ac_objext conftest$ac_exeext
30485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30486 (eval $ac_link) 2>conftest.er1
30487 ac_status=$?
30488 grep -v '^ *+' conftest.er1 >conftest.err
30489 rm -f conftest.er1
30490 cat conftest.err >&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); } &&
30493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495 (eval $ac_try) 2>&5
30496 ac_status=$?
30497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498 (exit $ac_status); }; } &&
30499 { ac_try='test -s conftest$ac_exeext'
30500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30504 (exit $ac_status); }; }; then
30505 eval "$as_ac_var=yes"
30506 else
30507 echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30510 eval "$as_ac_var=no"
30512 rm -f conftest.err conftest.$ac_objext \
30513 conftest$ac_exeext conftest.$ac_ext
30515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30517 if test `eval echo '${'$as_ac_var'}'` = yes; then
30518 cat >>confdefs.h <<_ACEOF
30519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30520 _ACEOF
30523 done
30525 echo "$as_me:$LINENO: checking for working mmap" >&5
30526 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30527 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30528 echo $ECHO_N "(cached) $ECHO_C" >&6
30529 else
30530 if test "$cross_compiling" = yes; then
30531 ac_cv_func_mmap_fixed_mapped=no
30532 else
30533 cat >conftest.$ac_ext <<_ACEOF
30534 /* confdefs.h. */
30535 _ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h. */
30539 $ac_includes_default
30540 /* malloc might have been renamed as rpl_malloc. */
30541 #undef malloc
30543 /* Thanks to Mike Haertel and Jim Avera for this test.
30544 Here is a matrix of mmap possibilities:
30545 mmap private not fixed
30546 mmap private fixed at somewhere currently unmapped
30547 mmap private fixed at somewhere already mapped
30548 mmap shared not fixed
30549 mmap shared fixed at somewhere currently unmapped
30550 mmap shared fixed at somewhere already mapped
30551 For private mappings, we should verify that changes cannot be read()
30552 back from the file, nor mmap's back from the file at a different
30553 address. (There have been systems where private was not correctly
30554 implemented like the infamous i386 svr4.0, and systems where the
30555 VM page cache was not coherent with the file system buffer cache
30556 like early versions of FreeBSD and possibly contemporary NetBSD.)
30557 For shared mappings, we should conversely verify that changes get
30558 propagated back to all the places they're supposed to be.
30560 Grep wants private fixed already mapped.
30561 The main things grep needs to know about mmap are:
30562 * does it exist and is it safe to write into the mmap'd area
30563 * how to use it (BSD variants) */
30565 #include <fcntl.h>
30566 #include <sys/mman.h>
30568 #if !STDC_HEADERS && !HAVE_STDLIB_H
30569 char *malloc ();
30570 #endif
30572 /* This mess was copied from the GNU getpagesize.h. */
30573 #if !HAVE_GETPAGESIZE
30574 /* Assume that all systems that can run configure have sys/param.h. */
30575 # if !HAVE_SYS_PARAM_H
30576 # define HAVE_SYS_PARAM_H 1
30577 # endif
30579 # ifdef _SC_PAGESIZE
30580 # define getpagesize() sysconf(_SC_PAGESIZE)
30581 # else /* no _SC_PAGESIZE */
30582 # if HAVE_SYS_PARAM_H
30583 # include <sys/param.h>
30584 # ifdef EXEC_PAGESIZE
30585 # define getpagesize() EXEC_PAGESIZE
30586 # else /* no EXEC_PAGESIZE */
30587 # ifdef NBPG
30588 # define getpagesize() NBPG * CLSIZE
30589 # ifndef CLSIZE
30590 # define CLSIZE 1
30591 # endif /* no CLSIZE */
30592 # else /* no NBPG */
30593 # ifdef NBPC
30594 # define getpagesize() NBPC
30595 # else /* no NBPC */
30596 # ifdef PAGESIZE
30597 # define getpagesize() PAGESIZE
30598 # endif /* PAGESIZE */
30599 # endif /* no NBPC */
30600 # endif /* no NBPG */
30601 # endif /* no EXEC_PAGESIZE */
30602 # else /* no HAVE_SYS_PARAM_H */
30603 # define getpagesize() 8192 /* punt totally */
30604 # endif /* no HAVE_SYS_PARAM_H */
30605 # endif /* no _SC_PAGESIZE */
30607 #endif /* no HAVE_GETPAGESIZE */
30610 main ()
30612 char *data, *data2, *data3;
30613 int i, pagesize;
30614 int fd;
30616 pagesize = getpagesize ();
30618 /* First, make a file with some known garbage in it. */
30619 data = (char *) malloc (pagesize);
30620 if (!data)
30621 exit (1);
30622 for (i = 0; i < pagesize; ++i)
30623 *(data + i) = rand ();
30624 umask (0);
30625 fd = creat ("conftest.mmap", 0600);
30626 if (fd < 0)
30627 exit (1);
30628 if (write (fd, data, pagesize) != pagesize)
30629 exit (1);
30630 close (fd);
30632 /* Next, try to mmap the file at a fixed address which already has
30633 something else allocated at it. If we can, also make sure that
30634 we see the same garbage. */
30635 fd = open ("conftest.mmap", O_RDWR);
30636 if (fd < 0)
30637 exit (1);
30638 data2 = (char *) malloc (2 * pagesize);
30639 if (!data2)
30640 exit (1);
30641 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30642 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30643 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30644 exit (1);
30645 for (i = 0; i < pagesize; ++i)
30646 if (*(data + i) != *(data2 + i))
30647 exit (1);
30649 /* Finally, make sure that changes to the mapped area do not
30650 percolate back to the file as seen by read(). (This is a bug on
30651 some variants of i386 svr4.0.) */
30652 for (i = 0; i < pagesize; ++i)
30653 *(data2 + i) = *(data2 + i) + 1;
30654 data3 = (char *) malloc (pagesize);
30655 if (!data3)
30656 exit (1);
30657 if (read (fd, data3, pagesize) != pagesize)
30658 exit (1);
30659 for (i = 0; i < pagesize; ++i)
30660 if (*(data + i) != *(data3 + i))
30661 exit (1);
30662 close (fd);
30663 exit (0);
30665 _ACEOF
30666 rm -f conftest$ac_exeext
30667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30668 (eval $ac_link) 2>&5
30669 ac_status=$?
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30674 ac_status=$?
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
30677 ac_cv_func_mmap_fixed_mapped=yes
30678 else
30679 echo "$as_me: program exited with status $ac_status" >&5
30680 echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30683 ( exit $ac_status )
30684 ac_cv_func_mmap_fixed_mapped=no
30686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30689 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30690 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30691 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30693 cat >>confdefs.h <<\_ACEOF
30694 #define HAVE_MMAP 1
30695 _ACEOF
30698 rm -f conftest.mmap
30702 else
30704 # This lets us hard-code the functionality we know we'll have in the cross
30705 # target environment. "Let" is a sugar-coated word placed on an especially
30706 # dull and tedious hack, actually.
30708 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
30709 # that involve linking, can't be used:
30710 # "cannot open sim-crt0.o"
30711 # "cannot open crt0.o"
30712 # etc. All this is because there currently exists no unified, consistent
30713 # way for top level CC information to be passed down to target directories:
30714 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
30715 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
30716 # crosses can be removed.
30718 # If Canadian cross, then don't pick up tools from the build directory.
30719 # Used only in GLIBCXX_EXPORT_INCLUDES.
30720 if test -n "$with_cross_host" &&
30721 test x"$build_alias" != x"$with_cross_host" &&
30722 test x"$build" != x"$target";
30723 then
30724 CANADIAN=yes
30725 else
30726 CANADIAN=no
30729 # Construct crosses by hand, eliminating bits that need ld...
30730 # GLIBCXX_CHECK_COMPILER_FEATURES
30731 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
30732 # GLIBCXX_CHECK_MATH_SUPPORT
30734 # First, test for "known" system libraries. We may be using newlib even
30735 # on a hosted environment.
30736 if test "x${with_newlib}" = "xyes"; then
30737 os_include_dir="os/newlib"
30738 cat >>confdefs.h <<\_ACEOF
30739 #define HAVE_HYPOT 1
30740 _ACEOF
30743 # GLIBCXX_CHECK_STDLIB_SUPPORT
30744 cat >>confdefs.h <<\_ACEOF
30745 #define HAVE_STRTOF 1
30746 _ACEOF
30748 cat >>confdefs.h <<\_ACEOF
30749 #define HAVE_STRTOLD 1
30750 _ACEOF
30752 # AC_FUNC_MMAP
30753 cat >>confdefs.h <<\_ACEOF
30754 #define HAVE_MMAP 1
30755 _ACEOF
30758 cat >>confdefs.h <<\_ACEOF
30759 #define HAVE_ACOSF 1
30760 _ACEOF
30762 cat >>confdefs.h <<\_ACEOF
30763 #define HAVE_ASINF 1
30764 _ACEOF
30766 cat >>confdefs.h <<\_ACEOF
30767 #define HAVE_ATAN2F 1
30768 _ACEOF
30770 cat >>confdefs.h <<\_ACEOF
30771 #define HAVE_ATANF 1
30772 _ACEOF
30774 cat >>confdefs.h <<\_ACEOF
30775 #define HAVE_CEILF 1
30776 _ACEOF
30778 cat >>confdefs.h <<\_ACEOF
30779 #define HAVE_COPYSIGN 1
30780 _ACEOF
30782 cat >>confdefs.h <<\_ACEOF
30783 #define HAVE_COPYSIGNF 1
30784 _ACEOF
30786 cat >>confdefs.h <<\_ACEOF
30787 #define HAVE_COSF 1
30788 _ACEOF
30790 cat >>confdefs.h <<\_ACEOF
30791 #define HAVE_COSHF 1
30792 _ACEOF
30794 cat >>confdefs.h <<\_ACEOF
30795 #define HAVE_EXPF 1
30796 _ACEOF
30798 cat >>confdefs.h <<\_ACEOF
30799 #define HAVE_FABSF 1
30800 _ACEOF
30802 cat >>confdefs.h <<\_ACEOF
30803 #define HAVE_FLOORF 1
30804 _ACEOF
30806 cat >>confdefs.h <<\_ACEOF
30807 #define HAVE_FMODF 1
30808 _ACEOF
30810 cat >>confdefs.h <<\_ACEOF
30811 #define HAVE_FREXPF 1
30812 _ACEOF
30814 cat >>confdefs.h <<\_ACEOF
30815 #define HAVE_LDEXPF 1
30816 _ACEOF
30818 cat >>confdefs.h <<\_ACEOF
30819 #define HAVE_LOG10F 1
30820 _ACEOF
30822 cat >>confdefs.h <<\_ACEOF
30823 #define HAVE_LOGF 1
30824 _ACEOF
30826 cat >>confdefs.h <<\_ACEOF
30827 #define HAVE_MODFF 1
30828 _ACEOF
30830 cat >>confdefs.h <<\_ACEOF
30831 #define HAVE_POWF 1
30832 _ACEOF
30834 cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_SINF 1
30836 _ACEOF
30838 cat >>confdefs.h <<\_ACEOF
30839 #define HAVE_SINHF 1
30840 _ACEOF
30842 cat >>confdefs.h <<\_ACEOF
30843 #define HAVE_SQRTF 1
30844 _ACEOF
30846 cat >>confdefs.h <<\_ACEOF
30847 #define HAVE_TANF 1
30848 _ACEOF
30850 cat >>confdefs.h <<\_ACEOF
30851 #define HAVE_TANHF 1
30852 _ACEOF
30854 else
30856 # Base decisions on target environment.
30857 case "${host}" in
30858 *-darwin*)
30859 # Darwin versions vary, but the linker should work in a cross environment,
30860 # so we just check for all the features here.
30861 # Check for available headers.
30875 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
30876 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
30877 sys/types.h
30879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30881 echo "$as_me:$LINENO: checking for $ac_header" >&5
30882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30884 echo $ECHO_N "(cached) $ECHO_C" >&6
30886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30888 else
30889 # Is the header compilable?
30890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30892 cat >conftest.$ac_ext <<_ACEOF
30893 /* confdefs.h. */
30894 _ACEOF
30895 cat confdefs.h >>conftest.$ac_ext
30896 cat >>conftest.$ac_ext <<_ACEOF
30897 /* end confdefs.h. */
30898 $ac_includes_default
30899 #include <$ac_header>
30900 _ACEOF
30901 rm -f conftest.$ac_objext
30902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30903 (eval $ac_compile) 2>conftest.er1
30904 ac_status=$?
30905 grep -v '^ *+' conftest.er1 >conftest.err
30906 rm -f conftest.er1
30907 cat conftest.err >&5
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); } &&
30910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30912 (eval $ac_try) 2>&5
30913 ac_status=$?
30914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30915 (exit $ac_status); }; } &&
30916 { ac_try='test -s conftest.$ac_objext'
30917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30918 (eval $ac_try) 2>&5
30919 ac_status=$?
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); }; }; then
30922 ac_header_compiler=yes
30923 else
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30927 ac_header_compiler=no
30929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30931 echo "${ECHO_T}$ac_header_compiler" >&6
30933 # Is the header present?
30934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30936 cat >conftest.$ac_ext <<_ACEOF
30937 /* confdefs.h. */
30938 _ACEOF
30939 cat confdefs.h >>conftest.$ac_ext
30940 cat >>conftest.$ac_ext <<_ACEOF
30941 /* end confdefs.h. */
30942 #include <$ac_header>
30943 _ACEOF
30944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30946 ac_status=$?
30947 grep -v '^ *+' conftest.er1 >conftest.err
30948 rm -f conftest.er1
30949 cat conftest.err >&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } >/dev/null; then
30952 if test -s conftest.err; then
30953 ac_cpp_err=$ac_c_preproc_warn_flag
30954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30955 else
30956 ac_cpp_err=
30958 else
30959 ac_cpp_err=yes
30961 if test -z "$ac_cpp_err"; then
30962 ac_header_preproc=yes
30963 else
30964 echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30967 ac_header_preproc=no
30969 rm -f conftest.err conftest.$ac_ext
30970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30971 echo "${ECHO_T}$ac_header_preproc" >&6
30973 # So? What about this header?
30974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30975 yes:no: )
30976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30980 ac_header_preproc=yes
30982 no:yes:* )
30983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30996 cat <<\_ASBOX
30997 ## ----------------------------------------- ##
30998 ## Report this to the package-unused lists. ##
30999 ## ----------------------------------------- ##
31000 _ASBOX
31002 sed "s/^/$as_me: WARNING: /" >&2
31004 esac
31005 echo "$as_me:$LINENO: checking for $ac_header" >&5
31006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31008 echo $ECHO_N "(cached) $ECHO_C" >&6
31009 else
31010 eval "$as_ac_Header=\$ac_header_preproc"
31012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31017 cat >>confdefs.h <<_ACEOF
31018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31019 _ACEOF
31023 done
31027 # All these tests are for C++; save the language and the compiler flags.
31028 # The CXXFLAGS thing is suspicious, but based on similar bits previously
31029 # found in GLIBCXX_CONFIGURE.
31032 ac_ext=cc
31033 ac_cpp='$CXXCPP $CPPFLAGS'
31034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31038 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31039 ac_save_CXXFLAGS="$CXXFLAGS"
31041 # Check for maintainer-mode bits.
31042 if test x"$USE_MAINTAINER_MODE" = xno; then
31043 WERROR=''
31044 else
31045 WERROR='-Werror'
31048 # Check for -ffunction-sections -fdata-sections
31049 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31050 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31051 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31052 cat >conftest.$ac_ext <<_ACEOF
31053 /* confdefs.h. */
31054 _ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h. */
31060 main ()
31062 int foo;
31064 return 0;
31066 _ACEOF
31067 rm -f conftest.$ac_objext
31068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31069 (eval $ac_compile) 2>conftest.er1
31070 ac_status=$?
31071 grep -v '^ *+' conftest.er1 >conftest.err
31072 rm -f conftest.er1
31073 cat conftest.err >&5
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); } &&
31076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31078 (eval $ac_try) 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; } &&
31082 { ac_try='test -s conftest.$ac_objext'
31083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084 (eval $ac_try) 2>&5
31085 ac_status=$?
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; }; then
31088 ac_fdsections=yes
31089 else
31090 echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.$ac_ext >&5
31093 ac_fdsections=no
31095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31096 if test "$ac_test_CXXFLAGS" = set; then
31097 CXXFLAGS="$ac_save_CXXFLAGS"
31098 else
31099 # this is the suspicious part
31100 CXXFLAGS=''
31102 if test x"$ac_fdsections" = x"yes"; then
31103 SECTION_FLAGS='-ffunction-sections -fdata-sections'
31105 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31106 echo "${ECHO_T}$ac_fdsections" >&6
31108 ac_ext=c
31109 ac_cpp='$CPP $CPPFLAGS'
31110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31117 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31119 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31120 ac_save_CXXFLAGS="$CXXFLAGS"
31121 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31123 echo "$as_me:$LINENO: checking for sin in -lm" >&5
31124 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31125 if test "${ac_cv_lib_m_sin+set}" = set; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
31127 else
31128 ac_check_lib_save_LIBS=$LIBS
31129 LIBS="-lm $LIBS"
31130 if test x$gcc_no_link = xyes; then
31131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31133 { (exit 1); exit 1; }; }
31135 cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h. */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31142 /* Override any gcc2 internal prototype to avoid an error. */
31143 #ifdef __cplusplus
31144 extern "C"
31145 #endif
31146 /* We use char because int might match the return type of a gcc2
31147 builtin and then its argument prototype would still apply. */
31148 char sin ();
31150 main ()
31152 sin ();
31154 return 0;
31156 _ACEOF
31157 rm -f conftest.$ac_objext conftest$ac_exeext
31158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31159 (eval $ac_link) 2>conftest.er1
31160 ac_status=$?
31161 grep -v '^ *+' conftest.er1 >conftest.err
31162 rm -f conftest.er1
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } &&
31166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168 (eval $ac_try) 2>&5
31169 ac_status=$?
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; } &&
31172 { ac_try='test -s conftest$ac_exeext'
31173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174 (eval $ac_try) 2>&5
31175 ac_status=$?
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; }; then
31178 ac_cv_lib_m_sin=yes
31179 else
31180 echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31183 ac_cv_lib_m_sin=no
31185 rm -f conftest.err conftest.$ac_objext \
31186 conftest$ac_exeext conftest.$ac_ext
31187 LIBS=$ac_check_lib_save_LIBS
31189 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31190 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31191 if test $ac_cv_lib_m_sin = yes; then
31192 libm="-lm"
31195 ac_save_LIBS="$LIBS"
31196 LIBS="$LIBS $libm"
31200 echo "$as_me:$LINENO: checking for isinf declaration" >&5
31201 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31202 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31203 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31205 else
31209 ac_ext=cc
31210 ac_cpp='$CXXCPP $CPPFLAGS'
31211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31215 cat >conftest.$ac_ext <<_ACEOF
31216 /* confdefs.h. */
31217 _ACEOF
31218 cat confdefs.h >>conftest.$ac_ext
31219 cat >>conftest.$ac_ext <<_ACEOF
31220 /* end confdefs.h. */
31221 #include <math.h>
31222 #ifdef HAVE_IEEEFP_H
31223 #include <ieeefp.h>
31224 #endif
31227 main ()
31229 isinf(0);
31231 return 0;
31233 _ACEOF
31234 rm -f conftest.$ac_objext
31235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31236 (eval $ac_compile) 2>conftest.er1
31237 ac_status=$?
31238 grep -v '^ *+' conftest.er1 >conftest.err
31239 rm -f conftest.er1
31240 cat conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); } &&
31243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31245 (eval $ac_try) 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; } &&
31249 { ac_try='test -s conftest.$ac_objext'
31250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31251 (eval $ac_try) 2>&5
31252 ac_status=$?
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); }; }; then
31255 glibcxx_cv_func_isinf_use=yes
31256 else
31257 echo "$as_me: failed program was:" >&5
31258 sed 's/^/| /' conftest.$ac_ext >&5
31260 glibcxx_cv_func_isinf_use=no
31262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31263 ac_ext=c
31264 ac_cpp='$CPP $CPPFLAGS'
31265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31273 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31274 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31276 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31278 for ac_func in isinf
31280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31281 echo "$as_me:$LINENO: checking for $ac_func" >&5
31282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31283 if eval "test \"\${$as_ac_var+set}\" = set"; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31285 else
31286 if test x$gcc_no_link = xyes; then
31287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31289 { (exit 1); exit 1; }; }
31291 cat >conftest.$ac_ext <<_ACEOF
31292 /* confdefs.h. */
31293 _ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h. */
31297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31299 #define $ac_func innocuous_$ac_func
31301 /* System header to define __stub macros and hopefully few prototypes,
31302 which can conflict with char $ac_func (); below.
31303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31304 <limits.h> exists even on freestanding compilers. */
31306 #ifdef __STDC__
31307 # include <limits.h>
31308 #else
31309 # include <assert.h>
31310 #endif
31312 #undef $ac_func
31314 /* Override any gcc2 internal prototype to avoid an error. */
31315 #ifdef __cplusplus
31316 extern "C"
31318 #endif
31319 /* We use char because int might match the return type of a gcc2
31320 builtin and then its argument prototype would still apply. */
31321 char $ac_func ();
31322 /* The GNU C library defines this for functions which it implements
31323 to always fail with ENOSYS. Some functions are actually named
31324 something starting with __ and the normal name is an alias. */
31325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31326 choke me
31327 #else
31328 char (*f) () = $ac_func;
31329 #endif
31330 #ifdef __cplusplus
31332 #endif
31335 main ()
31337 return f != $ac_func;
31339 return 0;
31341 _ACEOF
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31344 (eval $ac_link) 2>conftest.er1
31345 ac_status=$?
31346 grep -v '^ *+' conftest.er1 >conftest.err
31347 rm -f conftest.er1
31348 cat conftest.err >&5
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); } &&
31351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31353 (eval $ac_try) 2>&5
31354 ac_status=$?
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; } &&
31357 { ac_try='test -s conftest$ac_exeext'
31358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359 (eval $ac_try) 2>&5
31360 ac_status=$?
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); }; }; then
31363 eval "$as_ac_var=yes"
31364 else
31365 echo "$as_me: failed program was:" >&5
31366 sed 's/^/| /' conftest.$ac_ext >&5
31368 eval "$as_ac_var=no"
31370 rm -f conftest.err conftest.$ac_objext \
31371 conftest$ac_exeext conftest.$ac_ext
31373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31375 if test `eval echo '${'$as_ac_var'}'` = yes; then
31376 cat >>confdefs.h <<_ACEOF
31377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31378 _ACEOF
31381 done
31383 else
31385 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31386 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31387 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31388 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31394 ac_ext=cc
31395 ac_cpp='$CXXCPP $CPPFLAGS'
31396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31400 cat >conftest.$ac_ext <<_ACEOF
31401 /* confdefs.h. */
31402 _ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h. */
31406 #include <math.h>
31407 #ifdef HAVE_IEEEFP_H
31408 #include <ieeefp.h>
31409 #endif
31412 main ()
31414 _isinf(0);
31416 return 0;
31418 _ACEOF
31419 rm -f conftest.$ac_objext
31420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31421 (eval $ac_compile) 2>conftest.er1
31422 ac_status=$?
31423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; } &&
31434 { ac_try='test -s conftest.$ac_objext'
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; }; then
31440 glibcxx_cv_func__isinf_use=yes
31441 else
31442 echo "$as_me: failed program was:" >&5
31443 sed 's/^/| /' conftest.$ac_ext >&5
31445 glibcxx_cv_func__isinf_use=no
31447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31448 ac_ext=c
31449 ac_cpp='$CPP $CPPFLAGS'
31450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31458 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31459 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31461 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31463 for ac_func in _isinf
31465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31466 echo "$as_me:$LINENO: checking for $ac_func" >&5
31467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31468 if eval "test \"\${$as_ac_var+set}\" = set"; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31470 else
31471 if test x$gcc_no_link = xyes; then
31472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31474 { (exit 1); exit 1; }; }
31476 cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h. */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h. */
31482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31484 #define $ac_func innocuous_$ac_func
31486 /* System header to define __stub macros and hopefully few prototypes,
31487 which can conflict with char $ac_func (); below.
31488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31489 <limits.h> exists even on freestanding compilers. */
31491 #ifdef __STDC__
31492 # include <limits.h>
31493 #else
31494 # include <assert.h>
31495 #endif
31497 #undef $ac_func
31499 /* Override any gcc2 internal prototype to avoid an error. */
31500 #ifdef __cplusplus
31501 extern "C"
31503 #endif
31504 /* We use char because int might match the return type of a gcc2
31505 builtin and then its argument prototype would still apply. */
31506 char $ac_func ();
31507 /* The GNU C library defines this for functions which it implements
31508 to always fail with ENOSYS. Some functions are actually named
31509 something starting with __ and the normal name is an alias. */
31510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31511 choke me
31512 #else
31513 char (*f) () = $ac_func;
31514 #endif
31515 #ifdef __cplusplus
31517 #endif
31520 main ()
31522 return f != $ac_func;
31524 return 0;
31526 _ACEOF
31527 rm -f conftest.$ac_objext conftest$ac_exeext
31528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31529 (eval $ac_link) 2>conftest.er1
31530 ac_status=$?
31531 grep -v '^ *+' conftest.er1 >conftest.err
31532 rm -f conftest.er1
31533 cat conftest.err >&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); } &&
31536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538 (eval $ac_try) 2>&5
31539 ac_status=$?
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; } &&
31542 { ac_try='test -s conftest$ac_exeext'
31543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544 (eval $ac_try) 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; }; then
31548 eval "$as_ac_var=yes"
31549 else
31550 echo "$as_me: failed program was:" >&5
31551 sed 's/^/| /' conftest.$ac_ext >&5
31553 eval "$as_ac_var=no"
31555 rm -f conftest.err conftest.$ac_objext \
31556 conftest$ac_exeext conftest.$ac_ext
31558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31560 if test `eval echo '${'$as_ac_var'}'` = yes; then
31561 cat >>confdefs.h <<_ACEOF
31562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31563 _ACEOF
31566 done
31573 echo "$as_me:$LINENO: checking for isnan declaration" >&5
31574 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
31575 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
31576 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
31577 echo $ECHO_N "(cached) $ECHO_C" >&6
31578 else
31582 ac_ext=cc
31583 ac_cpp='$CXXCPP $CPPFLAGS'
31584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31588 cat >conftest.$ac_ext <<_ACEOF
31589 /* confdefs.h. */
31590 _ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h. */
31594 #include <math.h>
31595 #ifdef HAVE_IEEEFP_H
31596 #include <ieeefp.h>
31597 #endif
31600 main ()
31602 isnan(0);
31604 return 0;
31606 _ACEOF
31607 rm -f conftest.$ac_objext
31608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31609 (eval $ac_compile) 2>conftest.er1
31610 ac_status=$?
31611 grep -v '^ *+' conftest.er1 >conftest.err
31612 rm -f conftest.er1
31613 cat conftest.err >&5
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } &&
31616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618 (eval $ac_try) 2>&5
31619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; } &&
31622 { ac_try='test -s conftest.$ac_objext'
31623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31624 (eval $ac_try) 2>&5
31625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); }; }; then
31628 glibcxx_cv_func_isnan_use=yes
31629 else
31630 echo "$as_me: failed program was:" >&5
31631 sed 's/^/| /' conftest.$ac_ext >&5
31633 glibcxx_cv_func_isnan_use=no
31635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31636 ac_ext=c
31637 ac_cpp='$CPP $CPPFLAGS'
31638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31646 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
31647 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
31649 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
31651 for ac_func in isnan
31653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31654 echo "$as_me:$LINENO: checking for $ac_func" >&5
31655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31656 if eval "test \"\${$as_ac_var+set}\" = set"; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
31658 else
31659 if test x$gcc_no_link = xyes; then
31660 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31661 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31662 { (exit 1); exit 1; }; }
31664 cat >conftest.$ac_ext <<_ACEOF
31665 /* confdefs.h. */
31666 _ACEOF
31667 cat confdefs.h >>conftest.$ac_ext
31668 cat >>conftest.$ac_ext <<_ACEOF
31669 /* end confdefs.h. */
31670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31672 #define $ac_func innocuous_$ac_func
31674 /* System header to define __stub macros and hopefully few prototypes,
31675 which can conflict with char $ac_func (); below.
31676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31677 <limits.h> exists even on freestanding compilers. */
31679 #ifdef __STDC__
31680 # include <limits.h>
31681 #else
31682 # include <assert.h>
31683 #endif
31685 #undef $ac_func
31687 /* Override any gcc2 internal prototype to avoid an error. */
31688 #ifdef __cplusplus
31689 extern "C"
31691 #endif
31692 /* We use char because int might match the return type of a gcc2
31693 builtin and then its argument prototype would still apply. */
31694 char $ac_func ();
31695 /* The GNU C library defines this for functions which it implements
31696 to always fail with ENOSYS. Some functions are actually named
31697 something starting with __ and the normal name is an alias. */
31698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31699 choke me
31700 #else
31701 char (*f) () = $ac_func;
31702 #endif
31703 #ifdef __cplusplus
31705 #endif
31708 main ()
31710 return f != $ac_func;
31712 return 0;
31714 _ACEOF
31715 rm -f conftest.$ac_objext conftest$ac_exeext
31716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31717 (eval $ac_link) 2>conftest.er1
31718 ac_status=$?
31719 grep -v '^ *+' conftest.er1 >conftest.err
31720 rm -f conftest.er1
31721 cat conftest.err >&5
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); } &&
31724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31726 (eval $ac_try) 2>&5
31727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; } &&
31730 { ac_try='test -s conftest$ac_exeext'
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
31736 eval "$as_ac_var=yes"
31737 else
31738 echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31741 eval "$as_ac_var=no"
31743 rm -f conftest.err conftest.$ac_objext \
31744 conftest$ac_exeext conftest.$ac_ext
31746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31748 if test `eval echo '${'$as_ac_var'}'` = yes; then
31749 cat >>confdefs.h <<_ACEOF
31750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31751 _ACEOF
31754 done
31756 else
31758 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
31759 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
31760 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
31761 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31763 else
31767 ac_ext=cc
31768 ac_cpp='$CXXCPP $CPPFLAGS'
31769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31773 cat >conftest.$ac_ext <<_ACEOF
31774 /* confdefs.h. */
31775 _ACEOF
31776 cat confdefs.h >>conftest.$ac_ext
31777 cat >>conftest.$ac_ext <<_ACEOF
31778 /* end confdefs.h. */
31779 #include <math.h>
31780 #ifdef HAVE_IEEEFP_H
31781 #include <ieeefp.h>
31782 #endif
31785 main ()
31787 _isnan(0);
31789 return 0;
31791 _ACEOF
31792 rm -f conftest.$ac_objext
31793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31794 (eval $ac_compile) 2>conftest.er1
31795 ac_status=$?
31796 grep -v '^ *+' conftest.er1 >conftest.err
31797 rm -f conftest.er1
31798 cat conftest.err >&5
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); } &&
31801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31803 (eval $ac_try) 2>&5
31804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; } &&
31807 { ac_try='test -s conftest.$ac_objext'
31808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809 (eval $ac_try) 2>&5
31810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; }; then
31813 glibcxx_cv_func__isnan_use=yes
31814 else
31815 echo "$as_me: failed program was:" >&5
31816 sed 's/^/| /' conftest.$ac_ext >&5
31818 glibcxx_cv_func__isnan_use=no
31820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31821 ac_ext=c
31822 ac_cpp='$CPP $CPPFLAGS'
31823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31831 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
31832 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
31834 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
31836 for ac_func in _isnan
31838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31839 echo "$as_me:$LINENO: checking for $ac_func" >&5
31840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31841 if eval "test \"\${$as_ac_var+set}\" = set"; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31843 else
31844 if test x$gcc_no_link = xyes; then
31845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31847 { (exit 1); exit 1; }; }
31849 cat >conftest.$ac_ext <<_ACEOF
31850 /* confdefs.h. */
31851 _ACEOF
31852 cat confdefs.h >>conftest.$ac_ext
31853 cat >>conftest.$ac_ext <<_ACEOF
31854 /* end confdefs.h. */
31855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31857 #define $ac_func innocuous_$ac_func
31859 /* System header to define __stub macros and hopefully few prototypes,
31860 which can conflict with char $ac_func (); below.
31861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31862 <limits.h> exists even on freestanding compilers. */
31864 #ifdef __STDC__
31865 # include <limits.h>
31866 #else
31867 # include <assert.h>
31868 #endif
31870 #undef $ac_func
31872 /* Override any gcc2 internal prototype to avoid an error. */
31873 #ifdef __cplusplus
31874 extern "C"
31876 #endif
31877 /* We use char because int might match the return type of a gcc2
31878 builtin and then its argument prototype would still apply. */
31879 char $ac_func ();
31880 /* The GNU C library defines this for functions which it implements
31881 to always fail with ENOSYS. Some functions are actually named
31882 something starting with __ and the normal name is an alias. */
31883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31884 choke me
31885 #else
31886 char (*f) () = $ac_func;
31887 #endif
31888 #ifdef __cplusplus
31890 #endif
31893 main ()
31895 return f != $ac_func;
31897 return 0;
31899 _ACEOF
31900 rm -f conftest.$ac_objext conftest$ac_exeext
31901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31902 (eval $ac_link) 2>conftest.er1
31903 ac_status=$?
31904 grep -v '^ *+' conftest.er1 >conftest.err
31905 rm -f conftest.er1
31906 cat conftest.err >&5
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); } &&
31909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911 (eval $ac_try) 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; } &&
31915 { ac_try='test -s conftest$ac_exeext'
31916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917 (eval $ac_try) 2>&5
31918 ac_status=$?
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
31921 eval "$as_ac_var=yes"
31922 else
31923 echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31926 eval "$as_ac_var=no"
31928 rm -f conftest.err conftest.$ac_objext \
31929 conftest$ac_exeext conftest.$ac_ext
31931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31933 if test `eval echo '${'$as_ac_var'}'` = yes; then
31934 cat >>confdefs.h <<_ACEOF
31935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31936 _ACEOF
31939 done
31946 echo "$as_me:$LINENO: checking for finite declaration" >&5
31947 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
31948 if test x${glibcxx_cv_func_finite_use+set} != xset; then
31949 if test "${glibcxx_cv_func_finite_use+set}" = set; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951 else
31955 ac_ext=cc
31956 ac_cpp='$CXXCPP $CPPFLAGS'
31957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31961 cat >conftest.$ac_ext <<_ACEOF
31962 /* confdefs.h. */
31963 _ACEOF
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h. */
31967 #include <math.h>
31968 #ifdef HAVE_IEEEFP_H
31969 #include <ieeefp.h>
31970 #endif
31973 main ()
31975 finite(0);
31977 return 0;
31979 _ACEOF
31980 rm -f conftest.$ac_objext
31981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31982 (eval $ac_compile) 2>conftest.er1
31983 ac_status=$?
31984 grep -v '^ *+' conftest.er1 >conftest.err
31985 rm -f conftest.er1
31986 cat conftest.err >&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); } &&
31989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31992 ac_status=$?
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; } &&
31995 { ac_try='test -s conftest.$ac_objext'
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31998 ac_status=$?
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; }; then
32001 glibcxx_cv_func_finite_use=yes
32002 else
32003 echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32006 glibcxx_cv_func_finite_use=no
32008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32009 ac_ext=c
32010 ac_cpp='$CPP $CPPFLAGS'
32011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32019 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32020 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32022 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32024 for ac_func in finite
32026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32027 echo "$as_me:$LINENO: checking for $ac_func" >&5
32028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32029 if eval "test \"\${$as_ac_var+set}\" = set"; then
32030 echo $ECHO_N "(cached) $ECHO_C" >&6
32031 else
32032 if test x$gcc_no_link = xyes; then
32033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32035 { (exit 1); exit 1; }; }
32037 cat >conftest.$ac_ext <<_ACEOF
32038 /* confdefs.h. */
32039 _ACEOF
32040 cat confdefs.h >>conftest.$ac_ext
32041 cat >>conftest.$ac_ext <<_ACEOF
32042 /* end confdefs.h. */
32043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32045 #define $ac_func innocuous_$ac_func
32047 /* System header to define __stub macros and hopefully few prototypes,
32048 which can conflict with char $ac_func (); below.
32049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32050 <limits.h> exists even on freestanding compilers. */
32052 #ifdef __STDC__
32053 # include <limits.h>
32054 #else
32055 # include <assert.h>
32056 #endif
32058 #undef $ac_func
32060 /* Override any gcc2 internal prototype to avoid an error. */
32061 #ifdef __cplusplus
32062 extern "C"
32064 #endif
32065 /* We use char because int might match the return type of a gcc2
32066 builtin and then its argument prototype would still apply. */
32067 char $ac_func ();
32068 /* The GNU C library defines this for functions which it implements
32069 to always fail with ENOSYS. Some functions are actually named
32070 something starting with __ and the normal name is an alias. */
32071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32072 choke me
32073 #else
32074 char (*f) () = $ac_func;
32075 #endif
32076 #ifdef __cplusplus
32078 #endif
32081 main ()
32083 return f != $ac_func;
32085 return 0;
32087 _ACEOF
32088 rm -f conftest.$ac_objext conftest$ac_exeext
32089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32090 (eval $ac_link) 2>conftest.er1
32091 ac_status=$?
32092 grep -v '^ *+' conftest.er1 >conftest.err
32093 rm -f conftest.er1
32094 cat conftest.err >&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); } &&
32097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; } &&
32103 { ac_try='test -s conftest$ac_exeext'
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
32109 eval "$as_ac_var=yes"
32110 else
32111 echo "$as_me: failed program was:" >&5
32112 sed 's/^/| /' conftest.$ac_ext >&5
32114 eval "$as_ac_var=no"
32116 rm -f conftest.err conftest.$ac_objext \
32117 conftest$ac_exeext conftest.$ac_ext
32119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32121 if test `eval echo '${'$as_ac_var'}'` = yes; then
32122 cat >>confdefs.h <<_ACEOF
32123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32124 _ACEOF
32127 done
32129 else
32131 echo "$as_me:$LINENO: checking for _finite declaration" >&5
32132 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32133 if test x${glibcxx_cv_func__finite_use+set} != xset; then
32134 if test "${glibcxx_cv_func__finite_use+set}" = set; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32136 else
32140 ac_ext=cc
32141 ac_cpp='$CXXCPP $CPPFLAGS'
32142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32146 cat >conftest.$ac_ext <<_ACEOF
32147 /* confdefs.h. */
32148 _ACEOF
32149 cat confdefs.h >>conftest.$ac_ext
32150 cat >>conftest.$ac_ext <<_ACEOF
32151 /* end confdefs.h. */
32152 #include <math.h>
32153 #ifdef HAVE_IEEEFP_H
32154 #include <ieeefp.h>
32155 #endif
32158 main ()
32160 _finite(0);
32162 return 0;
32164 _ACEOF
32165 rm -f conftest.$ac_objext
32166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32167 (eval $ac_compile) 2>conftest.er1
32168 ac_status=$?
32169 grep -v '^ *+' conftest.er1 >conftest.err
32170 rm -f conftest.er1
32171 cat conftest.err >&5
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); } &&
32174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32176 (eval $ac_try) 2>&5
32177 ac_status=$?
32178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 (exit $ac_status); }; } &&
32180 { ac_try='test -s conftest.$ac_objext'
32181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32182 (eval $ac_try) 2>&5
32183 ac_status=$?
32184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 (exit $ac_status); }; }; then
32186 glibcxx_cv_func__finite_use=yes
32187 else
32188 echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.$ac_ext >&5
32191 glibcxx_cv_func__finite_use=no
32193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32194 ac_ext=c
32195 ac_cpp='$CPP $CPPFLAGS'
32196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32204 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32205 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32207 if test x$glibcxx_cv_func__finite_use = x"yes"; then
32209 for ac_func in _finite
32211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32212 echo "$as_me:$LINENO: checking for $ac_func" >&5
32213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32214 if eval "test \"\${$as_ac_var+set}\" = set"; then
32215 echo $ECHO_N "(cached) $ECHO_C" >&6
32216 else
32217 if test x$gcc_no_link = xyes; then
32218 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32220 { (exit 1); exit 1; }; }
32222 cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h. */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h. */
32228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32230 #define $ac_func innocuous_$ac_func
32232 /* System header to define __stub macros and hopefully few prototypes,
32233 which can conflict with char $ac_func (); below.
32234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32235 <limits.h> exists even on freestanding compilers. */
32237 #ifdef __STDC__
32238 # include <limits.h>
32239 #else
32240 # include <assert.h>
32241 #endif
32243 #undef $ac_func
32245 /* Override any gcc2 internal prototype to avoid an error. */
32246 #ifdef __cplusplus
32247 extern "C"
32249 #endif
32250 /* We use char because int might match the return type of a gcc2
32251 builtin and then its argument prototype would still apply. */
32252 char $ac_func ();
32253 /* The GNU C library defines this for functions which it implements
32254 to always fail with ENOSYS. Some functions are actually named
32255 something starting with __ and the normal name is an alias. */
32256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32257 choke me
32258 #else
32259 char (*f) () = $ac_func;
32260 #endif
32261 #ifdef __cplusplus
32263 #endif
32266 main ()
32268 return f != $ac_func;
32270 return 0;
32272 _ACEOF
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32275 (eval $ac_link) 2>conftest.er1
32276 ac_status=$?
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } &&
32282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; } &&
32288 { ac_try='test -s conftest$ac_exeext'
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 eval "$as_ac_var=yes"
32295 else
32296 echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32299 eval "$as_ac_var=no"
32301 rm -f conftest.err conftest.$ac_objext \
32302 conftest$ac_exeext conftest.$ac_ext
32304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32306 if test `eval echo '${'$as_ac_var'}'` = yes; then
32307 cat >>confdefs.h <<_ACEOF
32308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32309 _ACEOF
32312 done
32319 echo "$as_me:$LINENO: checking for copysign declaration" >&5
32320 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32321 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32322 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32323 echo $ECHO_N "(cached) $ECHO_C" >&6
32324 else
32328 ac_ext=cc
32329 ac_cpp='$CXXCPP $CPPFLAGS'
32330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32334 cat >conftest.$ac_ext <<_ACEOF
32335 /* confdefs.h. */
32336 _ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h. */
32340 #include <math.h>
32342 main ()
32344 copysign(0, 0);
32346 return 0;
32348 _ACEOF
32349 rm -f conftest.$ac_objext
32350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32351 (eval $ac_compile) 2>conftest.er1
32352 ac_status=$?
32353 grep -v '^ *+' conftest.er1 >conftest.err
32354 rm -f conftest.er1
32355 cat conftest.err >&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } &&
32358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360 (eval $ac_try) 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; } &&
32364 { ac_try='test -s conftest.$ac_objext'
32365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32366 (eval $ac_try) 2>&5
32367 ac_status=$?
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); }; }; then
32370 glibcxx_cv_func_copysign_use=yes
32371 else
32372 echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32375 glibcxx_cv_func_copysign_use=no
32377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32378 ac_ext=c
32379 ac_cpp='$CPP $CPPFLAGS'
32380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32388 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32389 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32391 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32393 for ac_func in copysign
32395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32396 echo "$as_me:$LINENO: checking for $ac_func" >&5
32397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32398 if eval "test \"\${$as_ac_var+set}\" = set"; then
32399 echo $ECHO_N "(cached) $ECHO_C" >&6
32400 else
32401 if test x$gcc_no_link = xyes; then
32402 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32403 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32404 { (exit 1); exit 1; }; }
32406 cat >conftest.$ac_ext <<_ACEOF
32407 /* confdefs.h. */
32408 _ACEOF
32409 cat confdefs.h >>conftest.$ac_ext
32410 cat >>conftest.$ac_ext <<_ACEOF
32411 /* end confdefs.h. */
32412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32414 #define $ac_func innocuous_$ac_func
32416 /* System header to define __stub macros and hopefully few prototypes,
32417 which can conflict with char $ac_func (); below.
32418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32419 <limits.h> exists even on freestanding compilers. */
32421 #ifdef __STDC__
32422 # include <limits.h>
32423 #else
32424 # include <assert.h>
32425 #endif
32427 #undef $ac_func
32429 /* Override any gcc2 internal prototype to avoid an error. */
32430 #ifdef __cplusplus
32431 extern "C"
32433 #endif
32434 /* We use char because int might match the return type of a gcc2
32435 builtin and then its argument prototype would still apply. */
32436 char $ac_func ();
32437 /* The GNU C library defines this for functions which it implements
32438 to always fail with ENOSYS. Some functions are actually named
32439 something starting with __ and the normal name is an alias. */
32440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32441 choke me
32442 #else
32443 char (*f) () = $ac_func;
32444 #endif
32445 #ifdef __cplusplus
32447 #endif
32450 main ()
32452 return f != $ac_func;
32454 return 0;
32456 _ACEOF
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32459 (eval $ac_link) 2>conftest.er1
32460 ac_status=$?
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
32472 { ac_try='test -s conftest$ac_exeext'
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 eval "$as_ac_var=yes"
32479 else
32480 echo "$as_me: failed program was:" >&5
32481 sed 's/^/| /' conftest.$ac_ext >&5
32483 eval "$as_ac_var=no"
32485 rm -f conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
32488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32490 if test `eval echo '${'$as_ac_var'}'` = yes; then
32491 cat >>confdefs.h <<_ACEOF
32492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32493 _ACEOF
32496 done
32498 else
32500 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
32501 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
32502 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
32503 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
32504 echo $ECHO_N "(cached) $ECHO_C" >&6
32505 else
32509 ac_ext=cc
32510 ac_cpp='$CXXCPP $CPPFLAGS'
32511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32515 cat >conftest.$ac_ext <<_ACEOF
32516 /* confdefs.h. */
32517 _ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h. */
32521 #include <math.h>
32523 main ()
32525 _copysign(0, 0);
32527 return 0;
32529 _ACEOF
32530 rm -f conftest.$ac_objext
32531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32532 (eval $ac_compile) 2>conftest.er1
32533 ac_status=$?
32534 grep -v '^ *+' conftest.er1 >conftest.err
32535 rm -f conftest.er1
32536 cat conftest.err >&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } &&
32539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32541 (eval $ac_try) 2>&5
32542 ac_status=$?
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); }; } &&
32545 { ac_try='test -s conftest.$ac_objext'
32546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32547 (eval $ac_try) 2>&5
32548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 glibcxx_cv_func__copysign_use=yes
32552 else
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 glibcxx_cv_func__copysign_use=no
32558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32559 ac_ext=c
32560 ac_cpp='$CPP $CPPFLAGS'
32561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32569 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
32570 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
32572 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
32574 for ac_func in _copysign
32576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32577 echo "$as_me:$LINENO: checking for $ac_func" >&5
32578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32579 if eval "test \"\${$as_ac_var+set}\" = set"; then
32580 echo $ECHO_N "(cached) $ECHO_C" >&6
32581 else
32582 if test x$gcc_no_link = xyes; then
32583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32585 { (exit 1); exit 1; }; }
32587 cat >conftest.$ac_ext <<_ACEOF
32588 /* confdefs.h. */
32589 _ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h. */
32593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32595 #define $ac_func innocuous_$ac_func
32597 /* System header to define __stub macros and hopefully few prototypes,
32598 which can conflict with char $ac_func (); below.
32599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32600 <limits.h> exists even on freestanding compilers. */
32602 #ifdef __STDC__
32603 # include <limits.h>
32604 #else
32605 # include <assert.h>
32606 #endif
32608 #undef $ac_func
32610 /* Override any gcc2 internal prototype to avoid an error. */
32611 #ifdef __cplusplus
32612 extern "C"
32614 #endif
32615 /* We use char because int might match the return type of a gcc2
32616 builtin and then its argument prototype would still apply. */
32617 char $ac_func ();
32618 /* The GNU C library defines this for functions which it implements
32619 to always fail with ENOSYS. Some functions are actually named
32620 something starting with __ and the normal name is an alias. */
32621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32622 choke me
32623 #else
32624 char (*f) () = $ac_func;
32625 #endif
32626 #ifdef __cplusplus
32628 #endif
32631 main ()
32633 return f != $ac_func;
32635 return 0;
32637 _ACEOF
32638 rm -f conftest.$ac_objext conftest$ac_exeext
32639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32640 (eval $ac_link) 2>conftest.er1
32641 ac_status=$?
32642 grep -v '^ *+' conftest.er1 >conftest.err
32643 rm -f conftest.er1
32644 cat conftest.err >&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } &&
32647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32649 (eval $ac_try) 2>&5
32650 ac_status=$?
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); }; } &&
32653 { ac_try='test -s conftest$ac_exeext'
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
32659 eval "$as_ac_var=yes"
32660 else
32661 echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32664 eval "$as_ac_var=no"
32666 rm -f conftest.err conftest.$ac_objext \
32667 conftest$ac_exeext conftest.$ac_ext
32669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32671 if test `eval echo '${'$as_ac_var'}'` = yes; then
32672 cat >>confdefs.h <<_ACEOF
32673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32674 _ACEOF
32677 done
32684 echo "$as_me:$LINENO: checking for sincos declaration" >&5
32685 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
32686 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
32687 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
32688 echo $ECHO_N "(cached) $ECHO_C" >&6
32689 else
32693 ac_ext=cc
32694 ac_cpp='$CXXCPP $CPPFLAGS'
32695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32699 cat >conftest.$ac_ext <<_ACEOF
32700 /* confdefs.h. */
32701 _ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h. */
32705 #include <math.h>
32707 main ()
32709 sincos(0, 0, 0);
32711 return 0;
32713 _ACEOF
32714 rm -f conftest.$ac_objext
32715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32716 (eval $ac_compile) 2>conftest.er1
32717 ac_status=$?
32718 grep -v '^ *+' conftest.er1 >conftest.err
32719 rm -f conftest.er1
32720 cat conftest.err >&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); } &&
32723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32725 (eval $ac_try) 2>&5
32726 ac_status=$?
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; } &&
32729 { ac_try='test -s conftest.$ac_objext'
32730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731 (eval $ac_try) 2>&5
32732 ac_status=$?
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); }; }; then
32735 glibcxx_cv_func_sincos_use=yes
32736 else
32737 echo "$as_me: failed program was:" >&5
32738 sed 's/^/| /' conftest.$ac_ext >&5
32740 glibcxx_cv_func_sincos_use=no
32742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32743 ac_ext=c
32744 ac_cpp='$CPP $CPPFLAGS'
32745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32753 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
32754 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
32756 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
32758 for ac_func in sincos
32760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32761 echo "$as_me:$LINENO: checking for $ac_func" >&5
32762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32763 if eval "test \"\${$as_ac_var+set}\" = set"; then
32764 echo $ECHO_N "(cached) $ECHO_C" >&6
32765 else
32766 if test x$gcc_no_link = xyes; then
32767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32769 { (exit 1); exit 1; }; }
32771 cat >conftest.$ac_ext <<_ACEOF
32772 /* confdefs.h. */
32773 _ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h. */
32777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32779 #define $ac_func innocuous_$ac_func
32781 /* System header to define __stub macros and hopefully few prototypes,
32782 which can conflict with char $ac_func (); below.
32783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32784 <limits.h> exists even on freestanding compilers. */
32786 #ifdef __STDC__
32787 # include <limits.h>
32788 #else
32789 # include <assert.h>
32790 #endif
32792 #undef $ac_func
32794 /* Override any gcc2 internal prototype to avoid an error. */
32795 #ifdef __cplusplus
32796 extern "C"
32798 #endif
32799 /* We use char because int might match the return type of a gcc2
32800 builtin and then its argument prototype would still apply. */
32801 char $ac_func ();
32802 /* The GNU C library defines this for functions which it implements
32803 to always fail with ENOSYS. Some functions are actually named
32804 something starting with __ and the normal name is an alias. */
32805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32806 choke me
32807 #else
32808 char (*f) () = $ac_func;
32809 #endif
32810 #ifdef __cplusplus
32812 #endif
32815 main ()
32817 return f != $ac_func;
32819 return 0;
32821 _ACEOF
32822 rm -f conftest.$ac_objext conftest$ac_exeext
32823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32824 (eval $ac_link) 2>conftest.er1
32825 ac_status=$?
32826 grep -v '^ *+' conftest.er1 >conftest.err
32827 rm -f conftest.er1
32828 cat conftest.err >&5
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); } &&
32831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32834 ac_status=$?
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; } &&
32837 { ac_try='test -s conftest$ac_exeext'
32838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 (eval $ac_try) 2>&5
32840 ac_status=$?
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; }; then
32843 eval "$as_ac_var=yes"
32844 else
32845 echo "$as_me: failed program was:" >&5
32846 sed 's/^/| /' conftest.$ac_ext >&5
32848 eval "$as_ac_var=no"
32850 rm -f conftest.err conftest.$ac_objext \
32851 conftest$ac_exeext conftest.$ac_ext
32853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32855 if test `eval echo '${'$as_ac_var'}'` = yes; then
32856 cat >>confdefs.h <<_ACEOF
32857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32858 _ACEOF
32861 done
32863 else
32865 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
32866 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
32867 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
32868 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
32869 echo $ECHO_N "(cached) $ECHO_C" >&6
32870 else
32874 ac_ext=cc
32875 ac_cpp='$CXXCPP $CPPFLAGS'
32876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32880 cat >conftest.$ac_ext <<_ACEOF
32881 /* confdefs.h. */
32882 _ACEOF
32883 cat confdefs.h >>conftest.$ac_ext
32884 cat >>conftest.$ac_ext <<_ACEOF
32885 /* end confdefs.h. */
32886 #include <math.h>
32888 main ()
32890 _sincos(0, 0, 0);
32892 return 0;
32894 _ACEOF
32895 rm -f conftest.$ac_objext
32896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32897 (eval $ac_compile) 2>conftest.er1
32898 ac_status=$?
32899 grep -v '^ *+' conftest.er1 >conftest.err
32900 rm -f conftest.er1
32901 cat conftest.err >&5
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); } &&
32904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906 (eval $ac_try) 2>&5
32907 ac_status=$?
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); }; } &&
32910 { ac_try='test -s conftest.$ac_objext'
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32913 ac_status=$?
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; }; then
32916 glibcxx_cv_func__sincos_use=yes
32917 else
32918 echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32921 glibcxx_cv_func__sincos_use=no
32923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32924 ac_ext=c
32925 ac_cpp='$CPP $CPPFLAGS'
32926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32934 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
32935 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
32937 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
32939 for ac_func in _sincos
32941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32942 echo "$as_me:$LINENO: checking for $ac_func" >&5
32943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32944 if eval "test \"\${$as_ac_var+set}\" = set"; then
32945 echo $ECHO_N "(cached) $ECHO_C" >&6
32946 else
32947 if test x$gcc_no_link = xyes; then
32948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32950 { (exit 1); exit 1; }; }
32952 cat >conftest.$ac_ext <<_ACEOF
32953 /* confdefs.h. */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h. */
32958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32960 #define $ac_func innocuous_$ac_func
32962 /* System header to define __stub macros and hopefully few prototypes,
32963 which can conflict with char $ac_func (); below.
32964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32965 <limits.h> exists even on freestanding compilers. */
32967 #ifdef __STDC__
32968 # include <limits.h>
32969 #else
32970 # include <assert.h>
32971 #endif
32973 #undef $ac_func
32975 /* Override any gcc2 internal prototype to avoid an error. */
32976 #ifdef __cplusplus
32977 extern "C"
32979 #endif
32980 /* We use char because int might match the return type of a gcc2
32981 builtin and then its argument prototype would still apply. */
32982 char $ac_func ();
32983 /* The GNU C library defines this for functions which it implements
32984 to always fail with ENOSYS. Some functions are actually named
32985 something starting with __ and the normal name is an alias. */
32986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32987 choke me
32988 #else
32989 char (*f) () = $ac_func;
32990 #endif
32991 #ifdef __cplusplus
32993 #endif
32996 main ()
32998 return f != $ac_func;
33000 return 0;
33002 _ACEOF
33003 rm -f conftest.$ac_objext conftest$ac_exeext
33004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33005 (eval $ac_link) 2>conftest.er1
33006 ac_status=$?
33007 grep -v '^ *+' conftest.er1 >conftest.err
33008 rm -f conftest.er1
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } &&
33012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; } &&
33018 { ac_try='test -s conftest$ac_exeext'
33019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33020 (eval $ac_try) 2>&5
33021 ac_status=$?
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); }; }; then
33024 eval "$as_ac_var=yes"
33025 else
33026 echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33029 eval "$as_ac_var=no"
33031 rm -f conftest.err conftest.$ac_objext \
33032 conftest$ac_exeext conftest.$ac_ext
33034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33036 if test `eval echo '${'$as_ac_var'}'` = yes; then
33037 cat >>confdefs.h <<_ACEOF
33038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33039 _ACEOF
33042 done
33049 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33050 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33051 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33052 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33053 echo $ECHO_N "(cached) $ECHO_C" >&6
33054 else
33058 ac_ext=cc
33059 ac_cpp='$CXXCPP $CPPFLAGS'
33060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33064 cat >conftest.$ac_ext <<_ACEOF
33065 /* confdefs.h. */
33066 _ACEOF
33067 cat confdefs.h >>conftest.$ac_ext
33068 cat >>conftest.$ac_ext <<_ACEOF
33069 /* end confdefs.h. */
33070 #include <math.h>
33071 #ifdef HAVE_IEEEFP_H
33072 #include <ieeefp.h>
33073 #endif
33076 main ()
33078 fpclass(0);
33080 return 0;
33082 _ACEOF
33083 rm -f conftest.$ac_objext
33084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33085 (eval $ac_compile) 2>conftest.er1
33086 ac_status=$?
33087 grep -v '^ *+' conftest.er1 >conftest.err
33088 rm -f conftest.er1
33089 cat conftest.err >&5
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); } &&
33092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33094 (eval $ac_try) 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; } &&
33098 { ac_try='test -s conftest.$ac_objext'
33099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33100 (eval $ac_try) 2>&5
33101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; }; then
33104 glibcxx_cv_func_fpclass_use=yes
33105 else
33106 echo "$as_me: failed program was:" >&5
33107 sed 's/^/| /' conftest.$ac_ext >&5
33109 glibcxx_cv_func_fpclass_use=no
33111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33112 ac_ext=c
33113 ac_cpp='$CPP $CPPFLAGS'
33114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33122 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33123 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33125 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33127 for ac_func in fpclass
33129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33130 echo "$as_me:$LINENO: checking for $ac_func" >&5
33131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33132 if eval "test \"\${$as_ac_var+set}\" = set"; then
33133 echo $ECHO_N "(cached) $ECHO_C" >&6
33134 else
33135 if test x$gcc_no_link = xyes; then
33136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33138 { (exit 1); exit 1; }; }
33140 cat >conftest.$ac_ext <<_ACEOF
33141 /* confdefs.h. */
33142 _ACEOF
33143 cat confdefs.h >>conftest.$ac_ext
33144 cat >>conftest.$ac_ext <<_ACEOF
33145 /* end confdefs.h. */
33146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33148 #define $ac_func innocuous_$ac_func
33150 /* System header to define __stub macros and hopefully few prototypes,
33151 which can conflict with char $ac_func (); below.
33152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33153 <limits.h> exists even on freestanding compilers. */
33155 #ifdef __STDC__
33156 # include <limits.h>
33157 #else
33158 # include <assert.h>
33159 #endif
33161 #undef $ac_func
33163 /* Override any gcc2 internal prototype to avoid an error. */
33164 #ifdef __cplusplus
33165 extern "C"
33167 #endif
33168 /* We use char because int might match the return type of a gcc2
33169 builtin and then its argument prototype would still apply. */
33170 char $ac_func ();
33171 /* The GNU C library defines this for functions which it implements
33172 to always fail with ENOSYS. Some functions are actually named
33173 something starting with __ and the normal name is an alias. */
33174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33175 choke me
33176 #else
33177 char (*f) () = $ac_func;
33178 #endif
33179 #ifdef __cplusplus
33181 #endif
33184 main ()
33186 return f != $ac_func;
33188 return 0;
33190 _ACEOF
33191 rm -f conftest.$ac_objext conftest$ac_exeext
33192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33193 (eval $ac_link) 2>conftest.er1
33194 ac_status=$?
33195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } &&
33200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202 (eval $ac_try) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; } &&
33206 { ac_try='test -s conftest$ac_exeext'
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33209 ac_status=$?
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; }; then
33212 eval "$as_ac_var=yes"
33213 else
33214 echo "$as_me: failed program was:" >&5
33215 sed 's/^/| /' conftest.$ac_ext >&5
33217 eval "$as_ac_var=no"
33219 rm -f conftest.err conftest.$ac_objext \
33220 conftest$ac_exeext conftest.$ac_ext
33222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33224 if test `eval echo '${'$as_ac_var'}'` = yes; then
33225 cat >>confdefs.h <<_ACEOF
33226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33227 _ACEOF
33230 done
33232 else
33234 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33235 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33236 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33237 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33239 else
33243 ac_ext=cc
33244 ac_cpp='$CXXCPP $CPPFLAGS'
33245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33249 cat >conftest.$ac_ext <<_ACEOF
33250 /* confdefs.h. */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 #include <math.h>
33256 #ifdef HAVE_IEEEFP_H
33257 #include <ieeefp.h>
33258 #endif
33261 main ()
33263 _fpclass(0);
33265 return 0;
33267 _ACEOF
33268 rm -f conftest.$ac_objext
33269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33270 (eval $ac_compile) 2>conftest.er1
33271 ac_status=$?
33272 grep -v '^ *+' conftest.er1 >conftest.err
33273 rm -f conftest.er1
33274 cat conftest.err >&5
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
33277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279 (eval $ac_try) 2>&5
33280 ac_status=$?
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; } &&
33283 { ac_try='test -s conftest.$ac_objext'
33284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285 (eval $ac_try) 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; }; then
33289 glibcxx_cv_func__fpclass_use=yes
33290 else
33291 echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33294 glibcxx_cv_func__fpclass_use=no
33296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33297 ac_ext=c
33298 ac_cpp='$CPP $CPPFLAGS'
33299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33307 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33308 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33310 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33312 for ac_func in _fpclass
33314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33315 echo "$as_me:$LINENO: checking for $ac_func" >&5
33316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33317 if eval "test \"\${$as_ac_var+set}\" = set"; then
33318 echo $ECHO_N "(cached) $ECHO_C" >&6
33319 else
33320 if test x$gcc_no_link = xyes; then
33321 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33323 { (exit 1); exit 1; }; }
33325 cat >conftest.$ac_ext <<_ACEOF
33326 /* confdefs.h. */
33327 _ACEOF
33328 cat confdefs.h >>conftest.$ac_ext
33329 cat >>conftest.$ac_ext <<_ACEOF
33330 /* end confdefs.h. */
33331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33333 #define $ac_func innocuous_$ac_func
33335 /* System header to define __stub macros and hopefully few prototypes,
33336 which can conflict with char $ac_func (); below.
33337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33338 <limits.h> exists even on freestanding compilers. */
33340 #ifdef __STDC__
33341 # include <limits.h>
33342 #else
33343 # include <assert.h>
33344 #endif
33346 #undef $ac_func
33348 /* Override any gcc2 internal prototype to avoid an error. */
33349 #ifdef __cplusplus
33350 extern "C"
33352 #endif
33353 /* We use char because int might match the return type of a gcc2
33354 builtin and then its argument prototype would still apply. */
33355 char $ac_func ();
33356 /* The GNU C library defines this for functions which it implements
33357 to always fail with ENOSYS. Some functions are actually named
33358 something starting with __ and the normal name is an alias. */
33359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33360 choke me
33361 #else
33362 char (*f) () = $ac_func;
33363 #endif
33364 #ifdef __cplusplus
33366 #endif
33369 main ()
33371 return f != $ac_func;
33373 return 0;
33375 _ACEOF
33376 rm -f conftest.$ac_objext conftest$ac_exeext
33377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33378 (eval $ac_link) 2>conftest.er1
33379 ac_status=$?
33380 grep -v '^ *+' conftest.er1 >conftest.err
33381 rm -f conftest.er1
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } &&
33385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33387 (eval $ac_try) 2>&5
33388 ac_status=$?
33389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390 (exit $ac_status); }; } &&
33391 { ac_try='test -s conftest$ac_exeext'
33392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33393 (eval $ac_try) 2>&5
33394 ac_status=$?
33395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396 (exit $ac_status); }; }; then
33397 eval "$as_ac_var=yes"
33398 else
33399 echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33402 eval "$as_ac_var=no"
33404 rm -f conftest.err conftest.$ac_objext \
33405 conftest$ac_exeext conftest.$ac_ext
33407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33409 if test `eval echo '${'$as_ac_var'}'` = yes; then
33410 cat >>confdefs.h <<_ACEOF
33411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33412 _ACEOF
33415 done
33422 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33423 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33424 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33425 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427 else
33431 ac_ext=cc
33432 ac_cpp='$CXXCPP $CPPFLAGS'
33433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33437 cat >conftest.$ac_ext <<_ACEOF
33438 /* confdefs.h. */
33439 _ACEOF
33440 cat confdefs.h >>conftest.$ac_ext
33441 cat >>conftest.$ac_ext <<_ACEOF
33442 /* end confdefs.h. */
33443 #include <math.h>
33444 #ifdef HAVE_IEEEFP_H
33445 #include <ieeefp.h>
33446 #endif
33449 main ()
33451 qfpclass(0);
33453 return 0;
33455 _ACEOF
33456 rm -f conftest.$ac_objext
33457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33458 (eval $ac_compile) 2>conftest.er1
33459 ac_status=$?
33460 grep -v '^ *+' conftest.er1 >conftest.err
33461 rm -f conftest.er1
33462 cat conftest.err >&5
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); } &&
33465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33467 (eval $ac_try) 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; } &&
33471 { ac_try='test -s conftest.$ac_objext'
33472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33473 (eval $ac_try) 2>&5
33474 ac_status=$?
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; }; then
33477 glibcxx_cv_func_qfpclass_use=yes
33478 else
33479 echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33482 glibcxx_cv_func_qfpclass_use=no
33484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33485 ac_ext=c
33486 ac_cpp='$CPP $CPPFLAGS'
33487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33495 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
33496 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
33498 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
33500 for ac_func in qfpclass
33502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33503 echo "$as_me:$LINENO: checking for $ac_func" >&5
33504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33505 if eval "test \"\${$as_ac_var+set}\" = set"; then
33506 echo $ECHO_N "(cached) $ECHO_C" >&6
33507 else
33508 if test x$gcc_no_link = xyes; then
33509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33511 { (exit 1); exit 1; }; }
33513 cat >conftest.$ac_ext <<_ACEOF
33514 /* confdefs.h. */
33515 _ACEOF
33516 cat confdefs.h >>conftest.$ac_ext
33517 cat >>conftest.$ac_ext <<_ACEOF
33518 /* end confdefs.h. */
33519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33521 #define $ac_func innocuous_$ac_func
33523 /* System header to define __stub macros and hopefully few prototypes,
33524 which can conflict with char $ac_func (); below.
33525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33526 <limits.h> exists even on freestanding compilers. */
33528 #ifdef __STDC__
33529 # include <limits.h>
33530 #else
33531 # include <assert.h>
33532 #endif
33534 #undef $ac_func
33536 /* Override any gcc2 internal prototype to avoid an error. */
33537 #ifdef __cplusplus
33538 extern "C"
33540 #endif
33541 /* We use char because int might match the return type of a gcc2
33542 builtin and then its argument prototype would still apply. */
33543 char $ac_func ();
33544 /* The GNU C library defines this for functions which it implements
33545 to always fail with ENOSYS. Some functions are actually named
33546 something starting with __ and the normal name is an alias. */
33547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33548 choke me
33549 #else
33550 char (*f) () = $ac_func;
33551 #endif
33552 #ifdef __cplusplus
33554 #endif
33557 main ()
33559 return f != $ac_func;
33561 return 0;
33563 _ACEOF
33564 rm -f conftest.$ac_objext conftest$ac_exeext
33565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33566 (eval $ac_link) 2>conftest.er1
33567 ac_status=$?
33568 grep -v '^ *+' conftest.er1 >conftest.err
33569 rm -f conftest.er1
33570 cat conftest.err >&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); } &&
33573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33575 (eval $ac_try) 2>&5
33576 ac_status=$?
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); }; } &&
33579 { ac_try='test -s conftest$ac_exeext'
33580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33581 (eval $ac_try) 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
33585 eval "$as_ac_var=yes"
33586 else
33587 echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.$ac_ext >&5
33590 eval "$as_ac_var=no"
33592 rm -f conftest.err conftest.$ac_objext \
33593 conftest$ac_exeext conftest.$ac_ext
33595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33597 if test `eval echo '${'$as_ac_var'}'` = yes; then
33598 cat >>confdefs.h <<_ACEOF
33599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33600 _ACEOF
33603 done
33605 else
33607 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
33608 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
33609 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
33610 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33612 else
33616 ac_ext=cc
33617 ac_cpp='$CXXCPP $CPPFLAGS'
33618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33622 cat >conftest.$ac_ext <<_ACEOF
33623 /* confdefs.h. */
33624 _ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h. */
33628 #include <math.h>
33629 #ifdef HAVE_IEEEFP_H
33630 #include <ieeefp.h>
33631 #endif
33634 main ()
33636 _qfpclass(0);
33638 return 0;
33640 _ACEOF
33641 rm -f conftest.$ac_objext
33642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33643 (eval $ac_compile) 2>conftest.er1
33644 ac_status=$?
33645 grep -v '^ *+' conftest.er1 >conftest.err
33646 rm -f conftest.er1
33647 cat conftest.err >&5
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); } &&
33650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33653 ac_status=$?
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; } &&
33656 { ac_try='test -s conftest.$ac_objext'
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33659 ac_status=$?
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; }; then
33662 glibcxx_cv_func__qfpclass_use=yes
33663 else
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 glibcxx_cv_func__qfpclass_use=no
33669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33670 ac_ext=c
33671 ac_cpp='$CPP $CPPFLAGS'
33672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33680 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
33681 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
33683 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
33685 for ac_func in _qfpclass
33687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33688 echo "$as_me:$LINENO: checking for $ac_func" >&5
33689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33690 if eval "test \"\${$as_ac_var+set}\" = set"; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33692 else
33693 if test x$gcc_no_link = xyes; then
33694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33696 { (exit 1); exit 1; }; }
33698 cat >conftest.$ac_ext <<_ACEOF
33699 /* confdefs.h. */
33700 _ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h. */
33704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33706 #define $ac_func innocuous_$ac_func
33708 /* System header to define __stub macros and hopefully few prototypes,
33709 which can conflict with char $ac_func (); below.
33710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33711 <limits.h> exists even on freestanding compilers. */
33713 #ifdef __STDC__
33714 # include <limits.h>
33715 #else
33716 # include <assert.h>
33717 #endif
33719 #undef $ac_func
33721 /* Override any gcc2 internal prototype to avoid an error. */
33722 #ifdef __cplusplus
33723 extern "C"
33725 #endif
33726 /* We use char because int might match the return type of a gcc2
33727 builtin and then its argument prototype would still apply. */
33728 char $ac_func ();
33729 /* The GNU C library defines this for functions which it implements
33730 to always fail with ENOSYS. Some functions are actually named
33731 something starting with __ and the normal name is an alias. */
33732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33733 choke me
33734 #else
33735 char (*f) () = $ac_func;
33736 #endif
33737 #ifdef __cplusplus
33739 #endif
33742 main ()
33744 return f != $ac_func;
33746 return 0;
33748 _ACEOF
33749 rm -f conftest.$ac_objext conftest$ac_exeext
33750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33751 (eval $ac_link) 2>conftest.er1
33752 ac_status=$?
33753 grep -v '^ *+' conftest.er1 >conftest.err
33754 rm -f conftest.er1
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } &&
33758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33761 ac_status=$?
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; } &&
33764 { ac_try='test -s conftest$ac_exeext'
33765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33766 (eval $ac_try) 2>&5
33767 ac_status=$?
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); }; }; then
33770 eval "$as_ac_var=yes"
33771 else
33772 echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33775 eval "$as_ac_var=no"
33777 rm -f conftest.err conftest.$ac_objext \
33778 conftest$ac_exeext conftest.$ac_ext
33780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33782 if test `eval echo '${'$as_ac_var'}'` = yes; then
33783 cat >>confdefs.h <<_ACEOF
33784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33785 _ACEOF
33788 done
33795 echo "$as_me:$LINENO: checking for hypot declaration" >&5
33796 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
33797 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
33798 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33800 else
33804 ac_ext=cc
33805 ac_cpp='$CXXCPP $CPPFLAGS'
33806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33810 cat >conftest.$ac_ext <<_ACEOF
33811 /* confdefs.h. */
33812 _ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h. */
33816 #include <math.h>
33818 main ()
33820 hypot(0, 0);
33822 return 0;
33824 _ACEOF
33825 rm -f conftest.$ac_objext
33826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33827 (eval $ac_compile) 2>conftest.er1
33828 ac_status=$?
33829 grep -v '^ *+' conftest.er1 >conftest.err
33830 rm -f conftest.er1
33831 cat conftest.err >&5
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); } &&
33834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33836 (eval $ac_try) 2>&5
33837 ac_status=$?
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); }; } &&
33840 { ac_try='test -s conftest.$ac_objext'
33841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33842 (eval $ac_try) 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; }; then
33846 glibcxx_cv_func_hypot_use=yes
33847 else
33848 echo "$as_me: failed program was:" >&5
33849 sed 's/^/| /' conftest.$ac_ext >&5
33851 glibcxx_cv_func_hypot_use=no
33853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33854 ac_ext=c
33855 ac_cpp='$CPP $CPPFLAGS'
33856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33864 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
33865 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
33867 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
33869 for ac_func in hypot
33871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33872 echo "$as_me:$LINENO: checking for $ac_func" >&5
33873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33874 if eval "test \"\${$as_ac_var+set}\" = set"; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877 if test x$gcc_no_link = xyes; then
33878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33880 { (exit 1); exit 1; }; }
33882 cat >conftest.$ac_ext <<_ACEOF
33883 /* confdefs.h. */
33884 _ACEOF
33885 cat confdefs.h >>conftest.$ac_ext
33886 cat >>conftest.$ac_ext <<_ACEOF
33887 /* end confdefs.h. */
33888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33890 #define $ac_func innocuous_$ac_func
33892 /* System header to define __stub macros and hopefully few prototypes,
33893 which can conflict with char $ac_func (); below.
33894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33895 <limits.h> exists even on freestanding compilers. */
33897 #ifdef __STDC__
33898 # include <limits.h>
33899 #else
33900 # include <assert.h>
33901 #endif
33903 #undef $ac_func
33905 /* Override any gcc2 internal prototype to avoid an error. */
33906 #ifdef __cplusplus
33907 extern "C"
33909 #endif
33910 /* We use char because int might match the return type of a gcc2
33911 builtin and then its argument prototype would still apply. */
33912 char $ac_func ();
33913 /* The GNU C library defines this for functions which it implements
33914 to always fail with ENOSYS. Some functions are actually named
33915 something starting with __ and the normal name is an alias. */
33916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33917 choke me
33918 #else
33919 char (*f) () = $ac_func;
33920 #endif
33921 #ifdef __cplusplus
33923 #endif
33926 main ()
33928 return f != $ac_func;
33930 return 0;
33932 _ACEOF
33933 rm -f conftest.$ac_objext conftest$ac_exeext
33934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33935 (eval $ac_link) 2>conftest.er1
33936 ac_status=$?
33937 grep -v '^ *+' conftest.er1 >conftest.err
33938 rm -f conftest.er1
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); } &&
33942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944 (eval $ac_try) 2>&5
33945 ac_status=$?
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; } &&
33948 { ac_try='test -s conftest$ac_exeext'
33949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33950 (eval $ac_try) 2>&5
33951 ac_status=$?
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; }; then
33954 eval "$as_ac_var=yes"
33955 else
33956 echo "$as_me: failed program was:" >&5
33957 sed 's/^/| /' conftest.$ac_ext >&5
33959 eval "$as_ac_var=no"
33961 rm -f conftest.err conftest.$ac_objext \
33962 conftest$ac_exeext conftest.$ac_ext
33964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33966 if test `eval echo '${'$as_ac_var'}'` = yes; then
33967 cat >>confdefs.h <<_ACEOF
33968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33969 _ACEOF
33972 done
33974 else
33976 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
33977 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
33978 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
33979 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33981 else
33985 ac_ext=cc
33986 ac_cpp='$CXXCPP $CPPFLAGS'
33987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33991 cat >conftest.$ac_ext <<_ACEOF
33992 /* confdefs.h. */
33993 _ACEOF
33994 cat confdefs.h >>conftest.$ac_ext
33995 cat >>conftest.$ac_ext <<_ACEOF
33996 /* end confdefs.h. */
33997 #include <math.h>
33999 main ()
34001 _hypot(0, 0);
34003 return 0;
34005 _ACEOF
34006 rm -f conftest.$ac_objext
34007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34008 (eval $ac_compile) 2>conftest.er1
34009 ac_status=$?
34010 grep -v '^ *+' conftest.er1 >conftest.err
34011 rm -f conftest.er1
34012 cat conftest.err >&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } &&
34015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34017 (eval $ac_try) 2>&5
34018 ac_status=$?
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); }; } &&
34021 { ac_try='test -s conftest.$ac_objext'
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; }; then
34027 glibcxx_cv_func__hypot_use=yes
34028 else
34029 echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.$ac_ext >&5
34032 glibcxx_cv_func__hypot_use=no
34034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34035 ac_ext=c
34036 ac_cpp='$CPP $CPPFLAGS'
34037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34045 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34046 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34048 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34050 for ac_func in _hypot
34052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34053 echo "$as_me:$LINENO: checking for $ac_func" >&5
34054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34055 if eval "test \"\${$as_ac_var+set}\" = set"; then
34056 echo $ECHO_N "(cached) $ECHO_C" >&6
34057 else
34058 if test x$gcc_no_link = xyes; then
34059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34061 { (exit 1); exit 1; }; }
34063 cat >conftest.$ac_ext <<_ACEOF
34064 /* confdefs.h. */
34065 _ACEOF
34066 cat confdefs.h >>conftest.$ac_ext
34067 cat >>conftest.$ac_ext <<_ACEOF
34068 /* end confdefs.h. */
34069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34071 #define $ac_func innocuous_$ac_func
34073 /* System header to define __stub macros and hopefully few prototypes,
34074 which can conflict with char $ac_func (); below.
34075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34076 <limits.h> exists even on freestanding compilers. */
34078 #ifdef __STDC__
34079 # include <limits.h>
34080 #else
34081 # include <assert.h>
34082 #endif
34084 #undef $ac_func
34086 /* Override any gcc2 internal prototype to avoid an error. */
34087 #ifdef __cplusplus
34088 extern "C"
34090 #endif
34091 /* We use char because int might match the return type of a gcc2
34092 builtin and then its argument prototype would still apply. */
34093 char $ac_func ();
34094 /* The GNU C library defines this for functions which it implements
34095 to always fail with ENOSYS. Some functions are actually named
34096 something starting with __ and the normal name is an alias. */
34097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34098 choke me
34099 #else
34100 char (*f) () = $ac_func;
34101 #endif
34102 #ifdef __cplusplus
34104 #endif
34107 main ()
34109 return f != $ac_func;
34111 return 0;
34113 _ACEOF
34114 rm -f conftest.$ac_objext conftest$ac_exeext
34115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34116 (eval $ac_link) 2>conftest.er1
34117 ac_status=$?
34118 grep -v '^ *+' conftest.er1 >conftest.err
34119 rm -f conftest.er1
34120 cat conftest.err >&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); } &&
34123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34126 ac_status=$?
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; } &&
34129 { ac_try='test -s conftest$ac_exeext'
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34132 ac_status=$?
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; }; then
34135 eval "$as_ac_var=yes"
34136 else
34137 echo "$as_me: failed program was:" >&5
34138 sed 's/^/| /' conftest.$ac_ext >&5
34140 eval "$as_ac_var=no"
34142 rm -f conftest.err conftest.$ac_objext \
34143 conftest$ac_exeext conftest.$ac_ext
34145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34147 if test `eval echo '${'$as_ac_var'}'` = yes; then
34148 cat >>confdefs.h <<_ACEOF
34149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34150 _ACEOF
34153 done
34160 echo "$as_me:$LINENO: checking for float trig functions" >&5
34161 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34162 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34163 echo $ECHO_N "(cached) $ECHO_C" >&6
34164 else
34168 ac_ext=cc
34169 ac_cpp='$CXXCPP $CPPFLAGS'
34170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34174 cat >conftest.$ac_ext <<_ACEOF
34175 /* confdefs.h. */
34176 _ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h. */
34180 #include <math.h>
34182 main ()
34184 `for x in acosf asinf atanf \
34185 cosf sinf tanf \
34186 coshf sinhf tanhf; do echo "$x (0);"; done`
34188 return 0;
34190 _ACEOF
34191 rm -f conftest.$ac_objext
34192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34193 (eval $ac_compile) 2>conftest.er1
34194 ac_status=$?
34195 grep -v '^ *+' conftest.er1 >conftest.err
34196 rm -f conftest.er1
34197 cat conftest.err >&5
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); } &&
34200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34202 (eval $ac_try) 2>&5
34203 ac_status=$?
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; } &&
34206 { ac_try='test -s conftest.$ac_objext'
34207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34208 (eval $ac_try) 2>&5
34209 ac_status=$?
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); }; }; then
34212 glibcxx_cv_func_float_trig_use=yes
34213 else
34214 echo "$as_me: failed program was:" >&5
34215 sed 's/^/| /' conftest.$ac_ext >&5
34217 glibcxx_cv_func_float_trig_use=no
34219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34220 ac_ext=c
34221 ac_cpp='$CPP $CPPFLAGS'
34222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34228 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34229 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34230 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34240 for ac_func in acosf asinf atanf \
34241 cosf sinf tanf \
34242 coshf sinhf tanhf
34244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34245 echo "$as_me:$LINENO: checking for $ac_func" >&5
34246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34247 if eval "test \"\${$as_ac_var+set}\" = set"; then
34248 echo $ECHO_N "(cached) $ECHO_C" >&6
34249 else
34250 if test x$gcc_no_link = xyes; then
34251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34253 { (exit 1); exit 1; }; }
34255 cat >conftest.$ac_ext <<_ACEOF
34256 /* confdefs.h. */
34257 _ACEOF
34258 cat confdefs.h >>conftest.$ac_ext
34259 cat >>conftest.$ac_ext <<_ACEOF
34260 /* end confdefs.h. */
34261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34263 #define $ac_func innocuous_$ac_func
34265 /* System header to define __stub macros and hopefully few prototypes,
34266 which can conflict with char $ac_func (); below.
34267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34268 <limits.h> exists even on freestanding compilers. */
34270 #ifdef __STDC__
34271 # include <limits.h>
34272 #else
34273 # include <assert.h>
34274 #endif
34276 #undef $ac_func
34278 /* Override any gcc2 internal prototype to avoid an error. */
34279 #ifdef __cplusplus
34280 extern "C"
34282 #endif
34283 /* We use char because int might match the return type of a gcc2
34284 builtin and then its argument prototype would still apply. */
34285 char $ac_func ();
34286 /* The GNU C library defines this for functions which it implements
34287 to always fail with ENOSYS. Some functions are actually named
34288 something starting with __ and the normal name is an alias. */
34289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34290 choke me
34291 #else
34292 char (*f) () = $ac_func;
34293 #endif
34294 #ifdef __cplusplus
34296 #endif
34299 main ()
34301 return f != $ac_func;
34303 return 0;
34305 _ACEOF
34306 rm -f conftest.$ac_objext conftest$ac_exeext
34307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34308 (eval $ac_link) 2>conftest.er1
34309 ac_status=$?
34310 grep -v '^ *+' conftest.er1 >conftest.err
34311 rm -f conftest.er1
34312 cat conftest.err >&5
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); } &&
34315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317 (eval $ac_try) 2>&5
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); }; } &&
34321 { ac_try='test -s conftest$ac_exeext'
34322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323 (eval $ac_try) 2>&5
34324 ac_status=$?
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; }; then
34327 eval "$as_ac_var=yes"
34328 else
34329 echo "$as_me: failed program was:" >&5
34330 sed 's/^/| /' conftest.$ac_ext >&5
34332 eval "$as_ac_var=no"
34334 rm -f conftest.err conftest.$ac_objext \
34335 conftest$ac_exeext conftest.$ac_ext
34337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34339 if test `eval echo '${'$as_ac_var'}'` = yes; then
34340 cat >>confdefs.h <<_ACEOF
34341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34342 _ACEOF
34345 done
34350 echo "$as_me:$LINENO: checking for float round functions" >&5
34351 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34352 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34353 echo $ECHO_N "(cached) $ECHO_C" >&6
34354 else
34358 ac_ext=cc
34359 ac_cpp='$CXXCPP $CPPFLAGS'
34360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34364 cat >conftest.$ac_ext <<_ACEOF
34365 /* confdefs.h. */
34366 _ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h. */
34370 #include <math.h>
34372 main ()
34374 `for x in ceilf floorf; do echo "$x (0);"; done`
34376 return 0;
34378 _ACEOF
34379 rm -f conftest.$ac_objext
34380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34381 (eval $ac_compile) 2>conftest.er1
34382 ac_status=$?
34383 grep -v '^ *+' conftest.er1 >conftest.err
34384 rm -f conftest.er1
34385 cat conftest.err >&5
34386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); } &&
34388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34390 (eval $ac_try) 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; } &&
34394 { ac_try='test -s conftest.$ac_objext'
34395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34396 (eval $ac_try) 2>&5
34397 ac_status=$?
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); }; }; then
34400 glibcxx_cv_func_float_round_use=yes
34401 else
34402 echo "$as_me: failed program was:" >&5
34403 sed 's/^/| /' conftest.$ac_ext >&5
34405 glibcxx_cv_func_float_round_use=no
34407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34408 ac_ext=c
34409 ac_cpp='$CPP $CPPFLAGS'
34410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34416 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34417 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34418 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34421 for ac_func in ceilf floorf
34423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34424 echo "$as_me:$LINENO: checking for $ac_func" >&5
34425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34426 if eval "test \"\${$as_ac_var+set}\" = set"; then
34427 echo $ECHO_N "(cached) $ECHO_C" >&6
34428 else
34429 if test x$gcc_no_link = xyes; then
34430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34432 { (exit 1); exit 1; }; }
34434 cat >conftest.$ac_ext <<_ACEOF
34435 /* confdefs.h. */
34436 _ACEOF
34437 cat confdefs.h >>conftest.$ac_ext
34438 cat >>conftest.$ac_ext <<_ACEOF
34439 /* end confdefs.h. */
34440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34442 #define $ac_func innocuous_$ac_func
34444 /* System header to define __stub macros and hopefully few prototypes,
34445 which can conflict with char $ac_func (); below.
34446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34447 <limits.h> exists even on freestanding compilers. */
34449 #ifdef __STDC__
34450 # include <limits.h>
34451 #else
34452 # include <assert.h>
34453 #endif
34455 #undef $ac_func
34457 /* Override any gcc2 internal prototype to avoid an error. */
34458 #ifdef __cplusplus
34459 extern "C"
34461 #endif
34462 /* We use char because int might match the return type of a gcc2
34463 builtin and then its argument prototype would still apply. */
34464 char $ac_func ();
34465 /* The GNU C library defines this for functions which it implements
34466 to always fail with ENOSYS. Some functions are actually named
34467 something starting with __ and the normal name is an alias. */
34468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34469 choke me
34470 #else
34471 char (*f) () = $ac_func;
34472 #endif
34473 #ifdef __cplusplus
34475 #endif
34478 main ()
34480 return f != $ac_func;
34482 return 0;
34484 _ACEOF
34485 rm -f conftest.$ac_objext conftest$ac_exeext
34486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34487 (eval $ac_link) 2>conftest.er1
34488 ac_status=$?
34489 grep -v '^ *+' conftest.er1 >conftest.err
34490 rm -f conftest.er1
34491 cat conftest.err >&5
34492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34493 (exit $ac_status); } &&
34494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496 (eval $ac_try) 2>&5
34497 ac_status=$?
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); }; } &&
34500 { ac_try='test -s conftest$ac_exeext'
34501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34502 (eval $ac_try) 2>&5
34503 ac_status=$?
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; }; then
34506 eval "$as_ac_var=yes"
34507 else
34508 echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34511 eval "$as_ac_var=no"
34513 rm -f conftest.err conftest.$ac_objext \
34514 conftest$ac_exeext conftest.$ac_ext
34516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34518 if test `eval echo '${'$as_ac_var'}'` = yes; then
34519 cat >>confdefs.h <<_ACEOF
34520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34521 _ACEOF
34524 done
34530 echo "$as_me:$LINENO: checking for expf declaration" >&5
34531 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
34532 if test x${glibcxx_cv_func_expf_use+set} != xset; then
34533 if test "${glibcxx_cv_func_expf_use+set}" = set; then
34534 echo $ECHO_N "(cached) $ECHO_C" >&6
34535 else
34539 ac_ext=cc
34540 ac_cpp='$CXXCPP $CPPFLAGS'
34541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34545 cat >conftest.$ac_ext <<_ACEOF
34546 /* confdefs.h. */
34547 _ACEOF
34548 cat confdefs.h >>conftest.$ac_ext
34549 cat >>conftest.$ac_ext <<_ACEOF
34550 /* end confdefs.h. */
34551 #include <math.h>
34552 #ifdef HAVE_IEEEFP_H
34553 #include <ieeefp.h>
34554 #endif
34557 main ()
34559 expf(0);
34561 return 0;
34563 _ACEOF
34564 rm -f conftest.$ac_objext
34565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34566 (eval $ac_compile) 2>conftest.er1
34567 ac_status=$?
34568 grep -v '^ *+' conftest.er1 >conftest.err
34569 rm -f conftest.er1
34570 cat conftest.err >&5
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); } &&
34573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34575 (eval $ac_try) 2>&5
34576 ac_status=$?
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); }; } &&
34579 { ac_try='test -s conftest.$ac_objext'
34580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34581 (eval $ac_try) 2>&5
34582 ac_status=$?
34583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34584 (exit $ac_status); }; }; then
34585 glibcxx_cv_func_expf_use=yes
34586 else
34587 echo "$as_me: failed program was:" >&5
34588 sed 's/^/| /' conftest.$ac_ext >&5
34590 glibcxx_cv_func_expf_use=no
34592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34593 ac_ext=c
34594 ac_cpp='$CPP $CPPFLAGS'
34595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34603 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
34604 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
34606 if test x$glibcxx_cv_func_expf_use = x"yes"; then
34608 for ac_func in expf
34610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34611 echo "$as_me:$LINENO: checking for $ac_func" >&5
34612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34613 if eval "test \"\${$as_ac_var+set}\" = set"; then
34614 echo $ECHO_N "(cached) $ECHO_C" >&6
34615 else
34616 if test x$gcc_no_link = xyes; then
34617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34619 { (exit 1); exit 1; }; }
34621 cat >conftest.$ac_ext <<_ACEOF
34622 /* confdefs.h. */
34623 _ACEOF
34624 cat confdefs.h >>conftest.$ac_ext
34625 cat >>conftest.$ac_ext <<_ACEOF
34626 /* end confdefs.h. */
34627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34629 #define $ac_func innocuous_$ac_func
34631 /* System header to define __stub macros and hopefully few prototypes,
34632 which can conflict with char $ac_func (); below.
34633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34634 <limits.h> exists even on freestanding compilers. */
34636 #ifdef __STDC__
34637 # include <limits.h>
34638 #else
34639 # include <assert.h>
34640 #endif
34642 #undef $ac_func
34644 /* Override any gcc2 internal prototype to avoid an error. */
34645 #ifdef __cplusplus
34646 extern "C"
34648 #endif
34649 /* We use char because int might match the return type of a gcc2
34650 builtin and then its argument prototype would still apply. */
34651 char $ac_func ();
34652 /* The GNU C library defines this for functions which it implements
34653 to always fail with ENOSYS. Some functions are actually named
34654 something starting with __ and the normal name is an alias. */
34655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34656 choke me
34657 #else
34658 char (*f) () = $ac_func;
34659 #endif
34660 #ifdef __cplusplus
34662 #endif
34665 main ()
34667 return f != $ac_func;
34669 return 0;
34671 _ACEOF
34672 rm -f conftest.$ac_objext conftest$ac_exeext
34673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34674 (eval $ac_link) 2>conftest.er1
34675 ac_status=$?
34676 grep -v '^ *+' conftest.er1 >conftest.err
34677 rm -f conftest.er1
34678 cat conftest.err >&5
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); } &&
34681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34683 (eval $ac_try) 2>&5
34684 ac_status=$?
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); }; } &&
34687 { ac_try='test -s conftest$ac_exeext'
34688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689 (eval $ac_try) 2>&5
34690 ac_status=$?
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; }; then
34693 eval "$as_ac_var=yes"
34694 else
34695 echo "$as_me: failed program was:" >&5
34696 sed 's/^/| /' conftest.$ac_ext >&5
34698 eval "$as_ac_var=no"
34700 rm -f conftest.err conftest.$ac_objext \
34701 conftest$ac_exeext conftest.$ac_ext
34703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34705 if test `eval echo '${'$as_ac_var'}'` = yes; then
34706 cat >>confdefs.h <<_ACEOF
34707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34708 _ACEOF
34711 done
34713 else
34715 echo "$as_me:$LINENO: checking for _expf declaration" >&5
34716 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
34717 if test x${glibcxx_cv_func__expf_use+set} != xset; then
34718 if test "${glibcxx_cv_func__expf_use+set}" = set; then
34719 echo $ECHO_N "(cached) $ECHO_C" >&6
34720 else
34724 ac_ext=cc
34725 ac_cpp='$CXXCPP $CPPFLAGS'
34726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34730 cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h. */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h. */
34736 #include <math.h>
34737 #ifdef HAVE_IEEEFP_H
34738 #include <ieeefp.h>
34739 #endif
34742 main ()
34744 _expf(0);
34746 return 0;
34748 _ACEOF
34749 rm -f conftest.$ac_objext
34750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34751 (eval $ac_compile) 2>conftest.er1
34752 ac_status=$?
34753 grep -v '^ *+' conftest.er1 >conftest.err
34754 rm -f conftest.er1
34755 cat conftest.err >&5
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); } &&
34758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760 (eval $ac_try) 2>&5
34761 ac_status=$?
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; } &&
34764 { ac_try='test -s conftest.$ac_objext'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34767 ac_status=$?
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; }; then
34770 glibcxx_cv_func__expf_use=yes
34771 else
34772 echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34775 glibcxx_cv_func__expf_use=no
34777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34778 ac_ext=c
34779 ac_cpp='$CPP $CPPFLAGS'
34780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34788 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
34789 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
34791 if test x$glibcxx_cv_func__expf_use = x"yes"; then
34793 for ac_func in _expf
34795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34796 echo "$as_me:$LINENO: checking for $ac_func" >&5
34797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34798 if eval "test \"\${$as_ac_var+set}\" = set"; then
34799 echo $ECHO_N "(cached) $ECHO_C" >&6
34800 else
34801 if test x$gcc_no_link = xyes; then
34802 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34804 { (exit 1); exit 1; }; }
34806 cat >conftest.$ac_ext <<_ACEOF
34807 /* confdefs.h. */
34808 _ACEOF
34809 cat confdefs.h >>conftest.$ac_ext
34810 cat >>conftest.$ac_ext <<_ACEOF
34811 /* end confdefs.h. */
34812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34814 #define $ac_func innocuous_$ac_func
34816 /* System header to define __stub macros and hopefully few prototypes,
34817 which can conflict with char $ac_func (); below.
34818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34819 <limits.h> exists even on freestanding compilers. */
34821 #ifdef __STDC__
34822 # include <limits.h>
34823 #else
34824 # include <assert.h>
34825 #endif
34827 #undef $ac_func
34829 /* Override any gcc2 internal prototype to avoid an error. */
34830 #ifdef __cplusplus
34831 extern "C"
34833 #endif
34834 /* We use char because int might match the return type of a gcc2
34835 builtin and then its argument prototype would still apply. */
34836 char $ac_func ();
34837 /* The GNU C library defines this for functions which it implements
34838 to always fail with ENOSYS. Some functions are actually named
34839 something starting with __ and the normal name is an alias. */
34840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34841 choke me
34842 #else
34843 char (*f) () = $ac_func;
34844 #endif
34845 #ifdef __cplusplus
34847 #endif
34850 main ()
34852 return f != $ac_func;
34854 return 0;
34856 _ACEOF
34857 rm -f conftest.$ac_objext conftest$ac_exeext
34858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34859 (eval $ac_link) 2>conftest.er1
34860 ac_status=$?
34861 grep -v '^ *+' conftest.er1 >conftest.err
34862 rm -f conftest.er1
34863 cat conftest.err >&5
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } &&
34866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868 (eval $ac_try) 2>&5
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; } &&
34872 { ac_try='test -s conftest$ac_exeext'
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34875 ac_status=$?
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; }; then
34878 eval "$as_ac_var=yes"
34879 else
34880 echo "$as_me: failed program was:" >&5
34881 sed 's/^/| /' conftest.$ac_ext >&5
34883 eval "$as_ac_var=no"
34885 rm -f conftest.err conftest.$ac_objext \
34886 conftest$ac_exeext conftest.$ac_ext
34888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34890 if test `eval echo '${'$as_ac_var'}'` = yes; then
34891 cat >>confdefs.h <<_ACEOF
34892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34893 _ACEOF
34896 done
34903 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
34904 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
34905 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
34906 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
34907 echo $ECHO_N "(cached) $ECHO_C" >&6
34908 else
34912 ac_ext=cc
34913 ac_cpp='$CXXCPP $CPPFLAGS'
34914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34918 cat >conftest.$ac_ext <<_ACEOF
34919 /* confdefs.h. */
34920 _ACEOF
34921 cat confdefs.h >>conftest.$ac_ext
34922 cat >>conftest.$ac_ext <<_ACEOF
34923 /* end confdefs.h. */
34924 #include <math.h>
34925 #ifdef HAVE_IEEEFP_H
34926 #include <ieeefp.h>
34927 #endif
34930 main ()
34932 isnanf(0);
34934 return 0;
34936 _ACEOF
34937 rm -f conftest.$ac_objext
34938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34939 (eval $ac_compile) 2>conftest.er1
34940 ac_status=$?
34941 grep -v '^ *+' conftest.er1 >conftest.err
34942 rm -f conftest.er1
34943 cat conftest.err >&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); } &&
34946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34949 ac_status=$?
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; } &&
34952 { ac_try='test -s conftest.$ac_objext'
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34955 ac_status=$?
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; }; then
34958 glibcxx_cv_func_isnanf_use=yes
34959 else
34960 echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34963 glibcxx_cv_func_isnanf_use=no
34965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34966 ac_ext=c
34967 ac_cpp='$CPP $CPPFLAGS'
34968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34976 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
34977 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
34979 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
34981 for ac_func in isnanf
34983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34984 echo "$as_me:$LINENO: checking for $ac_func" >&5
34985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34986 if eval "test \"\${$as_ac_var+set}\" = set"; then
34987 echo $ECHO_N "(cached) $ECHO_C" >&6
34988 else
34989 if test x$gcc_no_link = xyes; then
34990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34992 { (exit 1); exit 1; }; }
34994 cat >conftest.$ac_ext <<_ACEOF
34995 /* confdefs.h. */
34996 _ACEOF
34997 cat confdefs.h >>conftest.$ac_ext
34998 cat >>conftest.$ac_ext <<_ACEOF
34999 /* end confdefs.h. */
35000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35002 #define $ac_func innocuous_$ac_func
35004 /* System header to define __stub macros and hopefully few prototypes,
35005 which can conflict with char $ac_func (); below.
35006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35007 <limits.h> exists even on freestanding compilers. */
35009 #ifdef __STDC__
35010 # include <limits.h>
35011 #else
35012 # include <assert.h>
35013 #endif
35015 #undef $ac_func
35017 /* Override any gcc2 internal prototype to avoid an error. */
35018 #ifdef __cplusplus
35019 extern "C"
35021 #endif
35022 /* We use char because int might match the return type of a gcc2
35023 builtin and then its argument prototype would still apply. */
35024 char $ac_func ();
35025 /* The GNU C library defines this for functions which it implements
35026 to always fail with ENOSYS. Some functions are actually named
35027 something starting with __ and the normal name is an alias. */
35028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35029 choke me
35030 #else
35031 char (*f) () = $ac_func;
35032 #endif
35033 #ifdef __cplusplus
35035 #endif
35038 main ()
35040 return f != $ac_func;
35042 return 0;
35044 _ACEOF
35045 rm -f conftest.$ac_objext conftest$ac_exeext
35046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35047 (eval $ac_link) 2>conftest.er1
35048 ac_status=$?
35049 grep -v '^ *+' conftest.er1 >conftest.err
35050 rm -f conftest.er1
35051 cat conftest.err >&5
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); } &&
35054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056 (eval $ac_try) 2>&5
35057 ac_status=$?
35058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059 (exit $ac_status); }; } &&
35060 { ac_try='test -s conftest$ac_exeext'
35061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062 (eval $ac_try) 2>&5
35063 ac_status=$?
35064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065 (exit $ac_status); }; }; then
35066 eval "$as_ac_var=yes"
35067 else
35068 echo "$as_me: failed program was:" >&5
35069 sed 's/^/| /' conftest.$ac_ext >&5
35071 eval "$as_ac_var=no"
35073 rm -f conftest.err conftest.$ac_objext \
35074 conftest$ac_exeext conftest.$ac_ext
35076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35078 if test `eval echo '${'$as_ac_var'}'` = yes; then
35079 cat >>confdefs.h <<_ACEOF
35080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35081 _ACEOF
35084 done
35086 else
35088 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35089 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35090 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35091 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35092 echo $ECHO_N "(cached) $ECHO_C" >&6
35093 else
35097 ac_ext=cc
35098 ac_cpp='$CXXCPP $CPPFLAGS'
35099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35103 cat >conftest.$ac_ext <<_ACEOF
35104 /* confdefs.h. */
35105 _ACEOF
35106 cat confdefs.h >>conftest.$ac_ext
35107 cat >>conftest.$ac_ext <<_ACEOF
35108 /* end confdefs.h. */
35109 #include <math.h>
35110 #ifdef HAVE_IEEEFP_H
35111 #include <ieeefp.h>
35112 #endif
35115 main ()
35117 _isnanf(0);
35119 return 0;
35121 _ACEOF
35122 rm -f conftest.$ac_objext
35123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35124 (eval $ac_compile) 2>conftest.er1
35125 ac_status=$?
35126 grep -v '^ *+' conftest.er1 >conftest.err
35127 rm -f conftest.er1
35128 cat conftest.err >&5
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); } &&
35131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35133 (eval $ac_try) 2>&5
35134 ac_status=$?
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); }; } &&
35137 { ac_try='test -s conftest.$ac_objext'
35138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139 (eval $ac_try) 2>&5
35140 ac_status=$?
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); }; }; then
35143 glibcxx_cv_func__isnanf_use=yes
35144 else
35145 echo "$as_me: failed program was:" >&5
35146 sed 's/^/| /' conftest.$ac_ext >&5
35148 glibcxx_cv_func__isnanf_use=no
35150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35151 ac_ext=c
35152 ac_cpp='$CPP $CPPFLAGS'
35153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35161 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35162 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35164 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35166 for ac_func in _isnanf
35168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35169 echo "$as_me:$LINENO: checking for $ac_func" >&5
35170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35171 if eval "test \"\${$as_ac_var+set}\" = set"; then
35172 echo $ECHO_N "(cached) $ECHO_C" >&6
35173 else
35174 if test x$gcc_no_link = xyes; then
35175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35177 { (exit 1); exit 1; }; }
35179 cat >conftest.$ac_ext <<_ACEOF
35180 /* confdefs.h. */
35181 _ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h. */
35185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35187 #define $ac_func innocuous_$ac_func
35189 /* System header to define __stub macros and hopefully few prototypes,
35190 which can conflict with char $ac_func (); below.
35191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35192 <limits.h> exists even on freestanding compilers. */
35194 #ifdef __STDC__
35195 # include <limits.h>
35196 #else
35197 # include <assert.h>
35198 #endif
35200 #undef $ac_func
35202 /* Override any gcc2 internal prototype to avoid an error. */
35203 #ifdef __cplusplus
35204 extern "C"
35206 #endif
35207 /* We use char because int might match the return type of a gcc2
35208 builtin and then its argument prototype would still apply. */
35209 char $ac_func ();
35210 /* The GNU C library defines this for functions which it implements
35211 to always fail with ENOSYS. Some functions are actually named
35212 something starting with __ and the normal name is an alias. */
35213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35214 choke me
35215 #else
35216 char (*f) () = $ac_func;
35217 #endif
35218 #ifdef __cplusplus
35220 #endif
35223 main ()
35225 return f != $ac_func;
35227 return 0;
35229 _ACEOF
35230 rm -f conftest.$ac_objext conftest$ac_exeext
35231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35232 (eval $ac_link) 2>conftest.er1
35233 ac_status=$?
35234 grep -v '^ *+' conftest.er1 >conftest.err
35235 rm -f conftest.er1
35236 cat conftest.err >&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); } &&
35239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35242 ac_status=$?
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; } &&
35245 { ac_try='test -s conftest$ac_exeext'
35246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247 (eval $ac_try) 2>&5
35248 ac_status=$?
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); }; }; then
35251 eval "$as_ac_var=yes"
35252 else
35253 echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35256 eval "$as_ac_var=no"
35258 rm -f conftest.err conftest.$ac_objext \
35259 conftest$ac_exeext conftest.$ac_ext
35261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35263 if test `eval echo '${'$as_ac_var'}'` = yes; then
35264 cat >>confdefs.h <<_ACEOF
35265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35266 _ACEOF
35269 done
35276 echo "$as_me:$LINENO: checking for isinff declaration" >&5
35277 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35278 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35279 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35280 echo $ECHO_N "(cached) $ECHO_C" >&6
35281 else
35285 ac_ext=cc
35286 ac_cpp='$CXXCPP $CPPFLAGS'
35287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35291 cat >conftest.$ac_ext <<_ACEOF
35292 /* confdefs.h. */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h. */
35297 #include <math.h>
35298 #ifdef HAVE_IEEEFP_H
35299 #include <ieeefp.h>
35300 #endif
35303 main ()
35305 isinff(0);
35307 return 0;
35309 _ACEOF
35310 rm -f conftest.$ac_objext
35311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35312 (eval $ac_compile) 2>conftest.er1
35313 ac_status=$?
35314 grep -v '^ *+' conftest.er1 >conftest.err
35315 rm -f conftest.er1
35316 cat conftest.err >&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); } &&
35319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35321 (eval $ac_try) 2>&5
35322 ac_status=$?
35323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35324 (exit $ac_status); }; } &&
35325 { ac_try='test -s conftest.$ac_objext'
35326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327 (eval $ac_try) 2>&5
35328 ac_status=$?
35329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330 (exit $ac_status); }; }; then
35331 glibcxx_cv_func_isinff_use=yes
35332 else
35333 echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35336 glibcxx_cv_func_isinff_use=no
35338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35339 ac_ext=c
35340 ac_cpp='$CPP $CPPFLAGS'
35341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35349 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35350 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35352 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35354 for ac_func in isinff
35356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35357 echo "$as_me:$LINENO: checking for $ac_func" >&5
35358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35359 if eval "test \"\${$as_ac_var+set}\" = set"; then
35360 echo $ECHO_N "(cached) $ECHO_C" >&6
35361 else
35362 if test x$gcc_no_link = xyes; then
35363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35365 { (exit 1); exit 1; }; }
35367 cat >conftest.$ac_ext <<_ACEOF
35368 /* confdefs.h. */
35369 _ACEOF
35370 cat confdefs.h >>conftest.$ac_ext
35371 cat >>conftest.$ac_ext <<_ACEOF
35372 /* end confdefs.h. */
35373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35375 #define $ac_func innocuous_$ac_func
35377 /* System header to define __stub macros and hopefully few prototypes,
35378 which can conflict with char $ac_func (); below.
35379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35380 <limits.h> exists even on freestanding compilers. */
35382 #ifdef __STDC__
35383 # include <limits.h>
35384 #else
35385 # include <assert.h>
35386 #endif
35388 #undef $ac_func
35390 /* Override any gcc2 internal prototype to avoid an error. */
35391 #ifdef __cplusplus
35392 extern "C"
35394 #endif
35395 /* We use char because int might match the return type of a gcc2
35396 builtin and then its argument prototype would still apply. */
35397 char $ac_func ();
35398 /* The GNU C library defines this for functions which it implements
35399 to always fail with ENOSYS. Some functions are actually named
35400 something starting with __ and the normal name is an alias. */
35401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35402 choke me
35403 #else
35404 char (*f) () = $ac_func;
35405 #endif
35406 #ifdef __cplusplus
35408 #endif
35411 main ()
35413 return f != $ac_func;
35415 return 0;
35417 _ACEOF
35418 rm -f conftest.$ac_objext conftest$ac_exeext
35419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35420 (eval $ac_link) 2>conftest.er1
35421 ac_status=$?
35422 grep -v '^ *+' conftest.er1 >conftest.err
35423 rm -f conftest.er1
35424 cat conftest.err >&5
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); } &&
35427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; } &&
35433 { ac_try='test -s conftest$ac_exeext'
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; }; then
35439 eval "$as_ac_var=yes"
35440 else
35441 echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35444 eval "$as_ac_var=no"
35446 rm -f conftest.err conftest.$ac_objext \
35447 conftest$ac_exeext conftest.$ac_ext
35449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35451 if test `eval echo '${'$as_ac_var'}'` = yes; then
35452 cat >>confdefs.h <<_ACEOF
35453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35454 _ACEOF
35457 done
35459 else
35461 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
35462 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
35463 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
35464 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
35465 echo $ECHO_N "(cached) $ECHO_C" >&6
35466 else
35470 ac_ext=cc
35471 ac_cpp='$CXXCPP $CPPFLAGS'
35472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35476 cat >conftest.$ac_ext <<_ACEOF
35477 /* confdefs.h. */
35478 _ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h. */
35482 #include <math.h>
35483 #ifdef HAVE_IEEEFP_H
35484 #include <ieeefp.h>
35485 #endif
35488 main ()
35490 _isinff(0);
35492 return 0;
35494 _ACEOF
35495 rm -f conftest.$ac_objext
35496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35497 (eval $ac_compile) 2>conftest.er1
35498 ac_status=$?
35499 grep -v '^ *+' conftest.er1 >conftest.err
35500 rm -f conftest.er1
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } &&
35504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35507 ac_status=$?
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; } &&
35510 { ac_try='test -s conftest.$ac_objext'
35511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512 (eval $ac_try) 2>&5
35513 ac_status=$?
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); }; }; then
35516 glibcxx_cv_func__isinff_use=yes
35517 else
35518 echo "$as_me: failed program was:" >&5
35519 sed 's/^/| /' conftest.$ac_ext >&5
35521 glibcxx_cv_func__isinff_use=no
35523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35524 ac_ext=c
35525 ac_cpp='$CPP $CPPFLAGS'
35526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35534 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
35535 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
35537 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
35539 for ac_func in _isinff
35541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35542 echo "$as_me:$LINENO: checking for $ac_func" >&5
35543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35544 if eval "test \"\${$as_ac_var+set}\" = set"; then
35545 echo $ECHO_N "(cached) $ECHO_C" >&6
35546 else
35547 if test x$gcc_no_link = xyes; then
35548 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35549 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35550 { (exit 1); exit 1; }; }
35552 cat >conftest.$ac_ext <<_ACEOF
35553 /* confdefs.h. */
35554 _ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h. */
35558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35560 #define $ac_func innocuous_$ac_func
35562 /* System header to define __stub macros and hopefully few prototypes,
35563 which can conflict with char $ac_func (); below.
35564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35565 <limits.h> exists even on freestanding compilers. */
35567 #ifdef __STDC__
35568 # include <limits.h>
35569 #else
35570 # include <assert.h>
35571 #endif
35573 #undef $ac_func
35575 /* Override any gcc2 internal prototype to avoid an error. */
35576 #ifdef __cplusplus
35577 extern "C"
35579 #endif
35580 /* We use char because int might match the return type of a gcc2
35581 builtin and then its argument prototype would still apply. */
35582 char $ac_func ();
35583 /* The GNU C library defines this for functions which it implements
35584 to always fail with ENOSYS. Some functions are actually named
35585 something starting with __ and the normal name is an alias. */
35586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35587 choke me
35588 #else
35589 char (*f) () = $ac_func;
35590 #endif
35591 #ifdef __cplusplus
35593 #endif
35596 main ()
35598 return f != $ac_func;
35600 return 0;
35602 _ACEOF
35603 rm -f conftest.$ac_objext conftest$ac_exeext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35605 (eval $ac_link) 2>conftest.er1
35606 ac_status=$?
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
35612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614 (eval $ac_try) 2>&5
35615 ac_status=$?
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); }; } &&
35618 { ac_try='test -s conftest$ac_exeext'
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35621 ac_status=$?
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; }; then
35624 eval "$as_ac_var=yes"
35625 else
35626 echo "$as_me: failed program was:" >&5
35627 sed 's/^/| /' conftest.$ac_ext >&5
35629 eval "$as_ac_var=no"
35631 rm -f conftest.err conftest.$ac_objext \
35632 conftest$ac_exeext conftest.$ac_ext
35634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35636 if test `eval echo '${'$as_ac_var'}'` = yes; then
35637 cat >>confdefs.h <<_ACEOF
35638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35639 _ACEOF
35642 done
35649 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
35650 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
35651 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
35652 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
35653 echo $ECHO_N "(cached) $ECHO_C" >&6
35654 else
35658 ac_ext=cc
35659 ac_cpp='$CXXCPP $CPPFLAGS'
35660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35664 cat >conftest.$ac_ext <<_ACEOF
35665 /* confdefs.h. */
35666 _ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h. */
35670 #include <math.h>
35672 main ()
35674 atan2f(0, 0);
35676 return 0;
35678 _ACEOF
35679 rm -f conftest.$ac_objext
35680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35681 (eval $ac_compile) 2>conftest.er1
35682 ac_status=$?
35683 grep -v '^ *+' conftest.er1 >conftest.err
35684 rm -f conftest.er1
35685 cat conftest.err >&5
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); } &&
35688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35691 ac_status=$?
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; } &&
35694 { ac_try='test -s conftest.$ac_objext'
35695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35696 (eval $ac_try) 2>&5
35697 ac_status=$?
35698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699 (exit $ac_status); }; }; then
35700 glibcxx_cv_func_atan2f_use=yes
35701 else
35702 echo "$as_me: failed program was:" >&5
35703 sed 's/^/| /' conftest.$ac_ext >&5
35705 glibcxx_cv_func_atan2f_use=no
35707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35708 ac_ext=c
35709 ac_cpp='$CPP $CPPFLAGS'
35710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35718 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
35719 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
35721 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
35723 for ac_func in atan2f
35725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35726 echo "$as_me:$LINENO: checking for $ac_func" >&5
35727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35728 if eval "test \"\${$as_ac_var+set}\" = set"; then
35729 echo $ECHO_N "(cached) $ECHO_C" >&6
35730 else
35731 if test x$gcc_no_link = xyes; then
35732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35734 { (exit 1); exit 1; }; }
35736 cat >conftest.$ac_ext <<_ACEOF
35737 /* confdefs.h. */
35738 _ACEOF
35739 cat confdefs.h >>conftest.$ac_ext
35740 cat >>conftest.$ac_ext <<_ACEOF
35741 /* end confdefs.h. */
35742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35744 #define $ac_func innocuous_$ac_func
35746 /* System header to define __stub macros and hopefully few prototypes,
35747 which can conflict with char $ac_func (); below.
35748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35749 <limits.h> exists even on freestanding compilers. */
35751 #ifdef __STDC__
35752 # include <limits.h>
35753 #else
35754 # include <assert.h>
35755 #endif
35757 #undef $ac_func
35759 /* Override any gcc2 internal prototype to avoid an error. */
35760 #ifdef __cplusplus
35761 extern "C"
35763 #endif
35764 /* We use char because int might match the return type of a gcc2
35765 builtin and then its argument prototype would still apply. */
35766 char $ac_func ();
35767 /* The GNU C library defines this for functions which it implements
35768 to always fail with ENOSYS. Some functions are actually named
35769 something starting with __ and the normal name is an alias. */
35770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35771 choke me
35772 #else
35773 char (*f) () = $ac_func;
35774 #endif
35775 #ifdef __cplusplus
35777 #endif
35780 main ()
35782 return f != $ac_func;
35784 return 0;
35786 _ACEOF
35787 rm -f conftest.$ac_objext conftest$ac_exeext
35788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35789 (eval $ac_link) 2>conftest.er1
35790 ac_status=$?
35791 grep -v '^ *+' conftest.er1 >conftest.err
35792 rm -f conftest.er1
35793 cat conftest.err >&5
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); } &&
35796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798 (eval $ac_try) 2>&5
35799 ac_status=$?
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); }; } &&
35802 { ac_try='test -s conftest$ac_exeext'
35803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35804 (eval $ac_try) 2>&5
35805 ac_status=$?
35806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807 (exit $ac_status); }; }; then
35808 eval "$as_ac_var=yes"
35809 else
35810 echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35813 eval "$as_ac_var=no"
35815 rm -f conftest.err conftest.$ac_objext \
35816 conftest$ac_exeext conftest.$ac_ext
35818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35820 if test `eval echo '${'$as_ac_var'}'` = yes; then
35821 cat >>confdefs.h <<_ACEOF
35822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35823 _ACEOF
35826 done
35828 else
35830 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
35831 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
35832 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
35833 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
35834 echo $ECHO_N "(cached) $ECHO_C" >&6
35835 else
35839 ac_ext=cc
35840 ac_cpp='$CXXCPP $CPPFLAGS'
35841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35845 cat >conftest.$ac_ext <<_ACEOF
35846 /* confdefs.h. */
35847 _ACEOF
35848 cat confdefs.h >>conftest.$ac_ext
35849 cat >>conftest.$ac_ext <<_ACEOF
35850 /* end confdefs.h. */
35851 #include <math.h>
35853 main ()
35855 _atan2f(0, 0);
35857 return 0;
35859 _ACEOF
35860 rm -f conftest.$ac_objext
35861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35862 (eval $ac_compile) 2>conftest.er1
35863 ac_status=$?
35864 grep -v '^ *+' conftest.er1 >conftest.err
35865 rm -f conftest.er1
35866 cat conftest.err >&5
35867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); } &&
35869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35871 (eval $ac_try) 2>&5
35872 ac_status=$?
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); }; } &&
35875 { ac_try='test -s conftest.$ac_objext'
35876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35877 (eval $ac_try) 2>&5
35878 ac_status=$?
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); }; }; then
35881 glibcxx_cv_func__atan2f_use=yes
35882 else
35883 echo "$as_me: failed program was:" >&5
35884 sed 's/^/| /' conftest.$ac_ext >&5
35886 glibcxx_cv_func__atan2f_use=no
35888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35889 ac_ext=c
35890 ac_cpp='$CPP $CPPFLAGS'
35891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35899 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
35900 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
35902 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
35904 for ac_func in _atan2f
35906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35907 echo "$as_me:$LINENO: checking for $ac_func" >&5
35908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35909 if eval "test \"\${$as_ac_var+set}\" = set"; then
35910 echo $ECHO_N "(cached) $ECHO_C" >&6
35911 else
35912 if test x$gcc_no_link = xyes; then
35913 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35915 { (exit 1); exit 1; }; }
35917 cat >conftest.$ac_ext <<_ACEOF
35918 /* confdefs.h. */
35919 _ACEOF
35920 cat confdefs.h >>conftest.$ac_ext
35921 cat >>conftest.$ac_ext <<_ACEOF
35922 /* end confdefs.h. */
35923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35925 #define $ac_func innocuous_$ac_func
35927 /* System header to define __stub macros and hopefully few prototypes,
35928 which can conflict with char $ac_func (); below.
35929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35930 <limits.h> exists even on freestanding compilers. */
35932 #ifdef __STDC__
35933 # include <limits.h>
35934 #else
35935 # include <assert.h>
35936 #endif
35938 #undef $ac_func
35940 /* Override any gcc2 internal prototype to avoid an error. */
35941 #ifdef __cplusplus
35942 extern "C"
35944 #endif
35945 /* We use char because int might match the return type of a gcc2
35946 builtin and then its argument prototype would still apply. */
35947 char $ac_func ();
35948 /* The GNU C library defines this for functions which it implements
35949 to always fail with ENOSYS. Some functions are actually named
35950 something starting with __ and the normal name is an alias. */
35951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35952 choke me
35953 #else
35954 char (*f) () = $ac_func;
35955 #endif
35956 #ifdef __cplusplus
35958 #endif
35961 main ()
35963 return f != $ac_func;
35965 return 0;
35967 _ACEOF
35968 rm -f conftest.$ac_objext conftest$ac_exeext
35969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35970 (eval $ac_link) 2>conftest.er1
35971 ac_status=$?
35972 grep -v '^ *+' conftest.er1 >conftest.err
35973 rm -f conftest.er1
35974 cat conftest.err >&5
35975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976 (exit $ac_status); } &&
35977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35979 (eval $ac_try) 2>&5
35980 ac_status=$?
35981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982 (exit $ac_status); }; } &&
35983 { ac_try='test -s conftest$ac_exeext'
35984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35985 (eval $ac_try) 2>&5
35986 ac_status=$?
35987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988 (exit $ac_status); }; }; then
35989 eval "$as_ac_var=yes"
35990 else
35991 echo "$as_me: failed program was:" >&5
35992 sed 's/^/| /' conftest.$ac_ext >&5
35994 eval "$as_ac_var=no"
35996 rm -f conftest.err conftest.$ac_objext \
35997 conftest$ac_exeext conftest.$ac_ext
35999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36001 if test `eval echo '${'$as_ac_var'}'` = yes; then
36002 cat >>confdefs.h <<_ACEOF
36003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36004 _ACEOF
36007 done
36014 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36015 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36016 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36017 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36018 echo $ECHO_N "(cached) $ECHO_C" >&6
36019 else
36023 ac_ext=cc
36024 ac_cpp='$CXXCPP $CPPFLAGS'
36025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36029 cat >conftest.$ac_ext <<_ACEOF
36030 /* confdefs.h. */
36031 _ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h. */
36035 #include <math.h>
36036 #ifdef HAVE_IEEEFP_H
36037 #include <ieeefp.h>
36038 #endif
36041 main ()
36043 fabsf(0);
36045 return 0;
36047 _ACEOF
36048 rm -f conftest.$ac_objext
36049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36050 (eval $ac_compile) 2>conftest.er1
36051 ac_status=$?
36052 grep -v '^ *+' conftest.er1 >conftest.err
36053 rm -f conftest.er1
36054 cat conftest.err >&5
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); } &&
36057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36059 (eval $ac_try) 2>&5
36060 ac_status=$?
36061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); }; } &&
36063 { ac_try='test -s conftest.$ac_objext'
36064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36065 (eval $ac_try) 2>&5
36066 ac_status=$?
36067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068 (exit $ac_status); }; }; then
36069 glibcxx_cv_func_fabsf_use=yes
36070 else
36071 echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36074 glibcxx_cv_func_fabsf_use=no
36076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36077 ac_ext=c
36078 ac_cpp='$CPP $CPPFLAGS'
36079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36087 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36088 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36090 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36092 for ac_func in fabsf
36094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36095 echo "$as_me:$LINENO: checking for $ac_func" >&5
36096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36097 if eval "test \"\${$as_ac_var+set}\" = set"; then
36098 echo $ECHO_N "(cached) $ECHO_C" >&6
36099 else
36100 if test x$gcc_no_link = xyes; then
36101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36103 { (exit 1); exit 1; }; }
36105 cat >conftest.$ac_ext <<_ACEOF
36106 /* confdefs.h. */
36107 _ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h. */
36111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36113 #define $ac_func innocuous_$ac_func
36115 /* System header to define __stub macros and hopefully few prototypes,
36116 which can conflict with char $ac_func (); below.
36117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36118 <limits.h> exists even on freestanding compilers. */
36120 #ifdef __STDC__
36121 # include <limits.h>
36122 #else
36123 # include <assert.h>
36124 #endif
36126 #undef $ac_func
36128 /* Override any gcc2 internal prototype to avoid an error. */
36129 #ifdef __cplusplus
36130 extern "C"
36132 #endif
36133 /* We use char because int might match the return type of a gcc2
36134 builtin and then its argument prototype would still apply. */
36135 char $ac_func ();
36136 /* The GNU C library defines this for functions which it implements
36137 to always fail with ENOSYS. Some functions are actually named
36138 something starting with __ and the normal name is an alias. */
36139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36140 choke me
36141 #else
36142 char (*f) () = $ac_func;
36143 #endif
36144 #ifdef __cplusplus
36146 #endif
36149 main ()
36151 return f != $ac_func;
36153 return 0;
36155 _ACEOF
36156 rm -f conftest.$ac_objext conftest$ac_exeext
36157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36158 (eval $ac_link) 2>conftest.er1
36159 ac_status=$?
36160 grep -v '^ *+' conftest.er1 >conftest.err
36161 rm -f conftest.er1
36162 cat conftest.err >&5
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); } &&
36165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167 (eval $ac_try) 2>&5
36168 ac_status=$?
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; } &&
36171 { ac_try='test -s conftest$ac_exeext'
36172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173 (eval $ac_try) 2>&5
36174 ac_status=$?
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; }; then
36177 eval "$as_ac_var=yes"
36178 else
36179 echo "$as_me: failed program was:" >&5
36180 sed 's/^/| /' conftest.$ac_ext >&5
36182 eval "$as_ac_var=no"
36184 rm -f conftest.err conftest.$ac_objext \
36185 conftest$ac_exeext conftest.$ac_ext
36187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36189 if test `eval echo '${'$as_ac_var'}'` = yes; then
36190 cat >>confdefs.h <<_ACEOF
36191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36192 _ACEOF
36195 done
36197 else
36199 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36200 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36201 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36202 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36203 echo $ECHO_N "(cached) $ECHO_C" >&6
36204 else
36208 ac_ext=cc
36209 ac_cpp='$CXXCPP $CPPFLAGS'
36210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36214 cat >conftest.$ac_ext <<_ACEOF
36215 /* confdefs.h. */
36216 _ACEOF
36217 cat confdefs.h >>conftest.$ac_ext
36218 cat >>conftest.$ac_ext <<_ACEOF
36219 /* end confdefs.h. */
36220 #include <math.h>
36221 #ifdef HAVE_IEEEFP_H
36222 #include <ieeefp.h>
36223 #endif
36226 main ()
36228 _fabsf(0);
36230 return 0;
36232 _ACEOF
36233 rm -f conftest.$ac_objext
36234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36235 (eval $ac_compile) 2>conftest.er1
36236 ac_status=$?
36237 grep -v '^ *+' conftest.er1 >conftest.err
36238 rm -f conftest.er1
36239 cat conftest.err >&5
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } &&
36242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36244 (eval $ac_try) 2>&5
36245 ac_status=$?
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); }; } &&
36248 { ac_try='test -s conftest.$ac_objext'
36249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36250 (eval $ac_try) 2>&5
36251 ac_status=$?
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); }; }; then
36254 glibcxx_cv_func__fabsf_use=yes
36255 else
36256 echo "$as_me: failed program was:" >&5
36257 sed 's/^/| /' conftest.$ac_ext >&5
36259 glibcxx_cv_func__fabsf_use=no
36261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36262 ac_ext=c
36263 ac_cpp='$CPP $CPPFLAGS'
36264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36272 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36273 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36275 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36277 for ac_func in _fabsf
36279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36280 echo "$as_me:$LINENO: checking for $ac_func" >&5
36281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36282 if eval "test \"\${$as_ac_var+set}\" = set"; then
36283 echo $ECHO_N "(cached) $ECHO_C" >&6
36284 else
36285 if test x$gcc_no_link = xyes; then
36286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36288 { (exit 1); exit 1; }; }
36290 cat >conftest.$ac_ext <<_ACEOF
36291 /* confdefs.h. */
36292 _ACEOF
36293 cat confdefs.h >>conftest.$ac_ext
36294 cat >>conftest.$ac_ext <<_ACEOF
36295 /* end confdefs.h. */
36296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36298 #define $ac_func innocuous_$ac_func
36300 /* System header to define __stub macros and hopefully few prototypes,
36301 which can conflict with char $ac_func (); below.
36302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36303 <limits.h> exists even on freestanding compilers. */
36305 #ifdef __STDC__
36306 # include <limits.h>
36307 #else
36308 # include <assert.h>
36309 #endif
36311 #undef $ac_func
36313 /* Override any gcc2 internal prototype to avoid an error. */
36314 #ifdef __cplusplus
36315 extern "C"
36317 #endif
36318 /* We use char because int might match the return type of a gcc2
36319 builtin and then its argument prototype would still apply. */
36320 char $ac_func ();
36321 /* The GNU C library defines this for functions which it implements
36322 to always fail with ENOSYS. Some functions are actually named
36323 something starting with __ and the normal name is an alias. */
36324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36325 choke me
36326 #else
36327 char (*f) () = $ac_func;
36328 #endif
36329 #ifdef __cplusplus
36331 #endif
36334 main ()
36336 return f != $ac_func;
36338 return 0;
36340 _ACEOF
36341 rm -f conftest.$ac_objext conftest$ac_exeext
36342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36343 (eval $ac_link) 2>conftest.er1
36344 ac_status=$?
36345 grep -v '^ *+' conftest.er1 >conftest.err
36346 rm -f conftest.er1
36347 cat conftest.err >&5
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); } &&
36350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352 (eval $ac_try) 2>&5
36353 ac_status=$?
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); }; } &&
36356 { ac_try='test -s conftest$ac_exeext'
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36359 ac_status=$?
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; }; then
36362 eval "$as_ac_var=yes"
36363 else
36364 echo "$as_me: failed program was:" >&5
36365 sed 's/^/| /' conftest.$ac_ext >&5
36367 eval "$as_ac_var=no"
36369 rm -f conftest.err conftest.$ac_objext \
36370 conftest$ac_exeext conftest.$ac_ext
36372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36374 if test `eval echo '${'$as_ac_var'}'` = yes; then
36375 cat >>confdefs.h <<_ACEOF
36376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36377 _ACEOF
36380 done
36387 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36388 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36389 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36390 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36392 else
36396 ac_ext=cc
36397 ac_cpp='$CXXCPP $CPPFLAGS'
36398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36402 cat >conftest.$ac_ext <<_ACEOF
36403 /* confdefs.h. */
36404 _ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h. */
36408 #include <math.h>
36410 main ()
36412 fmodf(0, 0);
36414 return 0;
36416 _ACEOF
36417 rm -f conftest.$ac_objext
36418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36419 (eval $ac_compile) 2>conftest.er1
36420 ac_status=$?
36421 grep -v '^ *+' conftest.er1 >conftest.err
36422 rm -f conftest.er1
36423 cat conftest.err >&5
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); } &&
36426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36428 (eval $ac_try) 2>&5
36429 ac_status=$?
36430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431 (exit $ac_status); }; } &&
36432 { ac_try='test -s conftest.$ac_objext'
36433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36434 (eval $ac_try) 2>&5
36435 ac_status=$?
36436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36437 (exit $ac_status); }; }; then
36438 glibcxx_cv_func_fmodf_use=yes
36439 else
36440 echo "$as_me: failed program was:" >&5
36441 sed 's/^/| /' conftest.$ac_ext >&5
36443 glibcxx_cv_func_fmodf_use=no
36445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36446 ac_ext=c
36447 ac_cpp='$CPP $CPPFLAGS'
36448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36456 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
36457 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
36459 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36461 for ac_func in fmodf
36463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36464 echo "$as_me:$LINENO: checking for $ac_func" >&5
36465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36466 if eval "test \"\${$as_ac_var+set}\" = set"; then
36467 echo $ECHO_N "(cached) $ECHO_C" >&6
36468 else
36469 if test x$gcc_no_link = xyes; then
36470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36472 { (exit 1); exit 1; }; }
36474 cat >conftest.$ac_ext <<_ACEOF
36475 /* confdefs.h. */
36476 _ACEOF
36477 cat confdefs.h >>conftest.$ac_ext
36478 cat >>conftest.$ac_ext <<_ACEOF
36479 /* end confdefs.h. */
36480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36482 #define $ac_func innocuous_$ac_func
36484 /* System header to define __stub macros and hopefully few prototypes,
36485 which can conflict with char $ac_func (); below.
36486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36487 <limits.h> exists even on freestanding compilers. */
36489 #ifdef __STDC__
36490 # include <limits.h>
36491 #else
36492 # include <assert.h>
36493 #endif
36495 #undef $ac_func
36497 /* Override any gcc2 internal prototype to avoid an error. */
36498 #ifdef __cplusplus
36499 extern "C"
36501 #endif
36502 /* We use char because int might match the return type of a gcc2
36503 builtin and then its argument prototype would still apply. */
36504 char $ac_func ();
36505 /* The GNU C library defines this for functions which it implements
36506 to always fail with ENOSYS. Some functions are actually named
36507 something starting with __ and the normal name is an alias. */
36508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36509 choke me
36510 #else
36511 char (*f) () = $ac_func;
36512 #endif
36513 #ifdef __cplusplus
36515 #endif
36518 main ()
36520 return f != $ac_func;
36522 return 0;
36524 _ACEOF
36525 rm -f conftest.$ac_objext conftest$ac_exeext
36526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36527 (eval $ac_link) 2>conftest.er1
36528 ac_status=$?
36529 grep -v '^ *+' conftest.er1 >conftest.err
36530 rm -f conftest.er1
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } &&
36534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36536 (eval $ac_try) 2>&5
36537 ac_status=$?
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); }; } &&
36540 { ac_try='test -s conftest$ac_exeext'
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36543 ac_status=$?
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; }; then
36546 eval "$as_ac_var=yes"
36547 else
36548 echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36551 eval "$as_ac_var=no"
36553 rm -f conftest.err conftest.$ac_objext \
36554 conftest$ac_exeext conftest.$ac_ext
36556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36558 if test `eval echo '${'$as_ac_var'}'` = yes; then
36559 cat >>confdefs.h <<_ACEOF
36560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36561 _ACEOF
36564 done
36566 else
36568 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
36569 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
36570 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
36571 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
36572 echo $ECHO_N "(cached) $ECHO_C" >&6
36573 else
36577 ac_ext=cc
36578 ac_cpp='$CXXCPP $CPPFLAGS'
36579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36583 cat >conftest.$ac_ext <<_ACEOF
36584 /* confdefs.h. */
36585 _ACEOF
36586 cat confdefs.h >>conftest.$ac_ext
36587 cat >>conftest.$ac_ext <<_ACEOF
36588 /* end confdefs.h. */
36589 #include <math.h>
36591 main ()
36593 _fmodf(0, 0);
36595 return 0;
36597 _ACEOF
36598 rm -f conftest.$ac_objext
36599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36600 (eval $ac_compile) 2>conftest.er1
36601 ac_status=$?
36602 grep -v '^ *+' conftest.er1 >conftest.err
36603 rm -f conftest.er1
36604 cat conftest.err >&5
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); } &&
36607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36609 (eval $ac_try) 2>&5
36610 ac_status=$?
36611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); }; } &&
36613 { ac_try='test -s conftest.$ac_objext'
36614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36615 (eval $ac_try) 2>&5
36616 ac_status=$?
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); }; }; then
36619 glibcxx_cv_func__fmodf_use=yes
36620 else
36621 echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36624 glibcxx_cv_func__fmodf_use=no
36626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36627 ac_ext=c
36628 ac_cpp='$CPP $CPPFLAGS'
36629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36637 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
36638 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
36640 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
36642 for ac_func in _fmodf
36644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36645 echo "$as_me:$LINENO: checking for $ac_func" >&5
36646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36647 if eval "test \"\${$as_ac_var+set}\" = set"; then
36648 echo $ECHO_N "(cached) $ECHO_C" >&6
36649 else
36650 if test x$gcc_no_link = xyes; then
36651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36653 { (exit 1); exit 1; }; }
36655 cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h. */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h. */
36661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36663 #define $ac_func innocuous_$ac_func
36665 /* System header to define __stub macros and hopefully few prototypes,
36666 which can conflict with char $ac_func (); below.
36667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36668 <limits.h> exists even on freestanding compilers. */
36670 #ifdef __STDC__
36671 # include <limits.h>
36672 #else
36673 # include <assert.h>
36674 #endif
36676 #undef $ac_func
36678 /* Override any gcc2 internal prototype to avoid an error. */
36679 #ifdef __cplusplus
36680 extern "C"
36682 #endif
36683 /* We use char because int might match the return type of a gcc2
36684 builtin and then its argument prototype would still apply. */
36685 char $ac_func ();
36686 /* The GNU C library defines this for functions which it implements
36687 to always fail with ENOSYS. Some functions are actually named
36688 something starting with __ and the normal name is an alias. */
36689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36690 choke me
36691 #else
36692 char (*f) () = $ac_func;
36693 #endif
36694 #ifdef __cplusplus
36696 #endif
36699 main ()
36701 return f != $ac_func;
36703 return 0;
36705 _ACEOF
36706 rm -f conftest.$ac_objext conftest$ac_exeext
36707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36708 (eval $ac_link) 2>conftest.er1
36709 ac_status=$?
36710 grep -v '^ *+' conftest.er1 >conftest.err
36711 rm -f conftest.er1
36712 cat conftest.err >&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); } &&
36715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36717 (eval $ac_try) 2>&5
36718 ac_status=$?
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); }; } &&
36721 { ac_try='test -s conftest$ac_exeext'
36722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36723 (eval $ac_try) 2>&5
36724 ac_status=$?
36725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726 (exit $ac_status); }; }; then
36727 eval "$as_ac_var=yes"
36728 else
36729 echo "$as_me: failed program was:" >&5
36730 sed 's/^/| /' conftest.$ac_ext >&5
36732 eval "$as_ac_var=no"
36734 rm -f conftest.err conftest.$ac_objext \
36735 conftest$ac_exeext conftest.$ac_ext
36737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36739 if test `eval echo '${'$as_ac_var'}'` = yes; then
36740 cat >>confdefs.h <<_ACEOF
36741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36742 _ACEOF
36745 done
36752 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
36753 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
36754 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
36755 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
36756 echo $ECHO_N "(cached) $ECHO_C" >&6
36757 else
36761 ac_ext=cc
36762 ac_cpp='$CXXCPP $CPPFLAGS'
36763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36767 cat >conftest.$ac_ext <<_ACEOF
36768 /* confdefs.h. */
36769 _ACEOF
36770 cat confdefs.h >>conftest.$ac_ext
36771 cat >>conftest.$ac_ext <<_ACEOF
36772 /* end confdefs.h. */
36773 #include <math.h>
36775 main ()
36777 frexpf(0, 0);
36779 return 0;
36781 _ACEOF
36782 rm -f conftest.$ac_objext
36783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36784 (eval $ac_compile) 2>conftest.er1
36785 ac_status=$?
36786 grep -v '^ *+' conftest.er1 >conftest.err
36787 rm -f conftest.er1
36788 cat conftest.err >&5
36789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36790 (exit $ac_status); } &&
36791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 (eval $ac_try) 2>&5
36794 ac_status=$?
36795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; } &&
36797 { ac_try='test -s conftest.$ac_objext'
36798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799 (eval $ac_try) 2>&5
36800 ac_status=$?
36801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802 (exit $ac_status); }; }; then
36803 glibcxx_cv_func_frexpf_use=yes
36804 else
36805 echo "$as_me: failed program was:" >&5
36806 sed 's/^/| /' conftest.$ac_ext >&5
36808 glibcxx_cv_func_frexpf_use=no
36810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36811 ac_ext=c
36812 ac_cpp='$CPP $CPPFLAGS'
36813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36821 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
36822 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
36824 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
36826 for ac_func in frexpf
36828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36829 echo "$as_me:$LINENO: checking for $ac_func" >&5
36830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36831 if eval "test \"\${$as_ac_var+set}\" = set"; then
36832 echo $ECHO_N "(cached) $ECHO_C" >&6
36833 else
36834 if test x$gcc_no_link = xyes; then
36835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36837 { (exit 1); exit 1; }; }
36839 cat >conftest.$ac_ext <<_ACEOF
36840 /* confdefs.h. */
36841 _ACEOF
36842 cat confdefs.h >>conftest.$ac_ext
36843 cat >>conftest.$ac_ext <<_ACEOF
36844 /* end confdefs.h. */
36845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36847 #define $ac_func innocuous_$ac_func
36849 /* System header to define __stub macros and hopefully few prototypes,
36850 which can conflict with char $ac_func (); below.
36851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36852 <limits.h> exists even on freestanding compilers. */
36854 #ifdef __STDC__
36855 # include <limits.h>
36856 #else
36857 # include <assert.h>
36858 #endif
36860 #undef $ac_func
36862 /* Override any gcc2 internal prototype to avoid an error. */
36863 #ifdef __cplusplus
36864 extern "C"
36866 #endif
36867 /* We use char because int might match the return type of a gcc2
36868 builtin and then its argument prototype would still apply. */
36869 char $ac_func ();
36870 /* The GNU C library defines this for functions which it implements
36871 to always fail with ENOSYS. Some functions are actually named
36872 something starting with __ and the normal name is an alias. */
36873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36874 choke me
36875 #else
36876 char (*f) () = $ac_func;
36877 #endif
36878 #ifdef __cplusplus
36880 #endif
36883 main ()
36885 return f != $ac_func;
36887 return 0;
36889 _ACEOF
36890 rm -f conftest.$ac_objext conftest$ac_exeext
36891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36892 (eval $ac_link) 2>conftest.er1
36893 ac_status=$?
36894 grep -v '^ *+' conftest.er1 >conftest.err
36895 rm -f conftest.er1
36896 cat conftest.err >&5
36897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898 (exit $ac_status); } &&
36899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36901 (eval $ac_try) 2>&5
36902 ac_status=$?
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); }; } &&
36905 { ac_try='test -s conftest$ac_exeext'
36906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907 (eval $ac_try) 2>&5
36908 ac_status=$?
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); }; }; then
36911 eval "$as_ac_var=yes"
36912 else
36913 echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.$ac_ext >&5
36916 eval "$as_ac_var=no"
36918 rm -f conftest.err conftest.$ac_objext \
36919 conftest$ac_exeext conftest.$ac_ext
36921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36923 if test `eval echo '${'$as_ac_var'}'` = yes; then
36924 cat >>confdefs.h <<_ACEOF
36925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36926 _ACEOF
36929 done
36931 else
36933 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
36934 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
36935 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
36936 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
36937 echo $ECHO_N "(cached) $ECHO_C" >&6
36938 else
36942 ac_ext=cc
36943 ac_cpp='$CXXCPP $CPPFLAGS'
36944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36948 cat >conftest.$ac_ext <<_ACEOF
36949 /* confdefs.h. */
36950 _ACEOF
36951 cat confdefs.h >>conftest.$ac_ext
36952 cat >>conftest.$ac_ext <<_ACEOF
36953 /* end confdefs.h. */
36954 #include <math.h>
36956 main ()
36958 _frexpf(0, 0);
36960 return 0;
36962 _ACEOF
36963 rm -f conftest.$ac_objext
36964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36965 (eval $ac_compile) 2>conftest.er1
36966 ac_status=$?
36967 grep -v '^ *+' conftest.er1 >conftest.err
36968 rm -f conftest.er1
36969 cat conftest.err >&5
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); } &&
36972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; } &&
36978 { ac_try='test -s conftest.$ac_objext'
36979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980 (eval $ac_try) 2>&5
36981 ac_status=$?
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); }; }; then
36984 glibcxx_cv_func__frexpf_use=yes
36985 else
36986 echo "$as_me: failed program was:" >&5
36987 sed 's/^/| /' conftest.$ac_ext >&5
36989 glibcxx_cv_func__frexpf_use=no
36991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36992 ac_ext=c
36993 ac_cpp='$CPP $CPPFLAGS'
36994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37002 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37003 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37005 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37007 for ac_func in _frexpf
37009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37010 echo "$as_me:$LINENO: checking for $ac_func" >&5
37011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37012 if eval "test \"\${$as_ac_var+set}\" = set"; then
37013 echo $ECHO_N "(cached) $ECHO_C" >&6
37014 else
37015 if test x$gcc_no_link = xyes; then
37016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37018 { (exit 1); exit 1; }; }
37020 cat >conftest.$ac_ext <<_ACEOF
37021 /* confdefs.h. */
37022 _ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h. */
37026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37028 #define $ac_func innocuous_$ac_func
37030 /* System header to define __stub macros and hopefully few prototypes,
37031 which can conflict with char $ac_func (); below.
37032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37033 <limits.h> exists even on freestanding compilers. */
37035 #ifdef __STDC__
37036 # include <limits.h>
37037 #else
37038 # include <assert.h>
37039 #endif
37041 #undef $ac_func
37043 /* Override any gcc2 internal prototype to avoid an error. */
37044 #ifdef __cplusplus
37045 extern "C"
37047 #endif
37048 /* We use char because int might match the return type of a gcc2
37049 builtin and then its argument prototype would still apply. */
37050 char $ac_func ();
37051 /* The GNU C library defines this for functions which it implements
37052 to always fail with ENOSYS. Some functions are actually named
37053 something starting with __ and the normal name is an alias. */
37054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37055 choke me
37056 #else
37057 char (*f) () = $ac_func;
37058 #endif
37059 #ifdef __cplusplus
37061 #endif
37064 main ()
37066 return f != $ac_func;
37068 return 0;
37070 _ACEOF
37071 rm -f conftest.$ac_objext conftest$ac_exeext
37072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37073 (eval $ac_link) 2>conftest.er1
37074 ac_status=$?
37075 grep -v '^ *+' conftest.er1 >conftest.err
37076 rm -f conftest.er1
37077 cat conftest.err >&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } &&
37080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082 (eval $ac_try) 2>&5
37083 ac_status=$?
37084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085 (exit $ac_status); }; } &&
37086 { ac_try='test -s conftest$ac_exeext'
37087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088 (eval $ac_try) 2>&5
37089 ac_status=$?
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; }; then
37092 eval "$as_ac_var=yes"
37093 else
37094 echo "$as_me: failed program was:" >&5
37095 sed 's/^/| /' conftest.$ac_ext >&5
37097 eval "$as_ac_var=no"
37099 rm -f conftest.err conftest.$ac_objext \
37100 conftest$ac_exeext conftest.$ac_ext
37102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37104 if test `eval echo '${'$as_ac_var'}'` = yes; then
37105 cat >>confdefs.h <<_ACEOF
37106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37107 _ACEOF
37110 done
37117 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37118 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37119 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37120 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37121 echo $ECHO_N "(cached) $ECHO_C" >&6
37122 else
37126 ac_ext=cc
37127 ac_cpp='$CXXCPP $CPPFLAGS'
37128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37132 cat >conftest.$ac_ext <<_ACEOF
37133 /* confdefs.h. */
37134 _ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h. */
37138 #include <math.h>
37140 main ()
37142 hypotf(0, 0);
37144 return 0;
37146 _ACEOF
37147 rm -f conftest.$ac_objext
37148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37149 (eval $ac_compile) 2>conftest.er1
37150 ac_status=$?
37151 grep -v '^ *+' conftest.er1 >conftest.err
37152 rm -f conftest.er1
37153 cat conftest.err >&5
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); } &&
37156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158 (eval $ac_try) 2>&5
37159 ac_status=$?
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); }; } &&
37162 { ac_try='test -s conftest.$ac_objext'
37163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 (eval $ac_try) 2>&5
37165 ac_status=$?
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); }; }; then
37168 glibcxx_cv_func_hypotf_use=yes
37169 else
37170 echo "$as_me: failed program was:" >&5
37171 sed 's/^/| /' conftest.$ac_ext >&5
37173 glibcxx_cv_func_hypotf_use=no
37175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37176 ac_ext=c
37177 ac_cpp='$CPP $CPPFLAGS'
37178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37186 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37187 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37189 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37191 for ac_func in hypotf
37193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37194 echo "$as_me:$LINENO: checking for $ac_func" >&5
37195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37196 if eval "test \"\${$as_ac_var+set}\" = set"; then
37197 echo $ECHO_N "(cached) $ECHO_C" >&6
37198 else
37199 if test x$gcc_no_link = xyes; then
37200 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37201 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37202 { (exit 1); exit 1; }; }
37204 cat >conftest.$ac_ext <<_ACEOF
37205 /* confdefs.h. */
37206 _ACEOF
37207 cat confdefs.h >>conftest.$ac_ext
37208 cat >>conftest.$ac_ext <<_ACEOF
37209 /* end confdefs.h. */
37210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37212 #define $ac_func innocuous_$ac_func
37214 /* System header to define __stub macros and hopefully few prototypes,
37215 which can conflict with char $ac_func (); below.
37216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37217 <limits.h> exists even on freestanding compilers. */
37219 #ifdef __STDC__
37220 # include <limits.h>
37221 #else
37222 # include <assert.h>
37223 #endif
37225 #undef $ac_func
37227 /* Override any gcc2 internal prototype to avoid an error. */
37228 #ifdef __cplusplus
37229 extern "C"
37231 #endif
37232 /* We use char because int might match the return type of a gcc2
37233 builtin and then its argument prototype would still apply. */
37234 char $ac_func ();
37235 /* The GNU C library defines this for functions which it implements
37236 to always fail with ENOSYS. Some functions are actually named
37237 something starting with __ and the normal name is an alias. */
37238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37239 choke me
37240 #else
37241 char (*f) () = $ac_func;
37242 #endif
37243 #ifdef __cplusplus
37245 #endif
37248 main ()
37250 return f != $ac_func;
37252 return 0;
37254 _ACEOF
37255 rm -f conftest.$ac_objext conftest$ac_exeext
37256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37257 (eval $ac_link) 2>conftest.er1
37258 ac_status=$?
37259 grep -v '^ *+' conftest.er1 >conftest.err
37260 rm -f conftest.er1
37261 cat conftest.err >&5
37262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37263 (exit $ac_status); } &&
37264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37266 (eval $ac_try) 2>&5
37267 ac_status=$?
37268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37269 (exit $ac_status); }; } &&
37270 { ac_try='test -s conftest$ac_exeext'
37271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37272 (eval $ac_try) 2>&5
37273 ac_status=$?
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); }; }; then
37276 eval "$as_ac_var=yes"
37277 else
37278 echo "$as_me: failed program was:" >&5
37279 sed 's/^/| /' conftest.$ac_ext >&5
37281 eval "$as_ac_var=no"
37283 rm -f conftest.err conftest.$ac_objext \
37284 conftest$ac_exeext conftest.$ac_ext
37286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37288 if test `eval echo '${'$as_ac_var'}'` = yes; then
37289 cat >>confdefs.h <<_ACEOF
37290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37291 _ACEOF
37294 done
37296 else
37298 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37299 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37300 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37301 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37302 echo $ECHO_N "(cached) $ECHO_C" >&6
37303 else
37307 ac_ext=cc
37308 ac_cpp='$CXXCPP $CPPFLAGS'
37309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37313 cat >conftest.$ac_ext <<_ACEOF
37314 /* confdefs.h. */
37315 _ACEOF
37316 cat confdefs.h >>conftest.$ac_ext
37317 cat >>conftest.$ac_ext <<_ACEOF
37318 /* end confdefs.h. */
37319 #include <math.h>
37321 main ()
37323 _hypotf(0, 0);
37325 return 0;
37327 _ACEOF
37328 rm -f conftest.$ac_objext
37329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37330 (eval $ac_compile) 2>conftest.er1
37331 ac_status=$?
37332 grep -v '^ *+' conftest.er1 >conftest.err
37333 rm -f conftest.er1
37334 cat conftest.err >&5
37335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37336 (exit $ac_status); } &&
37337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37339 (eval $ac_try) 2>&5
37340 ac_status=$?
37341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37342 (exit $ac_status); }; } &&
37343 { ac_try='test -s conftest.$ac_objext'
37344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37345 (eval $ac_try) 2>&5
37346 ac_status=$?
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); }; }; then
37349 glibcxx_cv_func__hypotf_use=yes
37350 else
37351 echo "$as_me: failed program was:" >&5
37352 sed 's/^/| /' conftest.$ac_ext >&5
37354 glibcxx_cv_func__hypotf_use=no
37356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37357 ac_ext=c
37358 ac_cpp='$CPP $CPPFLAGS'
37359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37367 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37368 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37370 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37372 for ac_func in _hypotf
37374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37375 echo "$as_me:$LINENO: checking for $ac_func" >&5
37376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37377 if eval "test \"\${$as_ac_var+set}\" = set"; then
37378 echo $ECHO_N "(cached) $ECHO_C" >&6
37379 else
37380 if test x$gcc_no_link = xyes; then
37381 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37382 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37383 { (exit 1); exit 1; }; }
37385 cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h. */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h. */
37391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37393 #define $ac_func innocuous_$ac_func
37395 /* System header to define __stub macros and hopefully few prototypes,
37396 which can conflict with char $ac_func (); below.
37397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37398 <limits.h> exists even on freestanding compilers. */
37400 #ifdef __STDC__
37401 # include <limits.h>
37402 #else
37403 # include <assert.h>
37404 #endif
37406 #undef $ac_func
37408 /* Override any gcc2 internal prototype to avoid an error. */
37409 #ifdef __cplusplus
37410 extern "C"
37412 #endif
37413 /* We use char because int might match the return type of a gcc2
37414 builtin and then its argument prototype would still apply. */
37415 char $ac_func ();
37416 /* The GNU C library defines this for functions which it implements
37417 to always fail with ENOSYS. Some functions are actually named
37418 something starting with __ and the normal name is an alias. */
37419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37420 choke me
37421 #else
37422 char (*f) () = $ac_func;
37423 #endif
37424 #ifdef __cplusplus
37426 #endif
37429 main ()
37431 return f != $ac_func;
37433 return 0;
37435 _ACEOF
37436 rm -f conftest.$ac_objext conftest$ac_exeext
37437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37438 (eval $ac_link) 2>conftest.er1
37439 ac_status=$?
37440 grep -v '^ *+' conftest.er1 >conftest.err
37441 rm -f conftest.er1
37442 cat conftest.err >&5
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } &&
37445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37447 (eval $ac_try) 2>&5
37448 ac_status=$?
37449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450 (exit $ac_status); }; } &&
37451 { ac_try='test -s conftest$ac_exeext'
37452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37453 (eval $ac_try) 2>&5
37454 ac_status=$?
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); }; }; then
37457 eval "$as_ac_var=yes"
37458 else
37459 echo "$as_me: failed program was:" >&5
37460 sed 's/^/| /' conftest.$ac_ext >&5
37462 eval "$as_ac_var=no"
37464 rm -f conftest.err conftest.$ac_objext \
37465 conftest$ac_exeext conftest.$ac_ext
37467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37469 if test `eval echo '${'$as_ac_var'}'` = yes; then
37470 cat >>confdefs.h <<_ACEOF
37471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37472 _ACEOF
37475 done
37482 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
37483 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
37484 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
37485 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
37486 echo $ECHO_N "(cached) $ECHO_C" >&6
37487 else
37491 ac_ext=cc
37492 ac_cpp='$CXXCPP $CPPFLAGS'
37493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37497 cat >conftest.$ac_ext <<_ACEOF
37498 /* confdefs.h. */
37499 _ACEOF
37500 cat confdefs.h >>conftest.$ac_ext
37501 cat >>conftest.$ac_ext <<_ACEOF
37502 /* end confdefs.h. */
37503 #include <math.h>
37505 main ()
37507 ldexpf(0, 0);
37509 return 0;
37511 _ACEOF
37512 rm -f conftest.$ac_objext
37513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37514 (eval $ac_compile) 2>conftest.er1
37515 ac_status=$?
37516 grep -v '^ *+' conftest.er1 >conftest.err
37517 rm -f conftest.er1
37518 cat conftest.err >&5
37519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37520 (exit $ac_status); } &&
37521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37523 (eval $ac_try) 2>&5
37524 ac_status=$?
37525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526 (exit $ac_status); }; } &&
37527 { ac_try='test -s conftest.$ac_objext'
37528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37529 (eval $ac_try) 2>&5
37530 ac_status=$?
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); }; }; then
37533 glibcxx_cv_func_ldexpf_use=yes
37534 else
37535 echo "$as_me: failed program was:" >&5
37536 sed 's/^/| /' conftest.$ac_ext >&5
37538 glibcxx_cv_func_ldexpf_use=no
37540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37541 ac_ext=c
37542 ac_cpp='$CPP $CPPFLAGS'
37543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37551 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
37552 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
37554 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
37556 for ac_func in ldexpf
37558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37559 echo "$as_me:$LINENO: checking for $ac_func" >&5
37560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37561 if eval "test \"\${$as_ac_var+set}\" = set"; then
37562 echo $ECHO_N "(cached) $ECHO_C" >&6
37563 else
37564 if test x$gcc_no_link = xyes; then
37565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37567 { (exit 1); exit 1; }; }
37569 cat >conftest.$ac_ext <<_ACEOF
37570 /* confdefs.h. */
37571 _ACEOF
37572 cat confdefs.h >>conftest.$ac_ext
37573 cat >>conftest.$ac_ext <<_ACEOF
37574 /* end confdefs.h. */
37575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37577 #define $ac_func innocuous_$ac_func
37579 /* System header to define __stub macros and hopefully few prototypes,
37580 which can conflict with char $ac_func (); below.
37581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37582 <limits.h> exists even on freestanding compilers. */
37584 #ifdef __STDC__
37585 # include <limits.h>
37586 #else
37587 # include <assert.h>
37588 #endif
37590 #undef $ac_func
37592 /* Override any gcc2 internal prototype to avoid an error. */
37593 #ifdef __cplusplus
37594 extern "C"
37596 #endif
37597 /* We use char because int might match the return type of a gcc2
37598 builtin and then its argument prototype would still apply. */
37599 char $ac_func ();
37600 /* The GNU C library defines this for functions which it implements
37601 to always fail with ENOSYS. Some functions are actually named
37602 something starting with __ and the normal name is an alias. */
37603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37604 choke me
37605 #else
37606 char (*f) () = $ac_func;
37607 #endif
37608 #ifdef __cplusplus
37610 #endif
37613 main ()
37615 return f != $ac_func;
37617 return 0;
37619 _ACEOF
37620 rm -f conftest.$ac_objext conftest$ac_exeext
37621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37622 (eval $ac_link) 2>conftest.er1
37623 ac_status=$?
37624 grep -v '^ *+' conftest.er1 >conftest.err
37625 rm -f conftest.er1
37626 cat conftest.err >&5
37627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628 (exit $ac_status); } &&
37629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37631 (eval $ac_try) 2>&5
37632 ac_status=$?
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); }; } &&
37635 { ac_try='test -s conftest$ac_exeext'
37636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37637 (eval $ac_try) 2>&5
37638 ac_status=$?
37639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640 (exit $ac_status); }; }; then
37641 eval "$as_ac_var=yes"
37642 else
37643 echo "$as_me: failed program was:" >&5
37644 sed 's/^/| /' conftest.$ac_ext >&5
37646 eval "$as_ac_var=no"
37648 rm -f conftest.err conftest.$ac_objext \
37649 conftest$ac_exeext conftest.$ac_ext
37651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37653 if test `eval echo '${'$as_ac_var'}'` = yes; then
37654 cat >>confdefs.h <<_ACEOF
37655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37656 _ACEOF
37659 done
37661 else
37663 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
37664 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
37665 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
37666 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
37667 echo $ECHO_N "(cached) $ECHO_C" >&6
37668 else
37672 ac_ext=cc
37673 ac_cpp='$CXXCPP $CPPFLAGS'
37674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37678 cat >conftest.$ac_ext <<_ACEOF
37679 /* confdefs.h. */
37680 _ACEOF
37681 cat confdefs.h >>conftest.$ac_ext
37682 cat >>conftest.$ac_ext <<_ACEOF
37683 /* end confdefs.h. */
37684 #include <math.h>
37686 main ()
37688 _ldexpf(0, 0);
37690 return 0;
37692 _ACEOF
37693 rm -f conftest.$ac_objext
37694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37695 (eval $ac_compile) 2>conftest.er1
37696 ac_status=$?
37697 grep -v '^ *+' conftest.er1 >conftest.err
37698 rm -f conftest.er1
37699 cat conftest.err >&5
37700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37701 (exit $ac_status); } &&
37702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37704 (eval $ac_try) 2>&5
37705 ac_status=$?
37706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); }; } &&
37708 { ac_try='test -s conftest.$ac_objext'
37709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37710 (eval $ac_try) 2>&5
37711 ac_status=$?
37712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713 (exit $ac_status); }; }; then
37714 glibcxx_cv_func__ldexpf_use=yes
37715 else
37716 echo "$as_me: failed program was:" >&5
37717 sed 's/^/| /' conftest.$ac_ext >&5
37719 glibcxx_cv_func__ldexpf_use=no
37721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37722 ac_ext=c
37723 ac_cpp='$CPP $CPPFLAGS'
37724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37732 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
37733 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
37735 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
37737 for ac_func in _ldexpf
37739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37740 echo "$as_me:$LINENO: checking for $ac_func" >&5
37741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37742 if eval "test \"\${$as_ac_var+set}\" = set"; then
37743 echo $ECHO_N "(cached) $ECHO_C" >&6
37744 else
37745 if test x$gcc_no_link = xyes; then
37746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37748 { (exit 1); exit 1; }; }
37750 cat >conftest.$ac_ext <<_ACEOF
37751 /* confdefs.h. */
37752 _ACEOF
37753 cat confdefs.h >>conftest.$ac_ext
37754 cat >>conftest.$ac_ext <<_ACEOF
37755 /* end confdefs.h. */
37756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37758 #define $ac_func innocuous_$ac_func
37760 /* System header to define __stub macros and hopefully few prototypes,
37761 which can conflict with char $ac_func (); below.
37762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37763 <limits.h> exists even on freestanding compilers. */
37765 #ifdef __STDC__
37766 # include <limits.h>
37767 #else
37768 # include <assert.h>
37769 #endif
37771 #undef $ac_func
37773 /* Override any gcc2 internal prototype to avoid an error. */
37774 #ifdef __cplusplus
37775 extern "C"
37777 #endif
37778 /* We use char because int might match the return type of a gcc2
37779 builtin and then its argument prototype would still apply. */
37780 char $ac_func ();
37781 /* The GNU C library defines this for functions which it implements
37782 to always fail with ENOSYS. Some functions are actually named
37783 something starting with __ and the normal name is an alias. */
37784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37785 choke me
37786 #else
37787 char (*f) () = $ac_func;
37788 #endif
37789 #ifdef __cplusplus
37791 #endif
37794 main ()
37796 return f != $ac_func;
37798 return 0;
37800 _ACEOF
37801 rm -f conftest.$ac_objext conftest$ac_exeext
37802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37803 (eval $ac_link) 2>conftest.er1
37804 ac_status=$?
37805 grep -v '^ *+' conftest.er1 >conftest.err
37806 rm -f conftest.er1
37807 cat conftest.err >&5
37808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); } &&
37810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37812 (eval $ac_try) 2>&5
37813 ac_status=$?
37814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815 (exit $ac_status); }; } &&
37816 { ac_try='test -s conftest$ac_exeext'
37817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818 (eval $ac_try) 2>&5
37819 ac_status=$?
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); }; }; then
37822 eval "$as_ac_var=yes"
37823 else
37824 echo "$as_me: failed program was:" >&5
37825 sed 's/^/| /' conftest.$ac_ext >&5
37827 eval "$as_ac_var=no"
37829 rm -f conftest.err conftest.$ac_objext \
37830 conftest$ac_exeext conftest.$ac_ext
37832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37834 if test `eval echo '${'$as_ac_var'}'` = yes; then
37835 cat >>confdefs.h <<_ACEOF
37836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37837 _ACEOF
37840 done
37847 echo "$as_me:$LINENO: checking for logf declaration" >&5
37848 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
37849 if test x${glibcxx_cv_func_logf_use+set} != xset; then
37850 if test "${glibcxx_cv_func_logf_use+set}" = set; then
37851 echo $ECHO_N "(cached) $ECHO_C" >&6
37852 else
37856 ac_ext=cc
37857 ac_cpp='$CXXCPP $CPPFLAGS'
37858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37862 cat >conftest.$ac_ext <<_ACEOF
37863 /* confdefs.h. */
37864 _ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h. */
37868 #include <math.h>
37869 #ifdef HAVE_IEEEFP_H
37870 #include <ieeefp.h>
37871 #endif
37874 main ()
37876 logf(0);
37878 return 0;
37880 _ACEOF
37881 rm -f conftest.$ac_objext
37882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37883 (eval $ac_compile) 2>conftest.er1
37884 ac_status=$?
37885 grep -v '^ *+' conftest.er1 >conftest.err
37886 rm -f conftest.er1
37887 cat conftest.err >&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); } &&
37890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37893 ac_status=$?
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; } &&
37896 { ac_try='test -s conftest.$ac_objext'
37897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37898 (eval $ac_try) 2>&5
37899 ac_status=$?
37900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37901 (exit $ac_status); }; }; then
37902 glibcxx_cv_func_logf_use=yes
37903 else
37904 echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37907 glibcxx_cv_func_logf_use=no
37909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37910 ac_ext=c
37911 ac_cpp='$CPP $CPPFLAGS'
37912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37920 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
37921 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
37923 if test x$glibcxx_cv_func_logf_use = x"yes"; then
37925 for ac_func in logf
37927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37928 echo "$as_me:$LINENO: checking for $ac_func" >&5
37929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37930 if eval "test \"\${$as_ac_var+set}\" = set"; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37932 else
37933 if test x$gcc_no_link = xyes; then
37934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37936 { (exit 1); exit 1; }; }
37938 cat >conftest.$ac_ext <<_ACEOF
37939 /* confdefs.h. */
37940 _ACEOF
37941 cat confdefs.h >>conftest.$ac_ext
37942 cat >>conftest.$ac_ext <<_ACEOF
37943 /* end confdefs.h. */
37944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37946 #define $ac_func innocuous_$ac_func
37948 /* System header to define __stub macros and hopefully few prototypes,
37949 which can conflict with char $ac_func (); below.
37950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37951 <limits.h> exists even on freestanding compilers. */
37953 #ifdef __STDC__
37954 # include <limits.h>
37955 #else
37956 # include <assert.h>
37957 #endif
37959 #undef $ac_func
37961 /* Override any gcc2 internal prototype to avoid an error. */
37962 #ifdef __cplusplus
37963 extern "C"
37965 #endif
37966 /* We use char because int might match the return type of a gcc2
37967 builtin and then its argument prototype would still apply. */
37968 char $ac_func ();
37969 /* The GNU C library defines this for functions which it implements
37970 to always fail with ENOSYS. Some functions are actually named
37971 something starting with __ and the normal name is an alias. */
37972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37973 choke me
37974 #else
37975 char (*f) () = $ac_func;
37976 #endif
37977 #ifdef __cplusplus
37979 #endif
37982 main ()
37984 return f != $ac_func;
37986 return 0;
37988 _ACEOF
37989 rm -f conftest.$ac_objext conftest$ac_exeext
37990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37991 (eval $ac_link) 2>conftest.er1
37992 ac_status=$?
37993 grep -v '^ *+' conftest.er1 >conftest.err
37994 rm -f conftest.er1
37995 cat conftest.err >&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); } &&
37998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38001 ac_status=$?
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; } &&
38004 { ac_try='test -s conftest$ac_exeext'
38005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006 (eval $ac_try) 2>&5
38007 ac_status=$?
38008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009 (exit $ac_status); }; }; then
38010 eval "$as_ac_var=yes"
38011 else
38012 echo "$as_me: failed program was:" >&5
38013 sed 's/^/| /' conftest.$ac_ext >&5
38015 eval "$as_ac_var=no"
38017 rm -f conftest.err conftest.$ac_objext \
38018 conftest$ac_exeext conftest.$ac_ext
38020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38022 if test `eval echo '${'$as_ac_var'}'` = yes; then
38023 cat >>confdefs.h <<_ACEOF
38024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38025 _ACEOF
38028 done
38030 else
38032 echo "$as_me:$LINENO: checking for _logf declaration" >&5
38033 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38034 if test x${glibcxx_cv_func__logf_use+set} != xset; then
38035 if test "${glibcxx_cv_func__logf_use+set}" = set; then
38036 echo $ECHO_N "(cached) $ECHO_C" >&6
38037 else
38041 ac_ext=cc
38042 ac_cpp='$CXXCPP $CPPFLAGS'
38043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38047 cat >conftest.$ac_ext <<_ACEOF
38048 /* confdefs.h. */
38049 _ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h. */
38053 #include <math.h>
38054 #ifdef HAVE_IEEEFP_H
38055 #include <ieeefp.h>
38056 #endif
38059 main ()
38061 _logf(0);
38063 return 0;
38065 _ACEOF
38066 rm -f conftest.$ac_objext
38067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38068 (eval $ac_compile) 2>conftest.er1
38069 ac_status=$?
38070 grep -v '^ *+' conftest.er1 >conftest.err
38071 rm -f conftest.er1
38072 cat conftest.err >&5
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); } &&
38075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38078 ac_status=$?
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; } &&
38081 { ac_try='test -s conftest.$ac_objext'
38082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38083 (eval $ac_try) 2>&5
38084 ac_status=$?
38085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38086 (exit $ac_status); }; }; then
38087 glibcxx_cv_func__logf_use=yes
38088 else
38089 echo "$as_me: failed program was:" >&5
38090 sed 's/^/| /' conftest.$ac_ext >&5
38092 glibcxx_cv_func__logf_use=no
38094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38095 ac_ext=c
38096 ac_cpp='$CPP $CPPFLAGS'
38097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38105 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38106 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38108 if test x$glibcxx_cv_func__logf_use = x"yes"; then
38110 for ac_func in _logf
38112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38113 echo "$as_me:$LINENO: checking for $ac_func" >&5
38114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38115 if eval "test \"\${$as_ac_var+set}\" = set"; then
38116 echo $ECHO_N "(cached) $ECHO_C" >&6
38117 else
38118 if test x$gcc_no_link = xyes; then
38119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38121 { (exit 1); exit 1; }; }
38123 cat >conftest.$ac_ext <<_ACEOF
38124 /* confdefs.h. */
38125 _ACEOF
38126 cat confdefs.h >>conftest.$ac_ext
38127 cat >>conftest.$ac_ext <<_ACEOF
38128 /* end confdefs.h. */
38129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38131 #define $ac_func innocuous_$ac_func
38133 /* System header to define __stub macros and hopefully few prototypes,
38134 which can conflict with char $ac_func (); below.
38135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38136 <limits.h> exists even on freestanding compilers. */
38138 #ifdef __STDC__
38139 # include <limits.h>
38140 #else
38141 # include <assert.h>
38142 #endif
38144 #undef $ac_func
38146 /* Override any gcc2 internal prototype to avoid an error. */
38147 #ifdef __cplusplus
38148 extern "C"
38150 #endif
38151 /* We use char because int might match the return type of a gcc2
38152 builtin and then its argument prototype would still apply. */
38153 char $ac_func ();
38154 /* The GNU C library defines this for functions which it implements
38155 to always fail with ENOSYS. Some functions are actually named
38156 something starting with __ and the normal name is an alias. */
38157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38158 choke me
38159 #else
38160 char (*f) () = $ac_func;
38161 #endif
38162 #ifdef __cplusplus
38164 #endif
38167 main ()
38169 return f != $ac_func;
38171 return 0;
38173 _ACEOF
38174 rm -f conftest.$ac_objext conftest$ac_exeext
38175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38176 (eval $ac_link) 2>conftest.er1
38177 ac_status=$?
38178 grep -v '^ *+' conftest.er1 >conftest.err
38179 rm -f conftest.er1
38180 cat conftest.err >&5
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); } &&
38183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38186 ac_status=$?
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; } &&
38189 { ac_try='test -s conftest$ac_exeext'
38190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191 (eval $ac_try) 2>&5
38192 ac_status=$?
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); }; }; then
38195 eval "$as_ac_var=yes"
38196 else
38197 echo "$as_me: failed program was:" >&5
38198 sed 's/^/| /' conftest.$ac_ext >&5
38200 eval "$as_ac_var=no"
38202 rm -f conftest.err conftest.$ac_objext \
38203 conftest$ac_exeext conftest.$ac_ext
38205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38207 if test `eval echo '${'$as_ac_var'}'` = yes; then
38208 cat >>confdefs.h <<_ACEOF
38209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38210 _ACEOF
38213 done
38220 echo "$as_me:$LINENO: checking for log10f declaration" >&5
38221 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38222 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38223 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38224 echo $ECHO_N "(cached) $ECHO_C" >&6
38225 else
38229 ac_ext=cc
38230 ac_cpp='$CXXCPP $CPPFLAGS'
38231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38235 cat >conftest.$ac_ext <<_ACEOF
38236 /* confdefs.h. */
38237 _ACEOF
38238 cat confdefs.h >>conftest.$ac_ext
38239 cat >>conftest.$ac_ext <<_ACEOF
38240 /* end confdefs.h. */
38241 #include <math.h>
38242 #ifdef HAVE_IEEEFP_H
38243 #include <ieeefp.h>
38244 #endif
38247 main ()
38249 log10f(0);
38251 return 0;
38253 _ACEOF
38254 rm -f conftest.$ac_objext
38255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38256 (eval $ac_compile) 2>conftest.er1
38257 ac_status=$?
38258 grep -v '^ *+' conftest.er1 >conftest.err
38259 rm -f conftest.er1
38260 cat conftest.err >&5
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); } &&
38263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38265 (eval $ac_try) 2>&5
38266 ac_status=$?
38267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268 (exit $ac_status); }; } &&
38269 { ac_try='test -s conftest.$ac_objext'
38270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38271 (eval $ac_try) 2>&5
38272 ac_status=$?
38273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38274 (exit $ac_status); }; }; then
38275 glibcxx_cv_func_log10f_use=yes
38276 else
38277 echo "$as_me: failed program was:" >&5
38278 sed 's/^/| /' conftest.$ac_ext >&5
38280 glibcxx_cv_func_log10f_use=no
38282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38283 ac_ext=c
38284 ac_cpp='$CPP $CPPFLAGS'
38285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38293 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38294 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38296 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38298 for ac_func in log10f
38300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38301 echo "$as_me:$LINENO: checking for $ac_func" >&5
38302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38303 if eval "test \"\${$as_ac_var+set}\" = set"; then
38304 echo $ECHO_N "(cached) $ECHO_C" >&6
38305 else
38306 if test x$gcc_no_link = xyes; then
38307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38309 { (exit 1); exit 1; }; }
38311 cat >conftest.$ac_ext <<_ACEOF
38312 /* confdefs.h. */
38313 _ACEOF
38314 cat confdefs.h >>conftest.$ac_ext
38315 cat >>conftest.$ac_ext <<_ACEOF
38316 /* end confdefs.h. */
38317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38319 #define $ac_func innocuous_$ac_func
38321 /* System header to define __stub macros and hopefully few prototypes,
38322 which can conflict with char $ac_func (); below.
38323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38324 <limits.h> exists even on freestanding compilers. */
38326 #ifdef __STDC__
38327 # include <limits.h>
38328 #else
38329 # include <assert.h>
38330 #endif
38332 #undef $ac_func
38334 /* Override any gcc2 internal prototype to avoid an error. */
38335 #ifdef __cplusplus
38336 extern "C"
38338 #endif
38339 /* We use char because int might match the return type of a gcc2
38340 builtin and then its argument prototype would still apply. */
38341 char $ac_func ();
38342 /* The GNU C library defines this for functions which it implements
38343 to always fail with ENOSYS. Some functions are actually named
38344 something starting with __ and the normal name is an alias. */
38345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38346 choke me
38347 #else
38348 char (*f) () = $ac_func;
38349 #endif
38350 #ifdef __cplusplus
38352 #endif
38355 main ()
38357 return f != $ac_func;
38359 return 0;
38361 _ACEOF
38362 rm -f conftest.$ac_objext conftest$ac_exeext
38363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38364 (eval $ac_link) 2>conftest.er1
38365 ac_status=$?
38366 grep -v '^ *+' conftest.er1 >conftest.err
38367 rm -f conftest.er1
38368 cat conftest.err >&5
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); } &&
38371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38373 (eval $ac_try) 2>&5
38374 ac_status=$?
38375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376 (exit $ac_status); }; } &&
38377 { ac_try='test -s conftest$ac_exeext'
38378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38379 (eval $ac_try) 2>&5
38380 ac_status=$?
38381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); }; }; then
38383 eval "$as_ac_var=yes"
38384 else
38385 echo "$as_me: failed program was:" >&5
38386 sed 's/^/| /' conftest.$ac_ext >&5
38388 eval "$as_ac_var=no"
38390 rm -f conftest.err conftest.$ac_objext \
38391 conftest$ac_exeext conftest.$ac_ext
38393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38395 if test `eval echo '${'$as_ac_var'}'` = yes; then
38396 cat >>confdefs.h <<_ACEOF
38397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38398 _ACEOF
38401 done
38403 else
38405 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38406 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38407 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38408 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38409 echo $ECHO_N "(cached) $ECHO_C" >&6
38410 else
38414 ac_ext=cc
38415 ac_cpp='$CXXCPP $CPPFLAGS'
38416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38420 cat >conftest.$ac_ext <<_ACEOF
38421 /* confdefs.h. */
38422 _ACEOF
38423 cat confdefs.h >>conftest.$ac_ext
38424 cat >>conftest.$ac_ext <<_ACEOF
38425 /* end confdefs.h. */
38426 #include <math.h>
38427 #ifdef HAVE_IEEEFP_H
38428 #include <ieeefp.h>
38429 #endif
38432 main ()
38434 _log10f(0);
38436 return 0;
38438 _ACEOF
38439 rm -f conftest.$ac_objext
38440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38441 (eval $ac_compile) 2>conftest.er1
38442 ac_status=$?
38443 grep -v '^ *+' conftest.er1 >conftest.err
38444 rm -f conftest.er1
38445 cat conftest.err >&5
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); } &&
38448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450 (eval $ac_try) 2>&5
38451 ac_status=$?
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); }; } &&
38454 { ac_try='test -s conftest.$ac_objext'
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38457 ac_status=$?
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; }; then
38460 glibcxx_cv_func__log10f_use=yes
38461 else
38462 echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38465 glibcxx_cv_func__log10f_use=no
38467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38468 ac_ext=c
38469 ac_cpp='$CPP $CPPFLAGS'
38470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38478 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
38479 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
38481 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
38483 for ac_func in _log10f
38485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38486 echo "$as_me:$LINENO: checking for $ac_func" >&5
38487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38488 if eval "test \"\${$as_ac_var+set}\" = set"; then
38489 echo $ECHO_N "(cached) $ECHO_C" >&6
38490 else
38491 if test x$gcc_no_link = xyes; then
38492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38494 { (exit 1); exit 1; }; }
38496 cat >conftest.$ac_ext <<_ACEOF
38497 /* confdefs.h. */
38498 _ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h. */
38502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38504 #define $ac_func innocuous_$ac_func
38506 /* System header to define __stub macros and hopefully few prototypes,
38507 which can conflict with char $ac_func (); below.
38508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38509 <limits.h> exists even on freestanding compilers. */
38511 #ifdef __STDC__
38512 # include <limits.h>
38513 #else
38514 # include <assert.h>
38515 #endif
38517 #undef $ac_func
38519 /* Override any gcc2 internal prototype to avoid an error. */
38520 #ifdef __cplusplus
38521 extern "C"
38523 #endif
38524 /* We use char because int might match the return type of a gcc2
38525 builtin and then its argument prototype would still apply. */
38526 char $ac_func ();
38527 /* The GNU C library defines this for functions which it implements
38528 to always fail with ENOSYS. Some functions are actually named
38529 something starting with __ and the normal name is an alias. */
38530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38531 choke me
38532 #else
38533 char (*f) () = $ac_func;
38534 #endif
38535 #ifdef __cplusplus
38537 #endif
38540 main ()
38542 return f != $ac_func;
38544 return 0;
38546 _ACEOF
38547 rm -f conftest.$ac_objext conftest$ac_exeext
38548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38549 (eval $ac_link) 2>conftest.er1
38550 ac_status=$?
38551 grep -v '^ *+' conftest.er1 >conftest.err
38552 rm -f conftest.er1
38553 cat conftest.err >&5
38554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 (exit $ac_status); } &&
38556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38559 ac_status=$?
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; } &&
38562 { ac_try='test -s conftest$ac_exeext'
38563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564 (eval $ac_try) 2>&5
38565 ac_status=$?
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); }; }; then
38568 eval "$as_ac_var=yes"
38569 else
38570 echo "$as_me: failed program was:" >&5
38571 sed 's/^/| /' conftest.$ac_ext >&5
38573 eval "$as_ac_var=no"
38575 rm -f conftest.err conftest.$ac_objext \
38576 conftest$ac_exeext conftest.$ac_ext
38578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38580 if test `eval echo '${'$as_ac_var'}'` = yes; then
38581 cat >>confdefs.h <<_ACEOF
38582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38583 _ACEOF
38586 done
38593 echo "$as_me:$LINENO: checking for modff declaration" >&5
38594 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
38595 if test x${glibcxx_cv_func_modff_use+set} != xset; then
38596 if test "${glibcxx_cv_func_modff_use+set}" = set; then
38597 echo $ECHO_N "(cached) $ECHO_C" >&6
38598 else
38602 ac_ext=cc
38603 ac_cpp='$CXXCPP $CPPFLAGS'
38604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38608 cat >conftest.$ac_ext <<_ACEOF
38609 /* confdefs.h. */
38610 _ACEOF
38611 cat confdefs.h >>conftest.$ac_ext
38612 cat >>conftest.$ac_ext <<_ACEOF
38613 /* end confdefs.h. */
38614 #include <math.h>
38616 main ()
38618 modff(0, 0);
38620 return 0;
38622 _ACEOF
38623 rm -f conftest.$ac_objext
38624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38625 (eval $ac_compile) 2>conftest.er1
38626 ac_status=$?
38627 grep -v '^ *+' conftest.er1 >conftest.err
38628 rm -f conftest.er1
38629 cat conftest.err >&5
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); } &&
38632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38634 (eval $ac_try) 2>&5
38635 ac_status=$?
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); }; } &&
38638 { ac_try='test -s conftest.$ac_objext'
38639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38640 (eval $ac_try) 2>&5
38641 ac_status=$?
38642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643 (exit $ac_status); }; }; then
38644 glibcxx_cv_func_modff_use=yes
38645 else
38646 echo "$as_me: failed program was:" >&5
38647 sed 's/^/| /' conftest.$ac_ext >&5
38649 glibcxx_cv_func_modff_use=no
38651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38652 ac_ext=c
38653 ac_cpp='$CPP $CPPFLAGS'
38654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38662 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
38663 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
38665 if test x$glibcxx_cv_func_modff_use = x"yes"; then
38667 for ac_func in modff
38669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38670 echo "$as_me:$LINENO: checking for $ac_func" >&5
38671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38672 if eval "test \"\${$as_ac_var+set}\" = set"; then
38673 echo $ECHO_N "(cached) $ECHO_C" >&6
38674 else
38675 if test x$gcc_no_link = xyes; then
38676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38678 { (exit 1); exit 1; }; }
38680 cat >conftest.$ac_ext <<_ACEOF
38681 /* confdefs.h. */
38682 _ACEOF
38683 cat confdefs.h >>conftest.$ac_ext
38684 cat >>conftest.$ac_ext <<_ACEOF
38685 /* end confdefs.h. */
38686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38688 #define $ac_func innocuous_$ac_func
38690 /* System header to define __stub macros and hopefully few prototypes,
38691 which can conflict with char $ac_func (); below.
38692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38693 <limits.h> exists even on freestanding compilers. */
38695 #ifdef __STDC__
38696 # include <limits.h>
38697 #else
38698 # include <assert.h>
38699 #endif
38701 #undef $ac_func
38703 /* Override any gcc2 internal prototype to avoid an error. */
38704 #ifdef __cplusplus
38705 extern "C"
38707 #endif
38708 /* We use char because int might match the return type of a gcc2
38709 builtin and then its argument prototype would still apply. */
38710 char $ac_func ();
38711 /* The GNU C library defines this for functions which it implements
38712 to always fail with ENOSYS. Some functions are actually named
38713 something starting with __ and the normal name is an alias. */
38714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38715 choke me
38716 #else
38717 char (*f) () = $ac_func;
38718 #endif
38719 #ifdef __cplusplus
38721 #endif
38724 main ()
38726 return f != $ac_func;
38728 return 0;
38730 _ACEOF
38731 rm -f conftest.$ac_objext conftest$ac_exeext
38732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38733 (eval $ac_link) 2>conftest.er1
38734 ac_status=$?
38735 grep -v '^ *+' conftest.er1 >conftest.err
38736 rm -f conftest.er1
38737 cat conftest.err >&5
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); } &&
38740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38742 (eval $ac_try) 2>&5
38743 ac_status=$?
38744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745 (exit $ac_status); }; } &&
38746 { ac_try='test -s conftest$ac_exeext'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38748 (eval $ac_try) 2>&5
38749 ac_status=$?
38750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
38752 eval "$as_ac_var=yes"
38753 else
38754 echo "$as_me: failed program was:" >&5
38755 sed 's/^/| /' conftest.$ac_ext >&5
38757 eval "$as_ac_var=no"
38759 rm -f conftest.err conftest.$ac_objext \
38760 conftest$ac_exeext conftest.$ac_ext
38762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38764 if test `eval echo '${'$as_ac_var'}'` = yes; then
38765 cat >>confdefs.h <<_ACEOF
38766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38767 _ACEOF
38770 done
38772 else
38774 echo "$as_me:$LINENO: checking for _modff declaration" >&5
38775 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
38776 if test x${glibcxx_cv_func__modff_use+set} != xset; then
38777 if test "${glibcxx_cv_func__modff_use+set}" = set; then
38778 echo $ECHO_N "(cached) $ECHO_C" >&6
38779 else
38783 ac_ext=cc
38784 ac_cpp='$CXXCPP $CPPFLAGS'
38785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38789 cat >conftest.$ac_ext <<_ACEOF
38790 /* confdefs.h. */
38791 _ACEOF
38792 cat confdefs.h >>conftest.$ac_ext
38793 cat >>conftest.$ac_ext <<_ACEOF
38794 /* end confdefs.h. */
38795 #include <math.h>
38797 main ()
38799 _modff(0, 0);
38801 return 0;
38803 _ACEOF
38804 rm -f conftest.$ac_objext
38805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38806 (eval $ac_compile) 2>conftest.er1
38807 ac_status=$?
38808 grep -v '^ *+' conftest.er1 >conftest.err
38809 rm -f conftest.er1
38810 cat conftest.err >&5
38811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38812 (exit $ac_status); } &&
38813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38815 (eval $ac_try) 2>&5
38816 ac_status=$?
38817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38818 (exit $ac_status); }; } &&
38819 { ac_try='test -s conftest.$ac_objext'
38820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38821 (eval $ac_try) 2>&5
38822 ac_status=$?
38823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824 (exit $ac_status); }; }; then
38825 glibcxx_cv_func__modff_use=yes
38826 else
38827 echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38830 glibcxx_cv_func__modff_use=no
38832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38833 ac_ext=c
38834 ac_cpp='$CPP $CPPFLAGS'
38835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38843 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
38844 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
38846 if test x$glibcxx_cv_func__modff_use = x"yes"; then
38848 for ac_func in _modff
38850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38851 echo "$as_me:$LINENO: checking for $ac_func" >&5
38852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38853 if eval "test \"\${$as_ac_var+set}\" = set"; then
38854 echo $ECHO_N "(cached) $ECHO_C" >&6
38855 else
38856 if test x$gcc_no_link = xyes; then
38857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38859 { (exit 1); exit 1; }; }
38861 cat >conftest.$ac_ext <<_ACEOF
38862 /* confdefs.h. */
38863 _ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h. */
38867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38869 #define $ac_func innocuous_$ac_func
38871 /* System header to define __stub macros and hopefully few prototypes,
38872 which can conflict with char $ac_func (); below.
38873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38874 <limits.h> exists even on freestanding compilers. */
38876 #ifdef __STDC__
38877 # include <limits.h>
38878 #else
38879 # include <assert.h>
38880 #endif
38882 #undef $ac_func
38884 /* Override any gcc2 internal prototype to avoid an error. */
38885 #ifdef __cplusplus
38886 extern "C"
38888 #endif
38889 /* We use char because int might match the return type of a gcc2
38890 builtin and then its argument prototype would still apply. */
38891 char $ac_func ();
38892 /* The GNU C library defines this for functions which it implements
38893 to always fail with ENOSYS. Some functions are actually named
38894 something starting with __ and the normal name is an alias. */
38895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38896 choke me
38897 #else
38898 char (*f) () = $ac_func;
38899 #endif
38900 #ifdef __cplusplus
38902 #endif
38905 main ()
38907 return f != $ac_func;
38909 return 0;
38911 _ACEOF
38912 rm -f conftest.$ac_objext conftest$ac_exeext
38913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38914 (eval $ac_link) 2>conftest.er1
38915 ac_status=$?
38916 grep -v '^ *+' conftest.er1 >conftest.err
38917 rm -f conftest.er1
38918 cat conftest.err >&5
38919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38920 (exit $ac_status); } &&
38921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38923 (eval $ac_try) 2>&5
38924 ac_status=$?
38925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); }; } &&
38927 { ac_try='test -s conftest$ac_exeext'
38928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929 (eval $ac_try) 2>&5
38930 ac_status=$?
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); }; }; then
38933 eval "$as_ac_var=yes"
38934 else
38935 echo "$as_me: failed program was:" >&5
38936 sed 's/^/| /' conftest.$ac_ext >&5
38938 eval "$as_ac_var=no"
38940 rm -f conftest.err conftest.$ac_objext \
38941 conftest$ac_exeext conftest.$ac_ext
38943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38945 if test `eval echo '${'$as_ac_var'}'` = yes; then
38946 cat >>confdefs.h <<_ACEOF
38947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38948 _ACEOF
38951 done
38958 echo "$as_me:$LINENO: checking for powf declaration" >&5
38959 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
38960 if test x${glibcxx_cv_func_powf_use+set} != xset; then
38961 if test "${glibcxx_cv_func_powf_use+set}" = set; then
38962 echo $ECHO_N "(cached) $ECHO_C" >&6
38963 else
38967 ac_ext=cc
38968 ac_cpp='$CXXCPP $CPPFLAGS'
38969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38973 cat >conftest.$ac_ext <<_ACEOF
38974 /* confdefs.h. */
38975 _ACEOF
38976 cat confdefs.h >>conftest.$ac_ext
38977 cat >>conftest.$ac_ext <<_ACEOF
38978 /* end confdefs.h. */
38979 #include <math.h>
38981 main ()
38983 powf(0, 0);
38985 return 0;
38987 _ACEOF
38988 rm -f conftest.$ac_objext
38989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38990 (eval $ac_compile) 2>conftest.er1
38991 ac_status=$?
38992 grep -v '^ *+' conftest.er1 >conftest.err
38993 rm -f conftest.er1
38994 cat conftest.err >&5
38995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38996 (exit $ac_status); } &&
38997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39000 ac_status=$?
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; } &&
39003 { ac_try='test -s conftest.$ac_objext'
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39006 ac_status=$?
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; }; then
39009 glibcxx_cv_func_powf_use=yes
39010 else
39011 echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39014 glibcxx_cv_func_powf_use=no
39016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39017 ac_ext=c
39018 ac_cpp='$CPP $CPPFLAGS'
39019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39027 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39028 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39030 if test x$glibcxx_cv_func_powf_use = x"yes"; then
39032 for ac_func in powf
39034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39035 echo "$as_me:$LINENO: checking for $ac_func" >&5
39036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39037 if eval "test \"\${$as_ac_var+set}\" = set"; then
39038 echo $ECHO_N "(cached) $ECHO_C" >&6
39039 else
39040 if test x$gcc_no_link = xyes; then
39041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39043 { (exit 1); exit 1; }; }
39045 cat >conftest.$ac_ext <<_ACEOF
39046 /* confdefs.h. */
39047 _ACEOF
39048 cat confdefs.h >>conftest.$ac_ext
39049 cat >>conftest.$ac_ext <<_ACEOF
39050 /* end confdefs.h. */
39051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39053 #define $ac_func innocuous_$ac_func
39055 /* System header to define __stub macros and hopefully few prototypes,
39056 which can conflict with char $ac_func (); below.
39057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39058 <limits.h> exists even on freestanding compilers. */
39060 #ifdef __STDC__
39061 # include <limits.h>
39062 #else
39063 # include <assert.h>
39064 #endif
39066 #undef $ac_func
39068 /* Override any gcc2 internal prototype to avoid an error. */
39069 #ifdef __cplusplus
39070 extern "C"
39072 #endif
39073 /* We use char because int might match the return type of a gcc2
39074 builtin and then its argument prototype would still apply. */
39075 char $ac_func ();
39076 /* The GNU C library defines this for functions which it implements
39077 to always fail with ENOSYS. Some functions are actually named
39078 something starting with __ and the normal name is an alias. */
39079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39080 choke me
39081 #else
39082 char (*f) () = $ac_func;
39083 #endif
39084 #ifdef __cplusplus
39086 #endif
39089 main ()
39091 return f != $ac_func;
39093 return 0;
39095 _ACEOF
39096 rm -f conftest.$ac_objext conftest$ac_exeext
39097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39098 (eval $ac_link) 2>conftest.er1
39099 ac_status=$?
39100 grep -v '^ *+' conftest.er1 >conftest.err
39101 rm -f conftest.er1
39102 cat conftest.err >&5
39103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104 (exit $ac_status); } &&
39105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39107 (eval $ac_try) 2>&5
39108 ac_status=$?
39109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39110 (exit $ac_status); }; } &&
39111 { ac_try='test -s conftest$ac_exeext'
39112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39113 (eval $ac_try) 2>&5
39114 ac_status=$?
39115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116 (exit $ac_status); }; }; then
39117 eval "$as_ac_var=yes"
39118 else
39119 echo "$as_me: failed program was:" >&5
39120 sed 's/^/| /' conftest.$ac_ext >&5
39122 eval "$as_ac_var=no"
39124 rm -f conftest.err conftest.$ac_objext \
39125 conftest$ac_exeext conftest.$ac_ext
39127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39129 if test `eval echo '${'$as_ac_var'}'` = yes; then
39130 cat >>confdefs.h <<_ACEOF
39131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39132 _ACEOF
39135 done
39137 else
39139 echo "$as_me:$LINENO: checking for _powf declaration" >&5
39140 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39141 if test x${glibcxx_cv_func__powf_use+set} != xset; then
39142 if test "${glibcxx_cv_func__powf_use+set}" = set; then
39143 echo $ECHO_N "(cached) $ECHO_C" >&6
39144 else
39148 ac_ext=cc
39149 ac_cpp='$CXXCPP $CPPFLAGS'
39150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39154 cat >conftest.$ac_ext <<_ACEOF
39155 /* confdefs.h. */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39160 #include <math.h>
39162 main ()
39164 _powf(0, 0);
39166 return 0;
39168 _ACEOF
39169 rm -f conftest.$ac_objext
39170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39171 (eval $ac_compile) 2>conftest.er1
39172 ac_status=$?
39173 grep -v '^ *+' conftest.er1 >conftest.err
39174 rm -f conftest.er1
39175 cat conftest.err >&5
39176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39177 (exit $ac_status); } &&
39178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39180 (eval $ac_try) 2>&5
39181 ac_status=$?
39182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183 (exit $ac_status); }; } &&
39184 { ac_try='test -s conftest.$ac_objext'
39185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39186 (eval $ac_try) 2>&5
39187 ac_status=$?
39188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189 (exit $ac_status); }; }; then
39190 glibcxx_cv_func__powf_use=yes
39191 else
39192 echo "$as_me: failed program was:" >&5
39193 sed 's/^/| /' conftest.$ac_ext >&5
39195 glibcxx_cv_func__powf_use=no
39197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39198 ac_ext=c
39199 ac_cpp='$CPP $CPPFLAGS'
39200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39208 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39209 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39211 if test x$glibcxx_cv_func__powf_use = x"yes"; then
39213 for ac_func in _powf
39215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39216 echo "$as_me:$LINENO: checking for $ac_func" >&5
39217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39218 if eval "test \"\${$as_ac_var+set}\" = set"; then
39219 echo $ECHO_N "(cached) $ECHO_C" >&6
39220 else
39221 if test x$gcc_no_link = xyes; then
39222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39224 { (exit 1); exit 1; }; }
39226 cat >conftest.$ac_ext <<_ACEOF
39227 /* confdefs.h. */
39228 _ACEOF
39229 cat confdefs.h >>conftest.$ac_ext
39230 cat >>conftest.$ac_ext <<_ACEOF
39231 /* end confdefs.h. */
39232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39234 #define $ac_func innocuous_$ac_func
39236 /* System header to define __stub macros and hopefully few prototypes,
39237 which can conflict with char $ac_func (); below.
39238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39239 <limits.h> exists even on freestanding compilers. */
39241 #ifdef __STDC__
39242 # include <limits.h>
39243 #else
39244 # include <assert.h>
39245 #endif
39247 #undef $ac_func
39249 /* Override any gcc2 internal prototype to avoid an error. */
39250 #ifdef __cplusplus
39251 extern "C"
39253 #endif
39254 /* We use char because int might match the return type of a gcc2
39255 builtin and then its argument prototype would still apply. */
39256 char $ac_func ();
39257 /* The GNU C library defines this for functions which it implements
39258 to always fail with ENOSYS. Some functions are actually named
39259 something starting with __ and the normal name is an alias. */
39260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39261 choke me
39262 #else
39263 char (*f) () = $ac_func;
39264 #endif
39265 #ifdef __cplusplus
39267 #endif
39270 main ()
39272 return f != $ac_func;
39274 return 0;
39276 _ACEOF
39277 rm -f conftest.$ac_objext conftest$ac_exeext
39278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39279 (eval $ac_link) 2>conftest.er1
39280 ac_status=$?
39281 grep -v '^ *+' conftest.er1 >conftest.err
39282 rm -f conftest.er1
39283 cat conftest.err >&5
39284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); } &&
39286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288 (eval $ac_try) 2>&5
39289 ac_status=$?
39290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291 (exit $ac_status); }; } &&
39292 { ac_try='test -s conftest$ac_exeext'
39293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39294 (eval $ac_try) 2>&5
39295 ac_status=$?
39296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 (exit $ac_status); }; }; then
39298 eval "$as_ac_var=yes"
39299 else
39300 echo "$as_me: failed program was:" >&5
39301 sed 's/^/| /' conftest.$ac_ext >&5
39303 eval "$as_ac_var=no"
39305 rm -f conftest.err conftest.$ac_objext \
39306 conftest$ac_exeext conftest.$ac_ext
39308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39310 if test `eval echo '${'$as_ac_var'}'` = yes; then
39311 cat >>confdefs.h <<_ACEOF
39312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39313 _ACEOF
39316 done
39323 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39324 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39325 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39326 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39327 echo $ECHO_N "(cached) $ECHO_C" >&6
39328 else
39332 ac_ext=cc
39333 ac_cpp='$CXXCPP $CPPFLAGS'
39334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39338 cat >conftest.$ac_ext <<_ACEOF
39339 /* confdefs.h. */
39340 _ACEOF
39341 cat confdefs.h >>conftest.$ac_ext
39342 cat >>conftest.$ac_ext <<_ACEOF
39343 /* end confdefs.h. */
39344 #include <math.h>
39345 #ifdef HAVE_IEEEFP_H
39346 #include <ieeefp.h>
39347 #endif
39350 main ()
39352 sqrtf(0);
39354 return 0;
39356 _ACEOF
39357 rm -f conftest.$ac_objext
39358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39359 (eval $ac_compile) 2>conftest.er1
39360 ac_status=$?
39361 grep -v '^ *+' conftest.er1 >conftest.err
39362 rm -f conftest.er1
39363 cat conftest.err >&5
39364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365 (exit $ac_status); } &&
39366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39368 (eval $ac_try) 2>&5
39369 ac_status=$?
39370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39371 (exit $ac_status); }; } &&
39372 { ac_try='test -s conftest.$ac_objext'
39373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39374 (eval $ac_try) 2>&5
39375 ac_status=$?
39376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39377 (exit $ac_status); }; }; then
39378 glibcxx_cv_func_sqrtf_use=yes
39379 else
39380 echo "$as_me: failed program was:" >&5
39381 sed 's/^/| /' conftest.$ac_ext >&5
39383 glibcxx_cv_func_sqrtf_use=no
39385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39386 ac_ext=c
39387 ac_cpp='$CPP $CPPFLAGS'
39388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39396 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39397 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39399 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39401 for ac_func in sqrtf
39403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39404 echo "$as_me:$LINENO: checking for $ac_func" >&5
39405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39406 if eval "test \"\${$as_ac_var+set}\" = set"; then
39407 echo $ECHO_N "(cached) $ECHO_C" >&6
39408 else
39409 if test x$gcc_no_link = xyes; then
39410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39412 { (exit 1); exit 1; }; }
39414 cat >conftest.$ac_ext <<_ACEOF
39415 /* confdefs.h. */
39416 _ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39422 #define $ac_func innocuous_$ac_func
39424 /* System header to define __stub macros and hopefully few prototypes,
39425 which can conflict with char $ac_func (); below.
39426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39427 <limits.h> exists even on freestanding compilers. */
39429 #ifdef __STDC__
39430 # include <limits.h>
39431 #else
39432 # include <assert.h>
39433 #endif
39435 #undef $ac_func
39437 /* Override any gcc2 internal prototype to avoid an error. */
39438 #ifdef __cplusplus
39439 extern "C"
39441 #endif
39442 /* We use char because int might match the return type of a gcc2
39443 builtin and then its argument prototype would still apply. */
39444 char $ac_func ();
39445 /* The GNU C library defines this for functions which it implements
39446 to always fail with ENOSYS. Some functions are actually named
39447 something starting with __ and the normal name is an alias. */
39448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39449 choke me
39450 #else
39451 char (*f) () = $ac_func;
39452 #endif
39453 #ifdef __cplusplus
39455 #endif
39458 main ()
39460 return f != $ac_func;
39462 return 0;
39464 _ACEOF
39465 rm -f conftest.$ac_objext conftest$ac_exeext
39466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39467 (eval $ac_link) 2>conftest.er1
39468 ac_status=$?
39469 grep -v '^ *+' conftest.er1 >conftest.err
39470 rm -f conftest.er1
39471 cat conftest.err >&5
39472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39473 (exit $ac_status); } &&
39474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39476 (eval $ac_try) 2>&5
39477 ac_status=$?
39478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479 (exit $ac_status); }; } &&
39480 { ac_try='test -s conftest$ac_exeext'
39481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39482 (eval $ac_try) 2>&5
39483 ac_status=$?
39484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485 (exit $ac_status); }; }; then
39486 eval "$as_ac_var=yes"
39487 else
39488 echo "$as_me: failed program was:" >&5
39489 sed 's/^/| /' conftest.$ac_ext >&5
39491 eval "$as_ac_var=no"
39493 rm -f conftest.err conftest.$ac_objext \
39494 conftest$ac_exeext conftest.$ac_ext
39496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39498 if test `eval echo '${'$as_ac_var'}'` = yes; then
39499 cat >>confdefs.h <<_ACEOF
39500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39501 _ACEOF
39504 done
39506 else
39508 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
39509 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
39510 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
39511 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
39512 echo $ECHO_N "(cached) $ECHO_C" >&6
39513 else
39517 ac_ext=cc
39518 ac_cpp='$CXXCPP $CPPFLAGS'
39519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39523 cat >conftest.$ac_ext <<_ACEOF
39524 /* confdefs.h. */
39525 _ACEOF
39526 cat confdefs.h >>conftest.$ac_ext
39527 cat >>conftest.$ac_ext <<_ACEOF
39528 /* end confdefs.h. */
39529 #include <math.h>
39530 #ifdef HAVE_IEEEFP_H
39531 #include <ieeefp.h>
39532 #endif
39535 main ()
39537 _sqrtf(0);
39539 return 0;
39541 _ACEOF
39542 rm -f conftest.$ac_objext
39543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39544 (eval $ac_compile) 2>conftest.er1
39545 ac_status=$?
39546 grep -v '^ *+' conftest.er1 >conftest.err
39547 rm -f conftest.er1
39548 cat conftest.err >&5
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); } &&
39551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553 (eval $ac_try) 2>&5
39554 ac_status=$?
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); }; } &&
39557 { ac_try='test -s conftest.$ac_objext'
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39560 ac_status=$?
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; }; then
39563 glibcxx_cv_func__sqrtf_use=yes
39564 else
39565 echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39568 glibcxx_cv_func__sqrtf_use=no
39570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39571 ac_ext=c
39572 ac_cpp='$CPP $CPPFLAGS'
39573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39581 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
39582 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
39584 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
39586 for ac_func in _sqrtf
39588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39589 echo "$as_me:$LINENO: checking for $ac_func" >&5
39590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39591 if eval "test \"\${$as_ac_var+set}\" = set"; then
39592 echo $ECHO_N "(cached) $ECHO_C" >&6
39593 else
39594 if test x$gcc_no_link = xyes; then
39595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39597 { (exit 1); exit 1; }; }
39599 cat >conftest.$ac_ext <<_ACEOF
39600 /* confdefs.h. */
39601 _ACEOF
39602 cat confdefs.h >>conftest.$ac_ext
39603 cat >>conftest.$ac_ext <<_ACEOF
39604 /* end confdefs.h. */
39605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39607 #define $ac_func innocuous_$ac_func
39609 /* System header to define __stub macros and hopefully few prototypes,
39610 which can conflict with char $ac_func (); below.
39611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39612 <limits.h> exists even on freestanding compilers. */
39614 #ifdef __STDC__
39615 # include <limits.h>
39616 #else
39617 # include <assert.h>
39618 #endif
39620 #undef $ac_func
39622 /* Override any gcc2 internal prototype to avoid an error. */
39623 #ifdef __cplusplus
39624 extern "C"
39626 #endif
39627 /* We use char because int might match the return type of a gcc2
39628 builtin and then its argument prototype would still apply. */
39629 char $ac_func ();
39630 /* The GNU C library defines this for functions which it implements
39631 to always fail with ENOSYS. Some functions are actually named
39632 something starting with __ and the normal name is an alias. */
39633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39634 choke me
39635 #else
39636 char (*f) () = $ac_func;
39637 #endif
39638 #ifdef __cplusplus
39640 #endif
39643 main ()
39645 return f != $ac_func;
39647 return 0;
39649 _ACEOF
39650 rm -f conftest.$ac_objext conftest$ac_exeext
39651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39652 (eval $ac_link) 2>conftest.er1
39653 ac_status=$?
39654 grep -v '^ *+' conftest.er1 >conftest.err
39655 rm -f conftest.er1
39656 cat conftest.err >&5
39657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39658 (exit $ac_status); } &&
39659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39661 (eval $ac_try) 2>&5
39662 ac_status=$?
39663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39664 (exit $ac_status); }; } &&
39665 { ac_try='test -s conftest$ac_exeext'
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39668 ac_status=$?
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; }; then
39671 eval "$as_ac_var=yes"
39672 else
39673 echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39676 eval "$as_ac_var=no"
39678 rm -f conftest.err conftest.$ac_objext \
39679 conftest$ac_exeext conftest.$ac_ext
39681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39683 if test `eval echo '${'$as_ac_var'}'` = yes; then
39684 cat >>confdefs.h <<_ACEOF
39685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39686 _ACEOF
39689 done
39696 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
39697 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
39698 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
39699 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
39700 echo $ECHO_N "(cached) $ECHO_C" >&6
39701 else
39705 ac_ext=cc
39706 ac_cpp='$CXXCPP $CPPFLAGS'
39707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39711 cat >conftest.$ac_ext <<_ACEOF
39712 /* confdefs.h. */
39713 _ACEOF
39714 cat confdefs.h >>conftest.$ac_ext
39715 cat >>conftest.$ac_ext <<_ACEOF
39716 /* end confdefs.h. */
39717 #include <math.h>
39719 main ()
39721 sincosf(0, 0, 0);
39723 return 0;
39725 _ACEOF
39726 rm -f conftest.$ac_objext
39727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39728 (eval $ac_compile) 2>conftest.er1
39729 ac_status=$?
39730 grep -v '^ *+' conftest.er1 >conftest.err
39731 rm -f conftest.er1
39732 cat conftest.err >&5
39733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734 (exit $ac_status); } &&
39735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39737 (eval $ac_try) 2>&5
39738 ac_status=$?
39739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39740 (exit $ac_status); }; } &&
39741 { ac_try='test -s conftest.$ac_objext'
39742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39743 (eval $ac_try) 2>&5
39744 ac_status=$?
39745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746 (exit $ac_status); }; }; then
39747 glibcxx_cv_func_sincosf_use=yes
39748 else
39749 echo "$as_me: failed program was:" >&5
39750 sed 's/^/| /' conftest.$ac_ext >&5
39752 glibcxx_cv_func_sincosf_use=no
39754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39755 ac_ext=c
39756 ac_cpp='$CPP $CPPFLAGS'
39757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39765 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
39766 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
39768 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
39770 for ac_func in sincosf
39772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39773 echo "$as_me:$LINENO: checking for $ac_func" >&5
39774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39775 if eval "test \"\${$as_ac_var+set}\" = set"; then
39776 echo $ECHO_N "(cached) $ECHO_C" >&6
39777 else
39778 if test x$gcc_no_link = xyes; then
39779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39781 { (exit 1); exit 1; }; }
39783 cat >conftest.$ac_ext <<_ACEOF
39784 /* confdefs.h. */
39785 _ACEOF
39786 cat confdefs.h >>conftest.$ac_ext
39787 cat >>conftest.$ac_ext <<_ACEOF
39788 /* end confdefs.h. */
39789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39791 #define $ac_func innocuous_$ac_func
39793 /* System header to define __stub macros and hopefully few prototypes,
39794 which can conflict with char $ac_func (); below.
39795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39796 <limits.h> exists even on freestanding compilers. */
39798 #ifdef __STDC__
39799 # include <limits.h>
39800 #else
39801 # include <assert.h>
39802 #endif
39804 #undef $ac_func
39806 /* Override any gcc2 internal prototype to avoid an error. */
39807 #ifdef __cplusplus
39808 extern "C"
39810 #endif
39811 /* We use char because int might match the return type of a gcc2
39812 builtin and then its argument prototype would still apply. */
39813 char $ac_func ();
39814 /* The GNU C library defines this for functions which it implements
39815 to always fail with ENOSYS. Some functions are actually named
39816 something starting with __ and the normal name is an alias. */
39817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39818 choke me
39819 #else
39820 char (*f) () = $ac_func;
39821 #endif
39822 #ifdef __cplusplus
39824 #endif
39827 main ()
39829 return f != $ac_func;
39831 return 0;
39833 _ACEOF
39834 rm -f conftest.$ac_objext conftest$ac_exeext
39835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39836 (eval $ac_link) 2>conftest.er1
39837 ac_status=$?
39838 grep -v '^ *+' conftest.er1 >conftest.err
39839 rm -f conftest.er1
39840 cat conftest.err >&5
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); } &&
39843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39845 (eval $ac_try) 2>&5
39846 ac_status=$?
39847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); }; } &&
39849 { ac_try='test -s conftest$ac_exeext'
39850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39851 (eval $ac_try) 2>&5
39852 ac_status=$?
39853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); }; }; then
39855 eval "$as_ac_var=yes"
39856 else
39857 echo "$as_me: failed program was:" >&5
39858 sed 's/^/| /' conftest.$ac_ext >&5
39860 eval "$as_ac_var=no"
39862 rm -f conftest.err conftest.$ac_objext \
39863 conftest$ac_exeext conftest.$ac_ext
39865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39867 if test `eval echo '${'$as_ac_var'}'` = yes; then
39868 cat >>confdefs.h <<_ACEOF
39869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39870 _ACEOF
39873 done
39875 else
39877 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
39878 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
39879 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
39880 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
39881 echo $ECHO_N "(cached) $ECHO_C" >&6
39882 else
39886 ac_ext=cc
39887 ac_cpp='$CXXCPP $CPPFLAGS'
39888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39892 cat >conftest.$ac_ext <<_ACEOF
39893 /* confdefs.h. */
39894 _ACEOF
39895 cat confdefs.h >>conftest.$ac_ext
39896 cat >>conftest.$ac_ext <<_ACEOF
39897 /* end confdefs.h. */
39898 #include <math.h>
39900 main ()
39902 _sincosf(0, 0, 0);
39904 return 0;
39906 _ACEOF
39907 rm -f conftest.$ac_objext
39908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39909 (eval $ac_compile) 2>conftest.er1
39910 ac_status=$?
39911 grep -v '^ *+' conftest.er1 >conftest.err
39912 rm -f conftest.er1
39913 cat conftest.err >&5
39914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); } &&
39916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39918 (eval $ac_try) 2>&5
39919 ac_status=$?
39920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39921 (exit $ac_status); }; } &&
39922 { ac_try='test -s conftest.$ac_objext'
39923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39924 (eval $ac_try) 2>&5
39925 ac_status=$?
39926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927 (exit $ac_status); }; }; then
39928 glibcxx_cv_func__sincosf_use=yes
39929 else
39930 echo "$as_me: failed program was:" >&5
39931 sed 's/^/| /' conftest.$ac_ext >&5
39933 glibcxx_cv_func__sincosf_use=no
39935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39936 ac_ext=c
39937 ac_cpp='$CPP $CPPFLAGS'
39938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39946 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
39947 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
39949 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
39951 for ac_func in _sincosf
39953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39954 echo "$as_me:$LINENO: checking for $ac_func" >&5
39955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39956 if eval "test \"\${$as_ac_var+set}\" = set"; then
39957 echo $ECHO_N "(cached) $ECHO_C" >&6
39958 else
39959 if test x$gcc_no_link = xyes; then
39960 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39962 { (exit 1); exit 1; }; }
39964 cat >conftest.$ac_ext <<_ACEOF
39965 /* confdefs.h. */
39966 _ACEOF
39967 cat confdefs.h >>conftest.$ac_ext
39968 cat >>conftest.$ac_ext <<_ACEOF
39969 /* end confdefs.h. */
39970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39972 #define $ac_func innocuous_$ac_func
39974 /* System header to define __stub macros and hopefully few prototypes,
39975 which can conflict with char $ac_func (); below.
39976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39977 <limits.h> exists even on freestanding compilers. */
39979 #ifdef __STDC__
39980 # include <limits.h>
39981 #else
39982 # include <assert.h>
39983 #endif
39985 #undef $ac_func
39987 /* Override any gcc2 internal prototype to avoid an error. */
39988 #ifdef __cplusplus
39989 extern "C"
39991 #endif
39992 /* We use char because int might match the return type of a gcc2
39993 builtin and then its argument prototype would still apply. */
39994 char $ac_func ();
39995 /* The GNU C library defines this for functions which it implements
39996 to always fail with ENOSYS. Some functions are actually named
39997 something starting with __ and the normal name is an alias. */
39998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39999 choke me
40000 #else
40001 char (*f) () = $ac_func;
40002 #endif
40003 #ifdef __cplusplus
40005 #endif
40008 main ()
40010 return f != $ac_func;
40012 return 0;
40014 _ACEOF
40015 rm -f conftest.$ac_objext conftest$ac_exeext
40016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40017 (eval $ac_link) 2>conftest.er1
40018 ac_status=$?
40019 grep -v '^ *+' conftest.er1 >conftest.err
40020 rm -f conftest.er1
40021 cat conftest.err >&5
40022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023 (exit $ac_status); } &&
40024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40026 (eval $ac_try) 2>&5
40027 ac_status=$?
40028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40029 (exit $ac_status); }; } &&
40030 { ac_try='test -s conftest$ac_exeext'
40031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032 (eval $ac_try) 2>&5
40033 ac_status=$?
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); }; }; then
40036 eval "$as_ac_var=yes"
40037 else
40038 echo "$as_me: failed program was:" >&5
40039 sed 's/^/| /' conftest.$ac_ext >&5
40041 eval "$as_ac_var=no"
40043 rm -f conftest.err conftest.$ac_objext \
40044 conftest$ac_exeext conftest.$ac_ext
40046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40048 if test `eval echo '${'$as_ac_var'}'` = yes; then
40049 cat >>confdefs.h <<_ACEOF
40050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40051 _ACEOF
40054 done
40061 echo "$as_me:$LINENO: checking for finitef declaration" >&5
40062 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40063 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40064 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40065 echo $ECHO_N "(cached) $ECHO_C" >&6
40066 else
40070 ac_ext=cc
40071 ac_cpp='$CXXCPP $CPPFLAGS'
40072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40076 cat >conftest.$ac_ext <<_ACEOF
40077 /* confdefs.h. */
40078 _ACEOF
40079 cat confdefs.h >>conftest.$ac_ext
40080 cat >>conftest.$ac_ext <<_ACEOF
40081 /* end confdefs.h. */
40082 #include <math.h>
40083 #ifdef HAVE_IEEEFP_H
40084 #include <ieeefp.h>
40085 #endif
40088 main ()
40090 finitef(0);
40092 return 0;
40094 _ACEOF
40095 rm -f conftest.$ac_objext
40096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40097 (eval $ac_compile) 2>conftest.er1
40098 ac_status=$?
40099 grep -v '^ *+' conftest.er1 >conftest.err
40100 rm -f conftest.er1
40101 cat conftest.err >&5
40102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40103 (exit $ac_status); } &&
40104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40106 (eval $ac_try) 2>&5
40107 ac_status=$?
40108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40109 (exit $ac_status); }; } &&
40110 { ac_try='test -s conftest.$ac_objext'
40111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40112 (eval $ac_try) 2>&5
40113 ac_status=$?
40114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115 (exit $ac_status); }; }; then
40116 glibcxx_cv_func_finitef_use=yes
40117 else
40118 echo "$as_me: failed program was:" >&5
40119 sed 's/^/| /' conftest.$ac_ext >&5
40121 glibcxx_cv_func_finitef_use=no
40123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40124 ac_ext=c
40125 ac_cpp='$CPP $CPPFLAGS'
40126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40134 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40135 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40137 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40139 for ac_func in finitef
40141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40142 echo "$as_me:$LINENO: checking for $ac_func" >&5
40143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40144 if eval "test \"\${$as_ac_var+set}\" = set"; then
40145 echo $ECHO_N "(cached) $ECHO_C" >&6
40146 else
40147 if test x$gcc_no_link = xyes; then
40148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40150 { (exit 1); exit 1; }; }
40152 cat >conftest.$ac_ext <<_ACEOF
40153 /* confdefs.h. */
40154 _ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h. */
40158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40160 #define $ac_func innocuous_$ac_func
40162 /* System header to define __stub macros and hopefully few prototypes,
40163 which can conflict with char $ac_func (); below.
40164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40165 <limits.h> exists even on freestanding compilers. */
40167 #ifdef __STDC__
40168 # include <limits.h>
40169 #else
40170 # include <assert.h>
40171 #endif
40173 #undef $ac_func
40175 /* Override any gcc2 internal prototype to avoid an error. */
40176 #ifdef __cplusplus
40177 extern "C"
40179 #endif
40180 /* We use char because int might match the return type of a gcc2
40181 builtin and then its argument prototype would still apply. */
40182 char $ac_func ();
40183 /* The GNU C library defines this for functions which it implements
40184 to always fail with ENOSYS. Some functions are actually named
40185 something starting with __ and the normal name is an alias. */
40186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40187 choke me
40188 #else
40189 char (*f) () = $ac_func;
40190 #endif
40191 #ifdef __cplusplus
40193 #endif
40196 main ()
40198 return f != $ac_func;
40200 return 0;
40202 _ACEOF
40203 rm -f conftest.$ac_objext conftest$ac_exeext
40204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40205 (eval $ac_link) 2>conftest.er1
40206 ac_status=$?
40207 grep -v '^ *+' conftest.er1 >conftest.err
40208 rm -f conftest.er1
40209 cat conftest.err >&5
40210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211 (exit $ac_status); } &&
40212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40214 (eval $ac_try) 2>&5
40215 ac_status=$?
40216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40217 (exit $ac_status); }; } &&
40218 { ac_try='test -s conftest$ac_exeext'
40219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40220 (eval $ac_try) 2>&5
40221 ac_status=$?
40222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223 (exit $ac_status); }; }; then
40224 eval "$as_ac_var=yes"
40225 else
40226 echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.$ac_ext >&5
40229 eval "$as_ac_var=no"
40231 rm -f conftest.err conftest.$ac_objext \
40232 conftest$ac_exeext conftest.$ac_ext
40234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40236 if test `eval echo '${'$as_ac_var'}'` = yes; then
40237 cat >>confdefs.h <<_ACEOF
40238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40239 _ACEOF
40242 done
40244 else
40246 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40247 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40248 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40249 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40250 echo $ECHO_N "(cached) $ECHO_C" >&6
40251 else
40255 ac_ext=cc
40256 ac_cpp='$CXXCPP $CPPFLAGS'
40257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40261 cat >conftest.$ac_ext <<_ACEOF
40262 /* confdefs.h. */
40263 _ACEOF
40264 cat confdefs.h >>conftest.$ac_ext
40265 cat >>conftest.$ac_ext <<_ACEOF
40266 /* end confdefs.h. */
40267 #include <math.h>
40268 #ifdef HAVE_IEEEFP_H
40269 #include <ieeefp.h>
40270 #endif
40273 main ()
40275 _finitef(0);
40277 return 0;
40279 _ACEOF
40280 rm -f conftest.$ac_objext
40281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40282 (eval $ac_compile) 2>conftest.er1
40283 ac_status=$?
40284 grep -v '^ *+' conftest.er1 >conftest.err
40285 rm -f conftest.er1
40286 cat conftest.err >&5
40287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288 (exit $ac_status); } &&
40289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40291 (eval $ac_try) 2>&5
40292 ac_status=$?
40293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40294 (exit $ac_status); }; } &&
40295 { ac_try='test -s conftest.$ac_objext'
40296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40297 (eval $ac_try) 2>&5
40298 ac_status=$?
40299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300 (exit $ac_status); }; }; then
40301 glibcxx_cv_func__finitef_use=yes
40302 else
40303 echo "$as_me: failed program was:" >&5
40304 sed 's/^/| /' conftest.$ac_ext >&5
40306 glibcxx_cv_func__finitef_use=no
40308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40309 ac_ext=c
40310 ac_cpp='$CPP $CPPFLAGS'
40311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40319 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40320 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40322 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40324 for ac_func in _finitef
40326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40327 echo "$as_me:$LINENO: checking for $ac_func" >&5
40328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40329 if eval "test \"\${$as_ac_var+set}\" = set"; then
40330 echo $ECHO_N "(cached) $ECHO_C" >&6
40331 else
40332 if test x$gcc_no_link = xyes; then
40333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40335 { (exit 1); exit 1; }; }
40337 cat >conftest.$ac_ext <<_ACEOF
40338 /* confdefs.h. */
40339 _ACEOF
40340 cat confdefs.h >>conftest.$ac_ext
40341 cat >>conftest.$ac_ext <<_ACEOF
40342 /* end confdefs.h. */
40343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40345 #define $ac_func innocuous_$ac_func
40347 /* System header to define __stub macros and hopefully few prototypes,
40348 which can conflict with char $ac_func (); below.
40349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40350 <limits.h> exists even on freestanding compilers. */
40352 #ifdef __STDC__
40353 # include <limits.h>
40354 #else
40355 # include <assert.h>
40356 #endif
40358 #undef $ac_func
40360 /* Override any gcc2 internal prototype to avoid an error. */
40361 #ifdef __cplusplus
40362 extern "C"
40364 #endif
40365 /* We use char because int might match the return type of a gcc2
40366 builtin and then its argument prototype would still apply. */
40367 char $ac_func ();
40368 /* The GNU C library defines this for functions which it implements
40369 to always fail with ENOSYS. Some functions are actually named
40370 something starting with __ and the normal name is an alias. */
40371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40372 choke me
40373 #else
40374 char (*f) () = $ac_func;
40375 #endif
40376 #ifdef __cplusplus
40378 #endif
40381 main ()
40383 return f != $ac_func;
40385 return 0;
40387 _ACEOF
40388 rm -f conftest.$ac_objext conftest$ac_exeext
40389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40390 (eval $ac_link) 2>conftest.er1
40391 ac_status=$?
40392 grep -v '^ *+' conftest.er1 >conftest.err
40393 rm -f conftest.er1
40394 cat conftest.err >&5
40395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396 (exit $ac_status); } &&
40397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40399 (eval $ac_try) 2>&5
40400 ac_status=$?
40401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402 (exit $ac_status); }; } &&
40403 { ac_try='test -s conftest$ac_exeext'
40404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40405 (eval $ac_try) 2>&5
40406 ac_status=$?
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); }; }; then
40409 eval "$as_ac_var=yes"
40410 else
40411 echo "$as_me: failed program was:" >&5
40412 sed 's/^/| /' conftest.$ac_ext >&5
40414 eval "$as_ac_var=no"
40416 rm -f conftest.err conftest.$ac_objext \
40417 conftest$ac_exeext conftest.$ac_ext
40419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40421 if test `eval echo '${'$as_ac_var'}'` = yes; then
40422 cat >>confdefs.h <<_ACEOF
40423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40424 _ACEOF
40427 done
40434 echo "$as_me:$LINENO: checking for long double trig functions" >&5
40435 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
40436 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40438 else
40442 ac_ext=cc
40443 ac_cpp='$CXXCPP $CPPFLAGS'
40444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40448 cat >conftest.$ac_ext <<_ACEOF
40449 /* confdefs.h. */
40450 _ACEOF
40451 cat confdefs.h >>conftest.$ac_ext
40452 cat >>conftest.$ac_ext <<_ACEOF
40453 /* end confdefs.h. */
40454 #include <math.h>
40456 main ()
40458 `for x in acosl asinl atanl \
40459 cosl sinl tanl \
40460 coshl sinhl tanhl; do echo "$x (0);"; done`
40462 return 0;
40464 _ACEOF
40465 rm -f conftest.$ac_objext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40467 (eval $ac_compile) 2>conftest.er1
40468 ac_status=$?
40469 grep -v '^ *+' conftest.er1 >conftest.err
40470 rm -f conftest.er1
40471 cat conftest.err >&5
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); } &&
40474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40477 ac_status=$?
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; } &&
40480 { ac_try='test -s conftest.$ac_objext'
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40483 ac_status=$?
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; }; then
40486 glibcxx_cv_func_long_double_trig_use=yes
40487 else
40488 echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40491 glibcxx_cv_func_long_double_trig_use=no
40493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40494 ac_ext=c
40495 ac_cpp='$CPP $CPPFLAGS'
40496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40502 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
40503 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
40504 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
40514 for ac_func in acosl asinl atanl \
40515 cosl sinl tanl \
40516 coshl sinhl tanhl
40518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40519 echo "$as_me:$LINENO: checking for $ac_func" >&5
40520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40521 if eval "test \"\${$as_ac_var+set}\" = set"; then
40522 echo $ECHO_N "(cached) $ECHO_C" >&6
40523 else
40524 if test x$gcc_no_link = xyes; then
40525 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40527 { (exit 1); exit 1; }; }
40529 cat >conftest.$ac_ext <<_ACEOF
40530 /* confdefs.h. */
40531 _ACEOF
40532 cat confdefs.h >>conftest.$ac_ext
40533 cat >>conftest.$ac_ext <<_ACEOF
40534 /* end confdefs.h. */
40535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40537 #define $ac_func innocuous_$ac_func
40539 /* System header to define __stub macros and hopefully few prototypes,
40540 which can conflict with char $ac_func (); below.
40541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40542 <limits.h> exists even on freestanding compilers. */
40544 #ifdef __STDC__
40545 # include <limits.h>
40546 #else
40547 # include <assert.h>
40548 #endif
40550 #undef $ac_func
40552 /* Override any gcc2 internal prototype to avoid an error. */
40553 #ifdef __cplusplus
40554 extern "C"
40556 #endif
40557 /* We use char because int might match the return type of a gcc2
40558 builtin and then its argument prototype would still apply. */
40559 char $ac_func ();
40560 /* The GNU C library defines this for functions which it implements
40561 to always fail with ENOSYS. Some functions are actually named
40562 something starting with __ and the normal name is an alias. */
40563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40564 choke me
40565 #else
40566 char (*f) () = $ac_func;
40567 #endif
40568 #ifdef __cplusplus
40570 #endif
40573 main ()
40575 return f != $ac_func;
40577 return 0;
40579 _ACEOF
40580 rm -f conftest.$ac_objext conftest$ac_exeext
40581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40582 (eval $ac_link) 2>conftest.er1
40583 ac_status=$?
40584 grep -v '^ *+' conftest.er1 >conftest.err
40585 rm -f conftest.er1
40586 cat conftest.err >&5
40587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588 (exit $ac_status); } &&
40589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40591 (eval $ac_try) 2>&5
40592 ac_status=$?
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); }; } &&
40595 { ac_try='test -s conftest$ac_exeext'
40596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40597 (eval $ac_try) 2>&5
40598 ac_status=$?
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); }; }; then
40601 eval "$as_ac_var=yes"
40602 else
40603 echo "$as_me: failed program was:" >&5
40604 sed 's/^/| /' conftest.$ac_ext >&5
40606 eval "$as_ac_var=no"
40608 rm -f conftest.err conftest.$ac_objext \
40609 conftest$ac_exeext conftest.$ac_ext
40611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40613 if test `eval echo '${'$as_ac_var'}'` = yes; then
40614 cat >>confdefs.h <<_ACEOF
40615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40616 _ACEOF
40619 done
40624 echo "$as_me:$LINENO: checking for long double round functions" >&5
40625 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
40626 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
40627 echo $ECHO_N "(cached) $ECHO_C" >&6
40628 else
40632 ac_ext=cc
40633 ac_cpp='$CXXCPP $CPPFLAGS'
40634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40638 cat >conftest.$ac_ext <<_ACEOF
40639 /* confdefs.h. */
40640 _ACEOF
40641 cat confdefs.h >>conftest.$ac_ext
40642 cat >>conftest.$ac_ext <<_ACEOF
40643 /* end confdefs.h. */
40644 #include <math.h>
40646 main ()
40648 `for x in ceill floorl; do echo "$x (0);"; done`
40650 return 0;
40652 _ACEOF
40653 rm -f conftest.$ac_objext
40654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40655 (eval $ac_compile) 2>conftest.er1
40656 ac_status=$?
40657 grep -v '^ *+' conftest.er1 >conftest.err
40658 rm -f conftest.er1
40659 cat conftest.err >&5
40660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40661 (exit $ac_status); } &&
40662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40664 (eval $ac_try) 2>&5
40665 ac_status=$?
40666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40667 (exit $ac_status); }; } &&
40668 { ac_try='test -s conftest.$ac_objext'
40669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40670 (eval $ac_try) 2>&5
40671 ac_status=$?
40672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673 (exit $ac_status); }; }; then
40674 glibcxx_cv_func_long_double_round_use=yes
40675 else
40676 echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40679 glibcxx_cv_func_long_double_round_use=no
40681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40682 ac_ext=c
40683 ac_cpp='$CPP $CPPFLAGS'
40684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40690 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
40691 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
40692 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
40695 for ac_func in ceill floorl
40697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40698 echo "$as_me:$LINENO: checking for $ac_func" >&5
40699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40700 if eval "test \"\${$as_ac_var+set}\" = set"; then
40701 echo $ECHO_N "(cached) $ECHO_C" >&6
40702 else
40703 if test x$gcc_no_link = xyes; then
40704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40706 { (exit 1); exit 1; }; }
40708 cat >conftest.$ac_ext <<_ACEOF
40709 /* confdefs.h. */
40710 _ACEOF
40711 cat confdefs.h >>conftest.$ac_ext
40712 cat >>conftest.$ac_ext <<_ACEOF
40713 /* end confdefs.h. */
40714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40716 #define $ac_func innocuous_$ac_func
40718 /* System header to define __stub macros and hopefully few prototypes,
40719 which can conflict with char $ac_func (); below.
40720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40721 <limits.h> exists even on freestanding compilers. */
40723 #ifdef __STDC__
40724 # include <limits.h>
40725 #else
40726 # include <assert.h>
40727 #endif
40729 #undef $ac_func
40731 /* Override any gcc2 internal prototype to avoid an error. */
40732 #ifdef __cplusplus
40733 extern "C"
40735 #endif
40736 /* We use char because int might match the return type of a gcc2
40737 builtin and then its argument prototype would still apply. */
40738 char $ac_func ();
40739 /* The GNU C library defines this for functions which it implements
40740 to always fail with ENOSYS. Some functions are actually named
40741 something starting with __ and the normal name is an alias. */
40742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40743 choke me
40744 #else
40745 char (*f) () = $ac_func;
40746 #endif
40747 #ifdef __cplusplus
40749 #endif
40752 main ()
40754 return f != $ac_func;
40756 return 0;
40758 _ACEOF
40759 rm -f conftest.$ac_objext conftest$ac_exeext
40760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40761 (eval $ac_link) 2>conftest.er1
40762 ac_status=$?
40763 grep -v '^ *+' conftest.er1 >conftest.err
40764 rm -f conftest.er1
40765 cat conftest.err >&5
40766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767 (exit $ac_status); } &&
40768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40770 (eval $ac_try) 2>&5
40771 ac_status=$?
40772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40773 (exit $ac_status); }; } &&
40774 { ac_try='test -s conftest$ac_exeext'
40775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40776 (eval $ac_try) 2>&5
40777 ac_status=$?
40778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40779 (exit $ac_status); }; }; then
40780 eval "$as_ac_var=yes"
40781 else
40782 echo "$as_me: failed program was:" >&5
40783 sed 's/^/| /' conftest.$ac_ext >&5
40785 eval "$as_ac_var=no"
40787 rm -f conftest.err conftest.$ac_objext \
40788 conftest$ac_exeext conftest.$ac_ext
40790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40792 if test `eval echo '${'$as_ac_var'}'` = yes; then
40793 cat >>confdefs.h <<_ACEOF
40794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40795 _ACEOF
40798 done
40804 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
40805 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
40806 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
40807 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
40808 echo $ECHO_N "(cached) $ECHO_C" >&6
40809 else
40813 ac_ext=cc
40814 ac_cpp='$CXXCPP $CPPFLAGS'
40815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40819 cat >conftest.$ac_ext <<_ACEOF
40820 /* confdefs.h. */
40821 _ACEOF
40822 cat confdefs.h >>conftest.$ac_ext
40823 cat >>conftest.$ac_ext <<_ACEOF
40824 /* end confdefs.h. */
40825 #include <math.h>
40826 #ifdef HAVE_IEEEFP_H
40827 #include <ieeefp.h>
40828 #endif
40831 main ()
40833 isnanl(0);
40835 return 0;
40837 _ACEOF
40838 rm -f conftest.$ac_objext
40839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40840 (eval $ac_compile) 2>conftest.er1
40841 ac_status=$?
40842 grep -v '^ *+' conftest.er1 >conftest.err
40843 rm -f conftest.er1
40844 cat conftest.err >&5
40845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40846 (exit $ac_status); } &&
40847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
40848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40849 (eval $ac_try) 2>&5
40850 ac_status=$?
40851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852 (exit $ac_status); }; } &&
40853 { ac_try='test -s conftest.$ac_objext'
40854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855 (eval $ac_try) 2>&5
40856 ac_status=$?
40857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); }; }; then
40859 glibcxx_cv_func_isnanl_use=yes
40860 else
40861 echo "$as_me: failed program was:" >&5
40862 sed 's/^/| /' conftest.$ac_ext >&5
40864 glibcxx_cv_func_isnanl_use=no
40866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40867 ac_ext=c
40868 ac_cpp='$CPP $CPPFLAGS'
40869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40877 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
40878 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
40880 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
40882 for ac_func in isnanl
40884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40885 echo "$as_me:$LINENO: checking for $ac_func" >&5
40886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40887 if eval "test \"\${$as_ac_var+set}\" = set"; then
40888 echo $ECHO_N "(cached) $ECHO_C" >&6
40889 else
40890 if test x$gcc_no_link = xyes; then
40891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40893 { (exit 1); exit 1; }; }
40895 cat >conftest.$ac_ext <<_ACEOF
40896 /* confdefs.h. */
40897 _ACEOF
40898 cat confdefs.h >>conftest.$ac_ext
40899 cat >>conftest.$ac_ext <<_ACEOF
40900 /* end confdefs.h. */
40901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40903 #define $ac_func innocuous_$ac_func
40905 /* System header to define __stub macros and hopefully few prototypes,
40906 which can conflict with char $ac_func (); below.
40907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40908 <limits.h> exists even on freestanding compilers. */
40910 #ifdef __STDC__
40911 # include <limits.h>
40912 #else
40913 # include <assert.h>
40914 #endif
40916 #undef $ac_func
40918 /* Override any gcc2 internal prototype to avoid an error. */
40919 #ifdef __cplusplus
40920 extern "C"
40922 #endif
40923 /* We use char because int might match the return type of a gcc2
40924 builtin and then its argument prototype would still apply. */
40925 char $ac_func ();
40926 /* The GNU C library defines this for functions which it implements
40927 to always fail with ENOSYS. Some functions are actually named
40928 something starting with __ and the normal name is an alias. */
40929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40930 choke me
40931 #else
40932 char (*f) () = $ac_func;
40933 #endif
40934 #ifdef __cplusplus
40936 #endif
40939 main ()
40941 return f != $ac_func;
40943 return 0;
40945 _ACEOF
40946 rm -f conftest.$ac_objext conftest$ac_exeext
40947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40948 (eval $ac_link) 2>conftest.er1
40949 ac_status=$?
40950 grep -v '^ *+' conftest.er1 >conftest.err
40951 rm -f conftest.er1
40952 cat conftest.err >&5
40953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 (exit $ac_status); } &&
40955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40957 (eval $ac_try) 2>&5
40958 ac_status=$?
40959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960 (exit $ac_status); }; } &&
40961 { ac_try='test -s conftest$ac_exeext'
40962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963 (eval $ac_try) 2>&5
40964 ac_status=$?
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); }; }; then
40967 eval "$as_ac_var=yes"
40968 else
40969 echo "$as_me: failed program was:" >&5
40970 sed 's/^/| /' conftest.$ac_ext >&5
40972 eval "$as_ac_var=no"
40974 rm -f conftest.err conftest.$ac_objext \
40975 conftest$ac_exeext conftest.$ac_ext
40977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40979 if test `eval echo '${'$as_ac_var'}'` = yes; then
40980 cat >>confdefs.h <<_ACEOF
40981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40982 _ACEOF
40985 done
40987 else
40989 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
40990 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
40991 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
40992 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
40993 echo $ECHO_N "(cached) $ECHO_C" >&6
40994 else
40998 ac_ext=cc
40999 ac_cpp='$CXXCPP $CPPFLAGS'
41000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41004 cat >conftest.$ac_ext <<_ACEOF
41005 /* confdefs.h. */
41006 _ACEOF
41007 cat confdefs.h >>conftest.$ac_ext
41008 cat >>conftest.$ac_ext <<_ACEOF
41009 /* end confdefs.h. */
41010 #include <math.h>
41011 #ifdef HAVE_IEEEFP_H
41012 #include <ieeefp.h>
41013 #endif
41016 main ()
41018 _isnanl(0);
41020 return 0;
41022 _ACEOF
41023 rm -f conftest.$ac_objext
41024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41025 (eval $ac_compile) 2>conftest.er1
41026 ac_status=$?
41027 grep -v '^ *+' conftest.er1 >conftest.err
41028 rm -f conftest.er1
41029 cat conftest.err >&5
41030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41031 (exit $ac_status); } &&
41032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41034 (eval $ac_try) 2>&5
41035 ac_status=$?
41036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41037 (exit $ac_status); }; } &&
41038 { ac_try='test -s conftest.$ac_objext'
41039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41040 (eval $ac_try) 2>&5
41041 ac_status=$?
41042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41043 (exit $ac_status); }; }; then
41044 glibcxx_cv_func__isnanl_use=yes
41045 else
41046 echo "$as_me: failed program was:" >&5
41047 sed 's/^/| /' conftest.$ac_ext >&5
41049 glibcxx_cv_func__isnanl_use=no
41051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41052 ac_ext=c
41053 ac_cpp='$CPP $CPPFLAGS'
41054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41062 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41063 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41065 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41067 for ac_func in _isnanl
41069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41070 echo "$as_me:$LINENO: checking for $ac_func" >&5
41071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41072 if eval "test \"\${$as_ac_var+set}\" = set"; then
41073 echo $ECHO_N "(cached) $ECHO_C" >&6
41074 else
41075 if test x$gcc_no_link = xyes; then
41076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41078 { (exit 1); exit 1; }; }
41080 cat >conftest.$ac_ext <<_ACEOF
41081 /* confdefs.h. */
41082 _ACEOF
41083 cat confdefs.h >>conftest.$ac_ext
41084 cat >>conftest.$ac_ext <<_ACEOF
41085 /* end confdefs.h. */
41086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41088 #define $ac_func innocuous_$ac_func
41090 /* System header to define __stub macros and hopefully few prototypes,
41091 which can conflict with char $ac_func (); below.
41092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41093 <limits.h> exists even on freestanding compilers. */
41095 #ifdef __STDC__
41096 # include <limits.h>
41097 #else
41098 # include <assert.h>
41099 #endif
41101 #undef $ac_func
41103 /* Override any gcc2 internal prototype to avoid an error. */
41104 #ifdef __cplusplus
41105 extern "C"
41107 #endif
41108 /* We use char because int might match the return type of a gcc2
41109 builtin and then its argument prototype would still apply. */
41110 char $ac_func ();
41111 /* The GNU C library defines this for functions which it implements
41112 to always fail with ENOSYS. Some functions are actually named
41113 something starting with __ and the normal name is an alias. */
41114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41115 choke me
41116 #else
41117 char (*f) () = $ac_func;
41118 #endif
41119 #ifdef __cplusplus
41121 #endif
41124 main ()
41126 return f != $ac_func;
41128 return 0;
41130 _ACEOF
41131 rm -f conftest.$ac_objext conftest$ac_exeext
41132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41133 (eval $ac_link) 2>conftest.er1
41134 ac_status=$?
41135 grep -v '^ *+' conftest.er1 >conftest.err
41136 rm -f conftest.er1
41137 cat conftest.err >&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); } &&
41140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142 (eval $ac_try) 2>&5
41143 ac_status=$?
41144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); }; } &&
41146 { ac_try='test -s conftest$ac_exeext'
41147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41148 (eval $ac_try) 2>&5
41149 ac_status=$?
41150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151 (exit $ac_status); }; }; then
41152 eval "$as_ac_var=yes"
41153 else
41154 echo "$as_me: failed program was:" >&5
41155 sed 's/^/| /' conftest.$ac_ext >&5
41157 eval "$as_ac_var=no"
41159 rm -f conftest.err conftest.$ac_objext \
41160 conftest$ac_exeext conftest.$ac_ext
41162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41164 if test `eval echo '${'$as_ac_var'}'` = yes; then
41165 cat >>confdefs.h <<_ACEOF
41166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41167 _ACEOF
41170 done
41177 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41178 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41179 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41180 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41181 echo $ECHO_N "(cached) $ECHO_C" >&6
41182 else
41186 ac_ext=cc
41187 ac_cpp='$CXXCPP $CPPFLAGS'
41188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41192 cat >conftest.$ac_ext <<_ACEOF
41193 /* confdefs.h. */
41194 _ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h. */
41198 #include <math.h>
41199 #ifdef HAVE_IEEEFP_H
41200 #include <ieeefp.h>
41201 #endif
41204 main ()
41206 isinfl(0);
41208 return 0;
41210 _ACEOF
41211 rm -f conftest.$ac_objext
41212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41213 (eval $ac_compile) 2>conftest.er1
41214 ac_status=$?
41215 grep -v '^ *+' conftest.er1 >conftest.err
41216 rm -f conftest.er1
41217 cat conftest.err >&5
41218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219 (exit $ac_status); } &&
41220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41222 (eval $ac_try) 2>&5
41223 ac_status=$?
41224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225 (exit $ac_status); }; } &&
41226 { ac_try='test -s conftest.$ac_objext'
41227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41228 (eval $ac_try) 2>&5
41229 ac_status=$?
41230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41231 (exit $ac_status); }; }; then
41232 glibcxx_cv_func_isinfl_use=yes
41233 else
41234 echo "$as_me: failed program was:" >&5
41235 sed 's/^/| /' conftest.$ac_ext >&5
41237 glibcxx_cv_func_isinfl_use=no
41239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41240 ac_ext=c
41241 ac_cpp='$CPP $CPPFLAGS'
41242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41250 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41251 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41253 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41255 for ac_func in isinfl
41257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41258 echo "$as_me:$LINENO: checking for $ac_func" >&5
41259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41260 if eval "test \"\${$as_ac_var+set}\" = set"; then
41261 echo $ECHO_N "(cached) $ECHO_C" >&6
41262 else
41263 if test x$gcc_no_link = xyes; then
41264 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41266 { (exit 1); exit 1; }; }
41268 cat >conftest.$ac_ext <<_ACEOF
41269 /* confdefs.h. */
41270 _ACEOF
41271 cat confdefs.h >>conftest.$ac_ext
41272 cat >>conftest.$ac_ext <<_ACEOF
41273 /* end confdefs.h. */
41274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41276 #define $ac_func innocuous_$ac_func
41278 /* System header to define __stub macros and hopefully few prototypes,
41279 which can conflict with char $ac_func (); below.
41280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41281 <limits.h> exists even on freestanding compilers. */
41283 #ifdef __STDC__
41284 # include <limits.h>
41285 #else
41286 # include <assert.h>
41287 #endif
41289 #undef $ac_func
41291 /* Override any gcc2 internal prototype to avoid an error. */
41292 #ifdef __cplusplus
41293 extern "C"
41295 #endif
41296 /* We use char because int might match the return type of a gcc2
41297 builtin and then its argument prototype would still apply. */
41298 char $ac_func ();
41299 /* The GNU C library defines this for functions which it implements
41300 to always fail with ENOSYS. Some functions are actually named
41301 something starting with __ and the normal name is an alias. */
41302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41303 choke me
41304 #else
41305 char (*f) () = $ac_func;
41306 #endif
41307 #ifdef __cplusplus
41309 #endif
41312 main ()
41314 return f != $ac_func;
41316 return 0;
41318 _ACEOF
41319 rm -f conftest.$ac_objext conftest$ac_exeext
41320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41321 (eval $ac_link) 2>conftest.er1
41322 ac_status=$?
41323 grep -v '^ *+' conftest.er1 >conftest.err
41324 rm -f conftest.er1
41325 cat conftest.err >&5
41326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41327 (exit $ac_status); } &&
41328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41330 (eval $ac_try) 2>&5
41331 ac_status=$?
41332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41333 (exit $ac_status); }; } &&
41334 { ac_try='test -s conftest$ac_exeext'
41335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41336 (eval $ac_try) 2>&5
41337 ac_status=$?
41338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); }; }; then
41340 eval "$as_ac_var=yes"
41341 else
41342 echo "$as_me: failed program was:" >&5
41343 sed 's/^/| /' conftest.$ac_ext >&5
41345 eval "$as_ac_var=no"
41347 rm -f conftest.err conftest.$ac_objext \
41348 conftest$ac_exeext conftest.$ac_ext
41350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41352 if test `eval echo '${'$as_ac_var'}'` = yes; then
41353 cat >>confdefs.h <<_ACEOF
41354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41355 _ACEOF
41358 done
41360 else
41362 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41363 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41364 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41365 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41366 echo $ECHO_N "(cached) $ECHO_C" >&6
41367 else
41371 ac_ext=cc
41372 ac_cpp='$CXXCPP $CPPFLAGS'
41373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41377 cat >conftest.$ac_ext <<_ACEOF
41378 /* confdefs.h. */
41379 _ACEOF
41380 cat confdefs.h >>conftest.$ac_ext
41381 cat >>conftest.$ac_ext <<_ACEOF
41382 /* end confdefs.h. */
41383 #include <math.h>
41384 #ifdef HAVE_IEEEFP_H
41385 #include <ieeefp.h>
41386 #endif
41389 main ()
41391 _isinfl(0);
41393 return 0;
41395 _ACEOF
41396 rm -f conftest.$ac_objext
41397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41398 (eval $ac_compile) 2>conftest.er1
41399 ac_status=$?
41400 grep -v '^ *+' conftest.er1 >conftest.err
41401 rm -f conftest.er1
41402 cat conftest.err >&5
41403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41404 (exit $ac_status); } &&
41405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41407 (eval $ac_try) 2>&5
41408 ac_status=$?
41409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); }; } &&
41411 { ac_try='test -s conftest.$ac_objext'
41412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41413 (eval $ac_try) 2>&5
41414 ac_status=$?
41415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41416 (exit $ac_status); }; }; then
41417 glibcxx_cv_func__isinfl_use=yes
41418 else
41419 echo "$as_me: failed program was:" >&5
41420 sed 's/^/| /' conftest.$ac_ext >&5
41422 glibcxx_cv_func__isinfl_use=no
41424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41425 ac_ext=c
41426 ac_cpp='$CPP $CPPFLAGS'
41427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41435 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
41436 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
41438 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
41440 for ac_func in _isinfl
41442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41443 echo "$as_me:$LINENO: checking for $ac_func" >&5
41444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41445 if eval "test \"\${$as_ac_var+set}\" = set"; then
41446 echo $ECHO_N "(cached) $ECHO_C" >&6
41447 else
41448 if test x$gcc_no_link = xyes; then
41449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41451 { (exit 1); exit 1; }; }
41453 cat >conftest.$ac_ext <<_ACEOF
41454 /* confdefs.h. */
41455 _ACEOF
41456 cat confdefs.h >>conftest.$ac_ext
41457 cat >>conftest.$ac_ext <<_ACEOF
41458 /* end confdefs.h. */
41459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41461 #define $ac_func innocuous_$ac_func
41463 /* System header to define __stub macros and hopefully few prototypes,
41464 which can conflict with char $ac_func (); below.
41465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41466 <limits.h> exists even on freestanding compilers. */
41468 #ifdef __STDC__
41469 # include <limits.h>
41470 #else
41471 # include <assert.h>
41472 #endif
41474 #undef $ac_func
41476 /* Override any gcc2 internal prototype to avoid an error. */
41477 #ifdef __cplusplus
41478 extern "C"
41480 #endif
41481 /* We use char because int might match the return type of a gcc2
41482 builtin and then its argument prototype would still apply. */
41483 char $ac_func ();
41484 /* The GNU C library defines this for functions which it implements
41485 to always fail with ENOSYS. Some functions are actually named
41486 something starting with __ and the normal name is an alias. */
41487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41488 choke me
41489 #else
41490 char (*f) () = $ac_func;
41491 #endif
41492 #ifdef __cplusplus
41494 #endif
41497 main ()
41499 return f != $ac_func;
41501 return 0;
41503 _ACEOF
41504 rm -f conftest.$ac_objext conftest$ac_exeext
41505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41506 (eval $ac_link) 2>conftest.er1
41507 ac_status=$?
41508 grep -v '^ *+' conftest.er1 >conftest.err
41509 rm -f conftest.er1
41510 cat conftest.err >&5
41511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41512 (exit $ac_status); } &&
41513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41515 (eval $ac_try) 2>&5
41516 ac_status=$?
41517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41518 (exit $ac_status); }; } &&
41519 { ac_try='test -s conftest$ac_exeext'
41520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41521 (eval $ac_try) 2>&5
41522 ac_status=$?
41523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41524 (exit $ac_status); }; }; then
41525 eval "$as_ac_var=yes"
41526 else
41527 echo "$as_me: failed program was:" >&5
41528 sed 's/^/| /' conftest.$ac_ext >&5
41530 eval "$as_ac_var=no"
41532 rm -f conftest.err conftest.$ac_objext \
41533 conftest$ac_exeext conftest.$ac_ext
41535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41537 if test `eval echo '${'$as_ac_var'}'` = yes; then
41538 cat >>confdefs.h <<_ACEOF
41539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41540 _ACEOF
41543 done
41550 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
41551 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
41552 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
41553 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
41554 echo $ECHO_N "(cached) $ECHO_C" >&6
41555 else
41559 ac_ext=cc
41560 ac_cpp='$CXXCPP $CPPFLAGS'
41561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41565 cat >conftest.$ac_ext <<_ACEOF
41566 /* confdefs.h. */
41567 _ACEOF
41568 cat confdefs.h >>conftest.$ac_ext
41569 cat >>conftest.$ac_ext <<_ACEOF
41570 /* end confdefs.h. */
41571 #include <math.h>
41573 main ()
41575 copysignl(0, 0);
41577 return 0;
41579 _ACEOF
41580 rm -f conftest.$ac_objext
41581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41582 (eval $ac_compile) 2>conftest.er1
41583 ac_status=$?
41584 grep -v '^ *+' conftest.er1 >conftest.err
41585 rm -f conftest.er1
41586 cat conftest.err >&5
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); } &&
41589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41591 (eval $ac_try) 2>&5
41592 ac_status=$?
41593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); }; } &&
41595 { ac_try='test -s conftest.$ac_objext'
41596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41597 (eval $ac_try) 2>&5
41598 ac_status=$?
41599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600 (exit $ac_status); }; }; then
41601 glibcxx_cv_func_copysignl_use=yes
41602 else
41603 echo "$as_me: failed program was:" >&5
41604 sed 's/^/| /' conftest.$ac_ext >&5
41606 glibcxx_cv_func_copysignl_use=no
41608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41609 ac_ext=c
41610 ac_cpp='$CPP $CPPFLAGS'
41611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41619 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
41620 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
41622 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
41624 for ac_func in copysignl
41626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41627 echo "$as_me:$LINENO: checking for $ac_func" >&5
41628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41629 if eval "test \"\${$as_ac_var+set}\" = set"; then
41630 echo $ECHO_N "(cached) $ECHO_C" >&6
41631 else
41632 if test x$gcc_no_link = xyes; then
41633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41635 { (exit 1); exit 1; }; }
41637 cat >conftest.$ac_ext <<_ACEOF
41638 /* confdefs.h. */
41639 _ACEOF
41640 cat confdefs.h >>conftest.$ac_ext
41641 cat >>conftest.$ac_ext <<_ACEOF
41642 /* end confdefs.h. */
41643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41645 #define $ac_func innocuous_$ac_func
41647 /* System header to define __stub macros and hopefully few prototypes,
41648 which can conflict with char $ac_func (); below.
41649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41650 <limits.h> exists even on freestanding compilers. */
41652 #ifdef __STDC__
41653 # include <limits.h>
41654 #else
41655 # include <assert.h>
41656 #endif
41658 #undef $ac_func
41660 /* Override any gcc2 internal prototype to avoid an error. */
41661 #ifdef __cplusplus
41662 extern "C"
41664 #endif
41665 /* We use char because int might match the return type of a gcc2
41666 builtin and then its argument prototype would still apply. */
41667 char $ac_func ();
41668 /* The GNU C library defines this for functions which it implements
41669 to always fail with ENOSYS. Some functions are actually named
41670 something starting with __ and the normal name is an alias. */
41671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41672 choke me
41673 #else
41674 char (*f) () = $ac_func;
41675 #endif
41676 #ifdef __cplusplus
41678 #endif
41681 main ()
41683 return f != $ac_func;
41685 return 0;
41687 _ACEOF
41688 rm -f conftest.$ac_objext conftest$ac_exeext
41689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41690 (eval $ac_link) 2>conftest.er1
41691 ac_status=$?
41692 grep -v '^ *+' conftest.er1 >conftest.err
41693 rm -f conftest.er1
41694 cat conftest.err >&5
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); } &&
41697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699 (eval $ac_try) 2>&5
41700 ac_status=$?
41701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702 (exit $ac_status); }; } &&
41703 { ac_try='test -s conftest$ac_exeext'
41704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41705 (eval $ac_try) 2>&5
41706 ac_status=$?
41707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708 (exit $ac_status); }; }; then
41709 eval "$as_ac_var=yes"
41710 else
41711 echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41714 eval "$as_ac_var=no"
41716 rm -f conftest.err conftest.$ac_objext \
41717 conftest$ac_exeext conftest.$ac_ext
41719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41721 if test `eval echo '${'$as_ac_var'}'` = yes; then
41722 cat >>confdefs.h <<_ACEOF
41723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41724 _ACEOF
41727 done
41729 else
41731 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
41732 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
41733 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
41734 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
41735 echo $ECHO_N "(cached) $ECHO_C" >&6
41736 else
41740 ac_ext=cc
41741 ac_cpp='$CXXCPP $CPPFLAGS'
41742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41746 cat >conftest.$ac_ext <<_ACEOF
41747 /* confdefs.h. */
41748 _ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h. */
41752 #include <math.h>
41754 main ()
41756 _copysignl(0, 0);
41758 return 0;
41760 _ACEOF
41761 rm -f conftest.$ac_objext
41762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41763 (eval $ac_compile) 2>conftest.er1
41764 ac_status=$?
41765 grep -v '^ *+' conftest.er1 >conftest.err
41766 rm -f conftest.er1
41767 cat conftest.err >&5
41768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41769 (exit $ac_status); } &&
41770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41772 (eval $ac_try) 2>&5
41773 ac_status=$?
41774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41775 (exit $ac_status); }; } &&
41776 { ac_try='test -s conftest.$ac_objext'
41777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41778 (eval $ac_try) 2>&5
41779 ac_status=$?
41780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781 (exit $ac_status); }; }; then
41782 glibcxx_cv_func__copysignl_use=yes
41783 else
41784 echo "$as_me: failed program was:" >&5
41785 sed 's/^/| /' conftest.$ac_ext >&5
41787 glibcxx_cv_func__copysignl_use=no
41789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41790 ac_ext=c
41791 ac_cpp='$CPP $CPPFLAGS'
41792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41800 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
41801 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
41803 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
41805 for ac_func in _copysignl
41807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41808 echo "$as_me:$LINENO: checking for $ac_func" >&5
41809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41810 if eval "test \"\${$as_ac_var+set}\" = set"; then
41811 echo $ECHO_N "(cached) $ECHO_C" >&6
41812 else
41813 if test x$gcc_no_link = xyes; then
41814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41815 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41816 { (exit 1); exit 1; }; }
41818 cat >conftest.$ac_ext <<_ACEOF
41819 /* confdefs.h. */
41820 _ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h. */
41824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41826 #define $ac_func innocuous_$ac_func
41828 /* System header to define __stub macros and hopefully few prototypes,
41829 which can conflict with char $ac_func (); below.
41830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41831 <limits.h> exists even on freestanding compilers. */
41833 #ifdef __STDC__
41834 # include <limits.h>
41835 #else
41836 # include <assert.h>
41837 #endif
41839 #undef $ac_func
41841 /* Override any gcc2 internal prototype to avoid an error. */
41842 #ifdef __cplusplus
41843 extern "C"
41845 #endif
41846 /* We use char because int might match the return type of a gcc2
41847 builtin and then its argument prototype would still apply. */
41848 char $ac_func ();
41849 /* The GNU C library defines this for functions which it implements
41850 to always fail with ENOSYS. Some functions are actually named
41851 something starting with __ and the normal name is an alias. */
41852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41853 choke me
41854 #else
41855 char (*f) () = $ac_func;
41856 #endif
41857 #ifdef __cplusplus
41859 #endif
41862 main ()
41864 return f != $ac_func;
41866 return 0;
41868 _ACEOF
41869 rm -f conftest.$ac_objext conftest$ac_exeext
41870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41871 (eval $ac_link) 2>conftest.er1
41872 ac_status=$?
41873 grep -v '^ *+' conftest.er1 >conftest.err
41874 rm -f conftest.er1
41875 cat conftest.err >&5
41876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41877 (exit $ac_status); } &&
41878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41880 (eval $ac_try) 2>&5
41881 ac_status=$?
41882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41883 (exit $ac_status); }; } &&
41884 { ac_try='test -s conftest$ac_exeext'
41885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41886 (eval $ac_try) 2>&5
41887 ac_status=$?
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); }; }; then
41890 eval "$as_ac_var=yes"
41891 else
41892 echo "$as_me: failed program was:" >&5
41893 sed 's/^/| /' conftest.$ac_ext >&5
41895 eval "$as_ac_var=no"
41897 rm -f conftest.err conftest.$ac_objext \
41898 conftest$ac_exeext conftest.$ac_ext
41900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41902 if test `eval echo '${'$as_ac_var'}'` = yes; then
41903 cat >>confdefs.h <<_ACEOF
41904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41905 _ACEOF
41908 done
41915 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
41916 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
41917 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
41918 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
41919 echo $ECHO_N "(cached) $ECHO_C" >&6
41920 else
41924 ac_ext=cc
41925 ac_cpp='$CXXCPP $CPPFLAGS'
41926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41930 cat >conftest.$ac_ext <<_ACEOF
41931 /* confdefs.h. */
41932 _ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h. */
41936 #include <math.h>
41938 main ()
41940 atan2l(0, 0);
41942 return 0;
41944 _ACEOF
41945 rm -f conftest.$ac_objext
41946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41947 (eval $ac_compile) 2>conftest.er1
41948 ac_status=$?
41949 grep -v '^ *+' conftest.er1 >conftest.err
41950 rm -f conftest.er1
41951 cat conftest.err >&5
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); } &&
41954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
41955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956 (eval $ac_try) 2>&5
41957 ac_status=$?
41958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959 (exit $ac_status); }; } &&
41960 { ac_try='test -s conftest.$ac_objext'
41961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41962 (eval $ac_try) 2>&5
41963 ac_status=$?
41964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41965 (exit $ac_status); }; }; then
41966 glibcxx_cv_func_atan2l_use=yes
41967 else
41968 echo "$as_me: failed program was:" >&5
41969 sed 's/^/| /' conftest.$ac_ext >&5
41971 glibcxx_cv_func_atan2l_use=no
41973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41974 ac_ext=c
41975 ac_cpp='$CPP $CPPFLAGS'
41976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41984 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
41985 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
41987 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
41989 for ac_func in atan2l
41991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41992 echo "$as_me:$LINENO: checking for $ac_func" >&5
41993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41994 if eval "test \"\${$as_ac_var+set}\" = set"; then
41995 echo $ECHO_N "(cached) $ECHO_C" >&6
41996 else
41997 if test x$gcc_no_link = xyes; then
41998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42000 { (exit 1); exit 1; }; }
42002 cat >conftest.$ac_ext <<_ACEOF
42003 /* confdefs.h. */
42004 _ACEOF
42005 cat confdefs.h >>conftest.$ac_ext
42006 cat >>conftest.$ac_ext <<_ACEOF
42007 /* end confdefs.h. */
42008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42010 #define $ac_func innocuous_$ac_func
42012 /* System header to define __stub macros and hopefully few prototypes,
42013 which can conflict with char $ac_func (); below.
42014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42015 <limits.h> exists even on freestanding compilers. */
42017 #ifdef __STDC__
42018 # include <limits.h>
42019 #else
42020 # include <assert.h>
42021 #endif
42023 #undef $ac_func
42025 /* Override any gcc2 internal prototype to avoid an error. */
42026 #ifdef __cplusplus
42027 extern "C"
42029 #endif
42030 /* We use char because int might match the return type of a gcc2
42031 builtin and then its argument prototype would still apply. */
42032 char $ac_func ();
42033 /* The GNU C library defines this for functions which it implements
42034 to always fail with ENOSYS. Some functions are actually named
42035 something starting with __ and the normal name is an alias. */
42036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42037 choke me
42038 #else
42039 char (*f) () = $ac_func;
42040 #endif
42041 #ifdef __cplusplus
42043 #endif
42046 main ()
42048 return f != $ac_func;
42050 return 0;
42052 _ACEOF
42053 rm -f conftest.$ac_objext conftest$ac_exeext
42054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42055 (eval $ac_link) 2>conftest.er1
42056 ac_status=$?
42057 grep -v '^ *+' conftest.er1 >conftest.err
42058 rm -f conftest.er1
42059 cat conftest.err >&5
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); } &&
42062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064 (eval $ac_try) 2>&5
42065 ac_status=$?
42066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067 (exit $ac_status); }; } &&
42068 { ac_try='test -s conftest$ac_exeext'
42069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42070 (eval $ac_try) 2>&5
42071 ac_status=$?
42072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42073 (exit $ac_status); }; }; then
42074 eval "$as_ac_var=yes"
42075 else
42076 echo "$as_me: failed program was:" >&5
42077 sed 's/^/| /' conftest.$ac_ext >&5
42079 eval "$as_ac_var=no"
42081 rm -f conftest.err conftest.$ac_objext \
42082 conftest$ac_exeext conftest.$ac_ext
42084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42086 if test `eval echo '${'$as_ac_var'}'` = yes; then
42087 cat >>confdefs.h <<_ACEOF
42088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42089 _ACEOF
42092 done
42094 else
42096 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42097 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42098 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42099 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42100 echo $ECHO_N "(cached) $ECHO_C" >&6
42101 else
42105 ac_ext=cc
42106 ac_cpp='$CXXCPP $CPPFLAGS'
42107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42111 cat >conftest.$ac_ext <<_ACEOF
42112 /* confdefs.h. */
42113 _ACEOF
42114 cat confdefs.h >>conftest.$ac_ext
42115 cat >>conftest.$ac_ext <<_ACEOF
42116 /* end confdefs.h. */
42117 #include <math.h>
42119 main ()
42121 _atan2l(0, 0);
42123 return 0;
42125 _ACEOF
42126 rm -f conftest.$ac_objext
42127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42128 (eval $ac_compile) 2>conftest.er1
42129 ac_status=$?
42130 grep -v '^ *+' conftest.er1 >conftest.err
42131 rm -f conftest.er1
42132 cat conftest.err >&5
42133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134 (exit $ac_status); } &&
42135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42137 (eval $ac_try) 2>&5
42138 ac_status=$?
42139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140 (exit $ac_status); }; } &&
42141 { ac_try='test -s conftest.$ac_objext'
42142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42143 (eval $ac_try) 2>&5
42144 ac_status=$?
42145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42146 (exit $ac_status); }; }; then
42147 glibcxx_cv_func__atan2l_use=yes
42148 else
42149 echo "$as_me: failed program was:" >&5
42150 sed 's/^/| /' conftest.$ac_ext >&5
42152 glibcxx_cv_func__atan2l_use=no
42154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42155 ac_ext=c
42156 ac_cpp='$CPP $CPPFLAGS'
42157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42165 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42166 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42168 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42170 for ac_func in _atan2l
42172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42173 echo "$as_me:$LINENO: checking for $ac_func" >&5
42174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42175 if eval "test \"\${$as_ac_var+set}\" = set"; then
42176 echo $ECHO_N "(cached) $ECHO_C" >&6
42177 else
42178 if test x$gcc_no_link = xyes; then
42179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42181 { (exit 1); exit 1; }; }
42183 cat >conftest.$ac_ext <<_ACEOF
42184 /* confdefs.h. */
42185 _ACEOF
42186 cat confdefs.h >>conftest.$ac_ext
42187 cat >>conftest.$ac_ext <<_ACEOF
42188 /* end confdefs.h. */
42189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42191 #define $ac_func innocuous_$ac_func
42193 /* System header to define __stub macros and hopefully few prototypes,
42194 which can conflict with char $ac_func (); below.
42195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42196 <limits.h> exists even on freestanding compilers. */
42198 #ifdef __STDC__
42199 # include <limits.h>
42200 #else
42201 # include <assert.h>
42202 #endif
42204 #undef $ac_func
42206 /* Override any gcc2 internal prototype to avoid an error. */
42207 #ifdef __cplusplus
42208 extern "C"
42210 #endif
42211 /* We use char because int might match the return type of a gcc2
42212 builtin and then its argument prototype would still apply. */
42213 char $ac_func ();
42214 /* The GNU C library defines this for functions which it implements
42215 to always fail with ENOSYS. Some functions are actually named
42216 something starting with __ and the normal name is an alias. */
42217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42218 choke me
42219 #else
42220 char (*f) () = $ac_func;
42221 #endif
42222 #ifdef __cplusplus
42224 #endif
42227 main ()
42229 return f != $ac_func;
42231 return 0;
42233 _ACEOF
42234 rm -f conftest.$ac_objext conftest$ac_exeext
42235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42236 (eval $ac_link) 2>conftest.er1
42237 ac_status=$?
42238 grep -v '^ *+' conftest.er1 >conftest.err
42239 rm -f conftest.er1
42240 cat conftest.err >&5
42241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242 (exit $ac_status); } &&
42243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42245 (eval $ac_try) 2>&5
42246 ac_status=$?
42247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42248 (exit $ac_status); }; } &&
42249 { ac_try='test -s conftest$ac_exeext'
42250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251 (eval $ac_try) 2>&5
42252 ac_status=$?
42253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); }; }; then
42255 eval "$as_ac_var=yes"
42256 else
42257 echo "$as_me: failed program was:" >&5
42258 sed 's/^/| /' conftest.$ac_ext >&5
42260 eval "$as_ac_var=no"
42262 rm -f conftest.err conftest.$ac_objext \
42263 conftest$ac_exeext conftest.$ac_ext
42265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42267 if test `eval echo '${'$as_ac_var'}'` = yes; then
42268 cat >>confdefs.h <<_ACEOF
42269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42270 _ACEOF
42273 done
42280 echo "$as_me:$LINENO: checking for expl declaration" >&5
42281 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42282 if test x${glibcxx_cv_func_expl_use+set} != xset; then
42283 if test "${glibcxx_cv_func_expl_use+set}" = set; then
42284 echo $ECHO_N "(cached) $ECHO_C" >&6
42285 else
42289 ac_ext=cc
42290 ac_cpp='$CXXCPP $CPPFLAGS'
42291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42295 cat >conftest.$ac_ext <<_ACEOF
42296 /* confdefs.h. */
42297 _ACEOF
42298 cat confdefs.h >>conftest.$ac_ext
42299 cat >>conftest.$ac_ext <<_ACEOF
42300 /* end confdefs.h. */
42301 #include <math.h>
42302 #ifdef HAVE_IEEEFP_H
42303 #include <ieeefp.h>
42304 #endif
42307 main ()
42309 expl(0);
42311 return 0;
42313 _ACEOF
42314 rm -f conftest.$ac_objext
42315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42316 (eval $ac_compile) 2>conftest.er1
42317 ac_status=$?
42318 grep -v '^ *+' conftest.er1 >conftest.err
42319 rm -f conftest.er1
42320 cat conftest.err >&5
42321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42322 (exit $ac_status); } &&
42323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42325 (eval $ac_try) 2>&5
42326 ac_status=$?
42327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328 (exit $ac_status); }; } &&
42329 { ac_try='test -s conftest.$ac_objext'
42330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331 (eval $ac_try) 2>&5
42332 ac_status=$?
42333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 (exit $ac_status); }; }; then
42335 glibcxx_cv_func_expl_use=yes
42336 else
42337 echo "$as_me: failed program was:" >&5
42338 sed 's/^/| /' conftest.$ac_ext >&5
42340 glibcxx_cv_func_expl_use=no
42342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42343 ac_ext=c
42344 ac_cpp='$CPP $CPPFLAGS'
42345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42353 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42354 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42356 if test x$glibcxx_cv_func_expl_use = x"yes"; then
42358 for ac_func in expl
42360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42361 echo "$as_me:$LINENO: checking for $ac_func" >&5
42362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42363 if eval "test \"\${$as_ac_var+set}\" = set"; then
42364 echo $ECHO_N "(cached) $ECHO_C" >&6
42365 else
42366 if test x$gcc_no_link = xyes; then
42367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42369 { (exit 1); exit 1; }; }
42371 cat >conftest.$ac_ext <<_ACEOF
42372 /* confdefs.h. */
42373 _ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h. */
42377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42379 #define $ac_func innocuous_$ac_func
42381 /* System header to define __stub macros and hopefully few prototypes,
42382 which can conflict with char $ac_func (); below.
42383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42384 <limits.h> exists even on freestanding compilers. */
42386 #ifdef __STDC__
42387 # include <limits.h>
42388 #else
42389 # include <assert.h>
42390 #endif
42392 #undef $ac_func
42394 /* Override any gcc2 internal prototype to avoid an error. */
42395 #ifdef __cplusplus
42396 extern "C"
42398 #endif
42399 /* We use char because int might match the return type of a gcc2
42400 builtin and then its argument prototype would still apply. */
42401 char $ac_func ();
42402 /* The GNU C library defines this for functions which it implements
42403 to always fail with ENOSYS. Some functions are actually named
42404 something starting with __ and the normal name is an alias. */
42405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42406 choke me
42407 #else
42408 char (*f) () = $ac_func;
42409 #endif
42410 #ifdef __cplusplus
42412 #endif
42415 main ()
42417 return f != $ac_func;
42419 return 0;
42421 _ACEOF
42422 rm -f conftest.$ac_objext conftest$ac_exeext
42423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42424 (eval $ac_link) 2>conftest.er1
42425 ac_status=$?
42426 grep -v '^ *+' conftest.er1 >conftest.err
42427 rm -f conftest.er1
42428 cat conftest.err >&5
42429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); } &&
42431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42433 (eval $ac_try) 2>&5
42434 ac_status=$?
42435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436 (exit $ac_status); }; } &&
42437 { ac_try='test -s conftest$ac_exeext'
42438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42439 (eval $ac_try) 2>&5
42440 ac_status=$?
42441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442 (exit $ac_status); }; }; then
42443 eval "$as_ac_var=yes"
42444 else
42445 echo "$as_me: failed program was:" >&5
42446 sed 's/^/| /' conftest.$ac_ext >&5
42448 eval "$as_ac_var=no"
42450 rm -f conftest.err conftest.$ac_objext \
42451 conftest$ac_exeext conftest.$ac_ext
42453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42455 if test `eval echo '${'$as_ac_var'}'` = yes; then
42456 cat >>confdefs.h <<_ACEOF
42457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42458 _ACEOF
42461 done
42463 else
42465 echo "$as_me:$LINENO: checking for _expl declaration" >&5
42466 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
42467 if test x${glibcxx_cv_func__expl_use+set} != xset; then
42468 if test "${glibcxx_cv_func__expl_use+set}" = set; then
42469 echo $ECHO_N "(cached) $ECHO_C" >&6
42470 else
42474 ac_ext=cc
42475 ac_cpp='$CXXCPP $CPPFLAGS'
42476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42480 cat >conftest.$ac_ext <<_ACEOF
42481 /* confdefs.h. */
42482 _ACEOF
42483 cat confdefs.h >>conftest.$ac_ext
42484 cat >>conftest.$ac_ext <<_ACEOF
42485 /* end confdefs.h. */
42486 #include <math.h>
42487 #ifdef HAVE_IEEEFP_H
42488 #include <ieeefp.h>
42489 #endif
42492 main ()
42494 _expl(0);
42496 return 0;
42498 _ACEOF
42499 rm -f conftest.$ac_objext
42500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42501 (eval $ac_compile) 2>conftest.er1
42502 ac_status=$?
42503 grep -v '^ *+' conftest.er1 >conftest.err
42504 rm -f conftest.er1
42505 cat conftest.err >&5
42506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507 (exit $ac_status); } &&
42508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42510 (eval $ac_try) 2>&5
42511 ac_status=$?
42512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42513 (exit $ac_status); }; } &&
42514 { ac_try='test -s conftest.$ac_objext'
42515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42516 (eval $ac_try) 2>&5
42517 ac_status=$?
42518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42519 (exit $ac_status); }; }; then
42520 glibcxx_cv_func__expl_use=yes
42521 else
42522 echo "$as_me: failed program was:" >&5
42523 sed 's/^/| /' conftest.$ac_ext >&5
42525 glibcxx_cv_func__expl_use=no
42527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42528 ac_ext=c
42529 ac_cpp='$CPP $CPPFLAGS'
42530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42538 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
42539 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
42541 if test x$glibcxx_cv_func__expl_use = x"yes"; then
42543 for ac_func in _expl
42545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42546 echo "$as_me:$LINENO: checking for $ac_func" >&5
42547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42548 if eval "test \"\${$as_ac_var+set}\" = set"; then
42549 echo $ECHO_N "(cached) $ECHO_C" >&6
42550 else
42551 if test x$gcc_no_link = xyes; then
42552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42554 { (exit 1); exit 1; }; }
42556 cat >conftest.$ac_ext <<_ACEOF
42557 /* confdefs.h. */
42558 _ACEOF
42559 cat confdefs.h >>conftest.$ac_ext
42560 cat >>conftest.$ac_ext <<_ACEOF
42561 /* end confdefs.h. */
42562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42564 #define $ac_func innocuous_$ac_func
42566 /* System header to define __stub macros and hopefully few prototypes,
42567 which can conflict with char $ac_func (); below.
42568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42569 <limits.h> exists even on freestanding compilers. */
42571 #ifdef __STDC__
42572 # include <limits.h>
42573 #else
42574 # include <assert.h>
42575 #endif
42577 #undef $ac_func
42579 /* Override any gcc2 internal prototype to avoid an error. */
42580 #ifdef __cplusplus
42581 extern "C"
42583 #endif
42584 /* We use char because int might match the return type of a gcc2
42585 builtin and then its argument prototype would still apply. */
42586 char $ac_func ();
42587 /* The GNU C library defines this for functions which it implements
42588 to always fail with ENOSYS. Some functions are actually named
42589 something starting with __ and the normal name is an alias. */
42590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42591 choke me
42592 #else
42593 char (*f) () = $ac_func;
42594 #endif
42595 #ifdef __cplusplus
42597 #endif
42600 main ()
42602 return f != $ac_func;
42604 return 0;
42606 _ACEOF
42607 rm -f conftest.$ac_objext conftest$ac_exeext
42608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42609 (eval $ac_link) 2>conftest.er1
42610 ac_status=$?
42611 grep -v '^ *+' conftest.er1 >conftest.err
42612 rm -f conftest.er1
42613 cat conftest.err >&5
42614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42615 (exit $ac_status); } &&
42616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42618 (eval $ac_try) 2>&5
42619 ac_status=$?
42620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621 (exit $ac_status); }; } &&
42622 { ac_try='test -s conftest$ac_exeext'
42623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42624 (eval $ac_try) 2>&5
42625 ac_status=$?
42626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627 (exit $ac_status); }; }; then
42628 eval "$as_ac_var=yes"
42629 else
42630 echo "$as_me: failed program was:" >&5
42631 sed 's/^/| /' conftest.$ac_ext >&5
42633 eval "$as_ac_var=no"
42635 rm -f conftest.err conftest.$ac_objext \
42636 conftest$ac_exeext conftest.$ac_ext
42638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42640 if test `eval echo '${'$as_ac_var'}'` = yes; then
42641 cat >>confdefs.h <<_ACEOF
42642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42643 _ACEOF
42646 done
42653 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
42654 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
42655 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
42656 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
42657 echo $ECHO_N "(cached) $ECHO_C" >&6
42658 else
42662 ac_ext=cc
42663 ac_cpp='$CXXCPP $CPPFLAGS'
42664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42668 cat >conftest.$ac_ext <<_ACEOF
42669 /* confdefs.h. */
42670 _ACEOF
42671 cat confdefs.h >>conftest.$ac_ext
42672 cat >>conftest.$ac_ext <<_ACEOF
42673 /* end confdefs.h. */
42674 #include <math.h>
42675 #ifdef HAVE_IEEEFP_H
42676 #include <ieeefp.h>
42677 #endif
42680 main ()
42682 fabsl(0);
42684 return 0;
42686 _ACEOF
42687 rm -f conftest.$ac_objext
42688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42689 (eval $ac_compile) 2>conftest.er1
42690 ac_status=$?
42691 grep -v '^ *+' conftest.er1 >conftest.err
42692 rm -f conftest.er1
42693 cat conftest.err >&5
42694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695 (exit $ac_status); } &&
42696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42698 (eval $ac_try) 2>&5
42699 ac_status=$?
42700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42701 (exit $ac_status); }; } &&
42702 { ac_try='test -s conftest.$ac_objext'
42703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42704 (eval $ac_try) 2>&5
42705 ac_status=$?
42706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707 (exit $ac_status); }; }; then
42708 glibcxx_cv_func_fabsl_use=yes
42709 else
42710 echo "$as_me: failed program was:" >&5
42711 sed 's/^/| /' conftest.$ac_ext >&5
42713 glibcxx_cv_func_fabsl_use=no
42715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42716 ac_ext=c
42717 ac_cpp='$CPP $CPPFLAGS'
42718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42726 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
42727 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
42729 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
42731 for ac_func in fabsl
42733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42734 echo "$as_me:$LINENO: checking for $ac_func" >&5
42735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42736 if eval "test \"\${$as_ac_var+set}\" = set"; then
42737 echo $ECHO_N "(cached) $ECHO_C" >&6
42738 else
42739 if test x$gcc_no_link = xyes; then
42740 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42742 { (exit 1); exit 1; }; }
42744 cat >conftest.$ac_ext <<_ACEOF
42745 /* confdefs.h. */
42746 _ACEOF
42747 cat confdefs.h >>conftest.$ac_ext
42748 cat >>conftest.$ac_ext <<_ACEOF
42749 /* end confdefs.h. */
42750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42752 #define $ac_func innocuous_$ac_func
42754 /* System header to define __stub macros and hopefully few prototypes,
42755 which can conflict with char $ac_func (); below.
42756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42757 <limits.h> exists even on freestanding compilers. */
42759 #ifdef __STDC__
42760 # include <limits.h>
42761 #else
42762 # include <assert.h>
42763 #endif
42765 #undef $ac_func
42767 /* Override any gcc2 internal prototype to avoid an error. */
42768 #ifdef __cplusplus
42769 extern "C"
42771 #endif
42772 /* We use char because int might match the return type of a gcc2
42773 builtin and then its argument prototype would still apply. */
42774 char $ac_func ();
42775 /* The GNU C library defines this for functions which it implements
42776 to always fail with ENOSYS. Some functions are actually named
42777 something starting with __ and the normal name is an alias. */
42778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42779 choke me
42780 #else
42781 char (*f) () = $ac_func;
42782 #endif
42783 #ifdef __cplusplus
42785 #endif
42788 main ()
42790 return f != $ac_func;
42792 return 0;
42794 _ACEOF
42795 rm -f conftest.$ac_objext conftest$ac_exeext
42796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42797 (eval $ac_link) 2>conftest.er1
42798 ac_status=$?
42799 grep -v '^ *+' conftest.er1 >conftest.err
42800 rm -f conftest.er1
42801 cat conftest.err >&5
42802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803 (exit $ac_status); } &&
42804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42806 (eval $ac_try) 2>&5
42807 ac_status=$?
42808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809 (exit $ac_status); }; } &&
42810 { ac_try='test -s conftest$ac_exeext'
42811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42812 (eval $ac_try) 2>&5
42813 ac_status=$?
42814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815 (exit $ac_status); }; }; then
42816 eval "$as_ac_var=yes"
42817 else
42818 echo "$as_me: failed program was:" >&5
42819 sed 's/^/| /' conftest.$ac_ext >&5
42821 eval "$as_ac_var=no"
42823 rm -f conftest.err conftest.$ac_objext \
42824 conftest$ac_exeext conftest.$ac_ext
42826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42828 if test `eval echo '${'$as_ac_var'}'` = yes; then
42829 cat >>confdefs.h <<_ACEOF
42830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42831 _ACEOF
42834 done
42836 else
42838 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
42839 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
42840 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
42841 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
42842 echo $ECHO_N "(cached) $ECHO_C" >&6
42843 else
42847 ac_ext=cc
42848 ac_cpp='$CXXCPP $CPPFLAGS'
42849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42853 cat >conftest.$ac_ext <<_ACEOF
42854 /* confdefs.h. */
42855 _ACEOF
42856 cat confdefs.h >>conftest.$ac_ext
42857 cat >>conftest.$ac_ext <<_ACEOF
42858 /* end confdefs.h. */
42859 #include <math.h>
42860 #ifdef HAVE_IEEEFP_H
42861 #include <ieeefp.h>
42862 #endif
42865 main ()
42867 _fabsl(0);
42869 return 0;
42871 _ACEOF
42872 rm -f conftest.$ac_objext
42873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42874 (eval $ac_compile) 2>conftest.er1
42875 ac_status=$?
42876 grep -v '^ *+' conftest.er1 >conftest.err
42877 rm -f conftest.er1
42878 cat conftest.err >&5
42879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42880 (exit $ac_status); } &&
42881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42883 (eval $ac_try) 2>&5
42884 ac_status=$?
42885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886 (exit $ac_status); }; } &&
42887 { ac_try='test -s conftest.$ac_objext'
42888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42889 (eval $ac_try) 2>&5
42890 ac_status=$?
42891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); }; }; then
42893 glibcxx_cv_func__fabsl_use=yes
42894 else
42895 echo "$as_me: failed program was:" >&5
42896 sed 's/^/| /' conftest.$ac_ext >&5
42898 glibcxx_cv_func__fabsl_use=no
42900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42901 ac_ext=c
42902 ac_cpp='$CPP $CPPFLAGS'
42903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42911 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
42912 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
42914 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
42916 for ac_func in _fabsl
42918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42919 echo "$as_me:$LINENO: checking for $ac_func" >&5
42920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42921 if eval "test \"\${$as_ac_var+set}\" = set"; then
42922 echo $ECHO_N "(cached) $ECHO_C" >&6
42923 else
42924 if test x$gcc_no_link = xyes; then
42925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42927 { (exit 1); exit 1; }; }
42929 cat >conftest.$ac_ext <<_ACEOF
42930 /* confdefs.h. */
42931 _ACEOF
42932 cat confdefs.h >>conftest.$ac_ext
42933 cat >>conftest.$ac_ext <<_ACEOF
42934 /* end confdefs.h. */
42935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42937 #define $ac_func innocuous_$ac_func
42939 /* System header to define __stub macros and hopefully few prototypes,
42940 which can conflict with char $ac_func (); below.
42941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42942 <limits.h> exists even on freestanding compilers. */
42944 #ifdef __STDC__
42945 # include <limits.h>
42946 #else
42947 # include <assert.h>
42948 #endif
42950 #undef $ac_func
42952 /* Override any gcc2 internal prototype to avoid an error. */
42953 #ifdef __cplusplus
42954 extern "C"
42956 #endif
42957 /* We use char because int might match the return type of a gcc2
42958 builtin and then its argument prototype would still apply. */
42959 char $ac_func ();
42960 /* The GNU C library defines this for functions which it implements
42961 to always fail with ENOSYS. Some functions are actually named
42962 something starting with __ and the normal name is an alias. */
42963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42964 choke me
42965 #else
42966 char (*f) () = $ac_func;
42967 #endif
42968 #ifdef __cplusplus
42970 #endif
42973 main ()
42975 return f != $ac_func;
42977 return 0;
42979 _ACEOF
42980 rm -f conftest.$ac_objext conftest$ac_exeext
42981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42982 (eval $ac_link) 2>conftest.er1
42983 ac_status=$?
42984 grep -v '^ *+' conftest.er1 >conftest.err
42985 rm -f conftest.er1
42986 cat conftest.err >&5
42987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42988 (exit $ac_status); } &&
42989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42991 (eval $ac_try) 2>&5
42992 ac_status=$?
42993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42994 (exit $ac_status); }; } &&
42995 { ac_try='test -s conftest$ac_exeext'
42996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42997 (eval $ac_try) 2>&5
42998 ac_status=$?
42999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43000 (exit $ac_status); }; }; then
43001 eval "$as_ac_var=yes"
43002 else
43003 echo "$as_me: failed program was:" >&5
43004 sed 's/^/| /' conftest.$ac_ext >&5
43006 eval "$as_ac_var=no"
43008 rm -f conftest.err conftest.$ac_objext \
43009 conftest$ac_exeext conftest.$ac_ext
43011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43013 if test `eval echo '${'$as_ac_var'}'` = yes; then
43014 cat >>confdefs.h <<_ACEOF
43015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43016 _ACEOF
43019 done
43026 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43027 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43028 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43029 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43030 echo $ECHO_N "(cached) $ECHO_C" >&6
43031 else
43035 ac_ext=cc
43036 ac_cpp='$CXXCPP $CPPFLAGS'
43037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43041 cat >conftest.$ac_ext <<_ACEOF
43042 /* confdefs.h. */
43043 _ACEOF
43044 cat confdefs.h >>conftest.$ac_ext
43045 cat >>conftest.$ac_ext <<_ACEOF
43046 /* end confdefs.h. */
43047 #include <math.h>
43049 main ()
43051 fmodl(0, 0);
43053 return 0;
43055 _ACEOF
43056 rm -f conftest.$ac_objext
43057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43058 (eval $ac_compile) 2>conftest.er1
43059 ac_status=$?
43060 grep -v '^ *+' conftest.er1 >conftest.err
43061 rm -f conftest.er1
43062 cat conftest.err >&5
43063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064 (exit $ac_status); } &&
43065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43067 (eval $ac_try) 2>&5
43068 ac_status=$?
43069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43070 (exit $ac_status); }; } &&
43071 { ac_try='test -s conftest.$ac_objext'
43072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43073 (eval $ac_try) 2>&5
43074 ac_status=$?
43075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43076 (exit $ac_status); }; }; then
43077 glibcxx_cv_func_fmodl_use=yes
43078 else
43079 echo "$as_me: failed program was:" >&5
43080 sed 's/^/| /' conftest.$ac_ext >&5
43082 glibcxx_cv_func_fmodl_use=no
43084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43085 ac_ext=c
43086 ac_cpp='$CPP $CPPFLAGS'
43087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43095 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43096 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43098 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43100 for ac_func in fmodl
43102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43103 echo "$as_me:$LINENO: checking for $ac_func" >&5
43104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43105 if eval "test \"\${$as_ac_var+set}\" = set"; then
43106 echo $ECHO_N "(cached) $ECHO_C" >&6
43107 else
43108 if test x$gcc_no_link = xyes; then
43109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43111 { (exit 1); exit 1; }; }
43113 cat >conftest.$ac_ext <<_ACEOF
43114 /* confdefs.h. */
43115 _ACEOF
43116 cat confdefs.h >>conftest.$ac_ext
43117 cat >>conftest.$ac_ext <<_ACEOF
43118 /* end confdefs.h. */
43119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43121 #define $ac_func innocuous_$ac_func
43123 /* System header to define __stub macros and hopefully few prototypes,
43124 which can conflict with char $ac_func (); below.
43125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43126 <limits.h> exists even on freestanding compilers. */
43128 #ifdef __STDC__
43129 # include <limits.h>
43130 #else
43131 # include <assert.h>
43132 #endif
43134 #undef $ac_func
43136 /* Override any gcc2 internal prototype to avoid an error. */
43137 #ifdef __cplusplus
43138 extern "C"
43140 #endif
43141 /* We use char because int might match the return type of a gcc2
43142 builtin and then its argument prototype would still apply. */
43143 char $ac_func ();
43144 /* The GNU C library defines this for functions which it implements
43145 to always fail with ENOSYS. Some functions are actually named
43146 something starting with __ and the normal name is an alias. */
43147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43148 choke me
43149 #else
43150 char (*f) () = $ac_func;
43151 #endif
43152 #ifdef __cplusplus
43154 #endif
43157 main ()
43159 return f != $ac_func;
43161 return 0;
43163 _ACEOF
43164 rm -f conftest.$ac_objext conftest$ac_exeext
43165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43166 (eval $ac_link) 2>conftest.er1
43167 ac_status=$?
43168 grep -v '^ *+' conftest.er1 >conftest.err
43169 rm -f conftest.er1
43170 cat conftest.err >&5
43171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43172 (exit $ac_status); } &&
43173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43175 (eval $ac_try) 2>&5
43176 ac_status=$?
43177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178 (exit $ac_status); }; } &&
43179 { ac_try='test -s conftest$ac_exeext'
43180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43181 (eval $ac_try) 2>&5
43182 ac_status=$?
43183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184 (exit $ac_status); }; }; then
43185 eval "$as_ac_var=yes"
43186 else
43187 echo "$as_me: failed program was:" >&5
43188 sed 's/^/| /' conftest.$ac_ext >&5
43190 eval "$as_ac_var=no"
43192 rm -f conftest.err conftest.$ac_objext \
43193 conftest$ac_exeext conftest.$ac_ext
43195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43197 if test `eval echo '${'$as_ac_var'}'` = yes; then
43198 cat >>confdefs.h <<_ACEOF
43199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43200 _ACEOF
43203 done
43205 else
43207 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43208 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43209 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43210 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43211 echo $ECHO_N "(cached) $ECHO_C" >&6
43212 else
43216 ac_ext=cc
43217 ac_cpp='$CXXCPP $CPPFLAGS'
43218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43222 cat >conftest.$ac_ext <<_ACEOF
43223 /* confdefs.h. */
43224 _ACEOF
43225 cat confdefs.h >>conftest.$ac_ext
43226 cat >>conftest.$ac_ext <<_ACEOF
43227 /* end confdefs.h. */
43228 #include <math.h>
43230 main ()
43232 _fmodl(0, 0);
43234 return 0;
43236 _ACEOF
43237 rm -f conftest.$ac_objext
43238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43239 (eval $ac_compile) 2>conftest.er1
43240 ac_status=$?
43241 grep -v '^ *+' conftest.er1 >conftest.err
43242 rm -f conftest.er1
43243 cat conftest.err >&5
43244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43245 (exit $ac_status); } &&
43246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43248 (eval $ac_try) 2>&5
43249 ac_status=$?
43250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43251 (exit $ac_status); }; } &&
43252 { ac_try='test -s conftest.$ac_objext'
43253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43254 (eval $ac_try) 2>&5
43255 ac_status=$?
43256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43257 (exit $ac_status); }; }; then
43258 glibcxx_cv_func__fmodl_use=yes
43259 else
43260 echo "$as_me: failed program was:" >&5
43261 sed 's/^/| /' conftest.$ac_ext >&5
43263 glibcxx_cv_func__fmodl_use=no
43265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43266 ac_ext=c
43267 ac_cpp='$CPP $CPPFLAGS'
43268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43276 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43277 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43279 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43281 for ac_func in _fmodl
43283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43284 echo "$as_me:$LINENO: checking for $ac_func" >&5
43285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43286 if eval "test \"\${$as_ac_var+set}\" = set"; then
43287 echo $ECHO_N "(cached) $ECHO_C" >&6
43288 else
43289 if test x$gcc_no_link = xyes; then
43290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43292 { (exit 1); exit 1; }; }
43294 cat >conftest.$ac_ext <<_ACEOF
43295 /* confdefs.h. */
43296 _ACEOF
43297 cat confdefs.h >>conftest.$ac_ext
43298 cat >>conftest.$ac_ext <<_ACEOF
43299 /* end confdefs.h. */
43300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43302 #define $ac_func innocuous_$ac_func
43304 /* System header to define __stub macros and hopefully few prototypes,
43305 which can conflict with char $ac_func (); below.
43306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43307 <limits.h> exists even on freestanding compilers. */
43309 #ifdef __STDC__
43310 # include <limits.h>
43311 #else
43312 # include <assert.h>
43313 #endif
43315 #undef $ac_func
43317 /* Override any gcc2 internal prototype to avoid an error. */
43318 #ifdef __cplusplus
43319 extern "C"
43321 #endif
43322 /* We use char because int might match the return type of a gcc2
43323 builtin and then its argument prototype would still apply. */
43324 char $ac_func ();
43325 /* The GNU C library defines this for functions which it implements
43326 to always fail with ENOSYS. Some functions are actually named
43327 something starting with __ and the normal name is an alias. */
43328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43329 choke me
43330 #else
43331 char (*f) () = $ac_func;
43332 #endif
43333 #ifdef __cplusplus
43335 #endif
43338 main ()
43340 return f != $ac_func;
43342 return 0;
43344 _ACEOF
43345 rm -f conftest.$ac_objext conftest$ac_exeext
43346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43347 (eval $ac_link) 2>conftest.er1
43348 ac_status=$?
43349 grep -v '^ *+' conftest.er1 >conftest.err
43350 rm -f conftest.er1
43351 cat conftest.err >&5
43352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43353 (exit $ac_status); } &&
43354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43356 (eval $ac_try) 2>&5
43357 ac_status=$?
43358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359 (exit $ac_status); }; } &&
43360 { ac_try='test -s conftest$ac_exeext'
43361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43362 (eval $ac_try) 2>&5
43363 ac_status=$?
43364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43365 (exit $ac_status); }; }; then
43366 eval "$as_ac_var=yes"
43367 else
43368 echo "$as_me: failed program was:" >&5
43369 sed 's/^/| /' conftest.$ac_ext >&5
43371 eval "$as_ac_var=no"
43373 rm -f conftest.err conftest.$ac_objext \
43374 conftest$ac_exeext conftest.$ac_ext
43376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43378 if test `eval echo '${'$as_ac_var'}'` = yes; then
43379 cat >>confdefs.h <<_ACEOF
43380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43381 _ACEOF
43384 done
43391 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
43392 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
43393 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
43394 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
43395 echo $ECHO_N "(cached) $ECHO_C" >&6
43396 else
43400 ac_ext=cc
43401 ac_cpp='$CXXCPP $CPPFLAGS'
43402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43406 cat >conftest.$ac_ext <<_ACEOF
43407 /* confdefs.h. */
43408 _ACEOF
43409 cat confdefs.h >>conftest.$ac_ext
43410 cat >>conftest.$ac_ext <<_ACEOF
43411 /* end confdefs.h. */
43412 #include <math.h>
43414 main ()
43416 frexpl(0, 0);
43418 return 0;
43420 _ACEOF
43421 rm -f conftest.$ac_objext
43422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43423 (eval $ac_compile) 2>conftest.er1
43424 ac_status=$?
43425 grep -v '^ *+' conftest.er1 >conftest.err
43426 rm -f conftest.er1
43427 cat conftest.err >&5
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); } &&
43430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43432 (eval $ac_try) 2>&5
43433 ac_status=$?
43434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); }; } &&
43436 { ac_try='test -s conftest.$ac_objext'
43437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43438 (eval $ac_try) 2>&5
43439 ac_status=$?
43440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43441 (exit $ac_status); }; }; then
43442 glibcxx_cv_func_frexpl_use=yes
43443 else
43444 echo "$as_me: failed program was:" >&5
43445 sed 's/^/| /' conftest.$ac_ext >&5
43447 glibcxx_cv_func_frexpl_use=no
43449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43450 ac_ext=c
43451 ac_cpp='$CPP $CPPFLAGS'
43452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43460 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
43461 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
43463 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
43465 for ac_func in frexpl
43467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43468 echo "$as_me:$LINENO: checking for $ac_func" >&5
43469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43470 if eval "test \"\${$as_ac_var+set}\" = set"; then
43471 echo $ECHO_N "(cached) $ECHO_C" >&6
43472 else
43473 if test x$gcc_no_link = xyes; then
43474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43476 { (exit 1); exit 1; }; }
43478 cat >conftest.$ac_ext <<_ACEOF
43479 /* confdefs.h. */
43480 _ACEOF
43481 cat confdefs.h >>conftest.$ac_ext
43482 cat >>conftest.$ac_ext <<_ACEOF
43483 /* end confdefs.h. */
43484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43486 #define $ac_func innocuous_$ac_func
43488 /* System header to define __stub macros and hopefully few prototypes,
43489 which can conflict with char $ac_func (); below.
43490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43491 <limits.h> exists even on freestanding compilers. */
43493 #ifdef __STDC__
43494 # include <limits.h>
43495 #else
43496 # include <assert.h>
43497 #endif
43499 #undef $ac_func
43501 /* Override any gcc2 internal prototype to avoid an error. */
43502 #ifdef __cplusplus
43503 extern "C"
43505 #endif
43506 /* We use char because int might match the return type of a gcc2
43507 builtin and then its argument prototype would still apply. */
43508 char $ac_func ();
43509 /* The GNU C library defines this for functions which it implements
43510 to always fail with ENOSYS. Some functions are actually named
43511 something starting with __ and the normal name is an alias. */
43512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43513 choke me
43514 #else
43515 char (*f) () = $ac_func;
43516 #endif
43517 #ifdef __cplusplus
43519 #endif
43522 main ()
43524 return f != $ac_func;
43526 return 0;
43528 _ACEOF
43529 rm -f conftest.$ac_objext conftest$ac_exeext
43530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43531 (eval $ac_link) 2>conftest.er1
43532 ac_status=$?
43533 grep -v '^ *+' conftest.er1 >conftest.err
43534 rm -f conftest.er1
43535 cat conftest.err >&5
43536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43537 (exit $ac_status); } &&
43538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43540 (eval $ac_try) 2>&5
43541 ac_status=$?
43542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43543 (exit $ac_status); }; } &&
43544 { ac_try='test -s conftest$ac_exeext'
43545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43546 (eval $ac_try) 2>&5
43547 ac_status=$?
43548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549 (exit $ac_status); }; }; then
43550 eval "$as_ac_var=yes"
43551 else
43552 echo "$as_me: failed program was:" >&5
43553 sed 's/^/| /' conftest.$ac_ext >&5
43555 eval "$as_ac_var=no"
43557 rm -f conftest.err conftest.$ac_objext \
43558 conftest$ac_exeext conftest.$ac_ext
43560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43562 if test `eval echo '${'$as_ac_var'}'` = yes; then
43563 cat >>confdefs.h <<_ACEOF
43564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43565 _ACEOF
43568 done
43570 else
43572 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
43573 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
43574 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
43575 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
43576 echo $ECHO_N "(cached) $ECHO_C" >&6
43577 else
43581 ac_ext=cc
43582 ac_cpp='$CXXCPP $CPPFLAGS'
43583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43587 cat >conftest.$ac_ext <<_ACEOF
43588 /* confdefs.h. */
43589 _ACEOF
43590 cat confdefs.h >>conftest.$ac_ext
43591 cat >>conftest.$ac_ext <<_ACEOF
43592 /* end confdefs.h. */
43593 #include <math.h>
43595 main ()
43597 _frexpl(0, 0);
43599 return 0;
43601 _ACEOF
43602 rm -f conftest.$ac_objext
43603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43604 (eval $ac_compile) 2>conftest.er1
43605 ac_status=$?
43606 grep -v '^ *+' conftest.er1 >conftest.err
43607 rm -f conftest.er1
43608 cat conftest.err >&5
43609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43610 (exit $ac_status); } &&
43611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43613 (eval $ac_try) 2>&5
43614 ac_status=$?
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); }; } &&
43617 { ac_try='test -s conftest.$ac_objext'
43618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43619 (eval $ac_try) 2>&5
43620 ac_status=$?
43621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622 (exit $ac_status); }; }; then
43623 glibcxx_cv_func__frexpl_use=yes
43624 else
43625 echo "$as_me: failed program was:" >&5
43626 sed 's/^/| /' conftest.$ac_ext >&5
43628 glibcxx_cv_func__frexpl_use=no
43630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43631 ac_ext=c
43632 ac_cpp='$CPP $CPPFLAGS'
43633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43641 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
43642 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
43644 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
43646 for ac_func in _frexpl
43648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43649 echo "$as_me:$LINENO: checking for $ac_func" >&5
43650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43651 if eval "test \"\${$as_ac_var+set}\" = set"; then
43652 echo $ECHO_N "(cached) $ECHO_C" >&6
43653 else
43654 if test x$gcc_no_link = xyes; then
43655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43657 { (exit 1); exit 1; }; }
43659 cat >conftest.$ac_ext <<_ACEOF
43660 /* confdefs.h. */
43661 _ACEOF
43662 cat confdefs.h >>conftest.$ac_ext
43663 cat >>conftest.$ac_ext <<_ACEOF
43664 /* end confdefs.h. */
43665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43667 #define $ac_func innocuous_$ac_func
43669 /* System header to define __stub macros and hopefully few prototypes,
43670 which can conflict with char $ac_func (); below.
43671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43672 <limits.h> exists even on freestanding compilers. */
43674 #ifdef __STDC__
43675 # include <limits.h>
43676 #else
43677 # include <assert.h>
43678 #endif
43680 #undef $ac_func
43682 /* Override any gcc2 internal prototype to avoid an error. */
43683 #ifdef __cplusplus
43684 extern "C"
43686 #endif
43687 /* We use char because int might match the return type of a gcc2
43688 builtin and then its argument prototype would still apply. */
43689 char $ac_func ();
43690 /* The GNU C library defines this for functions which it implements
43691 to always fail with ENOSYS. Some functions are actually named
43692 something starting with __ and the normal name is an alias. */
43693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43694 choke me
43695 #else
43696 char (*f) () = $ac_func;
43697 #endif
43698 #ifdef __cplusplus
43700 #endif
43703 main ()
43705 return f != $ac_func;
43707 return 0;
43709 _ACEOF
43710 rm -f conftest.$ac_objext conftest$ac_exeext
43711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43712 (eval $ac_link) 2>conftest.er1
43713 ac_status=$?
43714 grep -v '^ *+' conftest.er1 >conftest.err
43715 rm -f conftest.er1
43716 cat conftest.err >&5
43717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); } &&
43719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43721 (eval $ac_try) 2>&5
43722 ac_status=$?
43723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43724 (exit $ac_status); }; } &&
43725 { ac_try='test -s conftest$ac_exeext'
43726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43727 (eval $ac_try) 2>&5
43728 ac_status=$?
43729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730 (exit $ac_status); }; }; then
43731 eval "$as_ac_var=yes"
43732 else
43733 echo "$as_me: failed program was:" >&5
43734 sed 's/^/| /' conftest.$ac_ext >&5
43736 eval "$as_ac_var=no"
43738 rm -f conftest.err conftest.$ac_objext \
43739 conftest$ac_exeext conftest.$ac_ext
43741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43743 if test `eval echo '${'$as_ac_var'}'` = yes; then
43744 cat >>confdefs.h <<_ACEOF
43745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43746 _ACEOF
43749 done
43756 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
43757 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
43758 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
43759 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
43760 echo $ECHO_N "(cached) $ECHO_C" >&6
43761 else
43765 ac_ext=cc
43766 ac_cpp='$CXXCPP $CPPFLAGS'
43767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43771 cat >conftest.$ac_ext <<_ACEOF
43772 /* confdefs.h. */
43773 _ACEOF
43774 cat confdefs.h >>conftest.$ac_ext
43775 cat >>conftest.$ac_ext <<_ACEOF
43776 /* end confdefs.h. */
43777 #include <math.h>
43779 main ()
43781 hypotl(0, 0);
43783 return 0;
43785 _ACEOF
43786 rm -f conftest.$ac_objext
43787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43788 (eval $ac_compile) 2>conftest.er1
43789 ac_status=$?
43790 grep -v '^ *+' conftest.er1 >conftest.err
43791 rm -f conftest.er1
43792 cat conftest.err >&5
43793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794 (exit $ac_status); } &&
43795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43797 (eval $ac_try) 2>&5
43798 ac_status=$?
43799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800 (exit $ac_status); }; } &&
43801 { ac_try='test -s conftest.$ac_objext'
43802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43803 (eval $ac_try) 2>&5
43804 ac_status=$?
43805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806 (exit $ac_status); }; }; then
43807 glibcxx_cv_func_hypotl_use=yes
43808 else
43809 echo "$as_me: failed program was:" >&5
43810 sed 's/^/| /' conftest.$ac_ext >&5
43812 glibcxx_cv_func_hypotl_use=no
43814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43815 ac_ext=c
43816 ac_cpp='$CPP $CPPFLAGS'
43817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43825 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
43826 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
43828 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
43830 for ac_func in hypotl
43832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43833 echo "$as_me:$LINENO: checking for $ac_func" >&5
43834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43835 if eval "test \"\${$as_ac_var+set}\" = set"; then
43836 echo $ECHO_N "(cached) $ECHO_C" >&6
43837 else
43838 if test x$gcc_no_link = xyes; then
43839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43841 { (exit 1); exit 1; }; }
43843 cat >conftest.$ac_ext <<_ACEOF
43844 /* confdefs.h. */
43845 _ACEOF
43846 cat confdefs.h >>conftest.$ac_ext
43847 cat >>conftest.$ac_ext <<_ACEOF
43848 /* end confdefs.h. */
43849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43851 #define $ac_func innocuous_$ac_func
43853 /* System header to define __stub macros and hopefully few prototypes,
43854 which can conflict with char $ac_func (); below.
43855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43856 <limits.h> exists even on freestanding compilers. */
43858 #ifdef __STDC__
43859 # include <limits.h>
43860 #else
43861 # include <assert.h>
43862 #endif
43864 #undef $ac_func
43866 /* Override any gcc2 internal prototype to avoid an error. */
43867 #ifdef __cplusplus
43868 extern "C"
43870 #endif
43871 /* We use char because int might match the return type of a gcc2
43872 builtin and then its argument prototype would still apply. */
43873 char $ac_func ();
43874 /* The GNU C library defines this for functions which it implements
43875 to always fail with ENOSYS. Some functions are actually named
43876 something starting with __ and the normal name is an alias. */
43877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43878 choke me
43879 #else
43880 char (*f) () = $ac_func;
43881 #endif
43882 #ifdef __cplusplus
43884 #endif
43887 main ()
43889 return f != $ac_func;
43891 return 0;
43893 _ACEOF
43894 rm -f conftest.$ac_objext conftest$ac_exeext
43895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43896 (eval $ac_link) 2>conftest.er1
43897 ac_status=$?
43898 grep -v '^ *+' conftest.er1 >conftest.err
43899 rm -f conftest.er1
43900 cat conftest.err >&5
43901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43902 (exit $ac_status); } &&
43903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43905 (eval $ac_try) 2>&5
43906 ac_status=$?
43907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43908 (exit $ac_status); }; } &&
43909 { ac_try='test -s conftest$ac_exeext'
43910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43911 (eval $ac_try) 2>&5
43912 ac_status=$?
43913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43914 (exit $ac_status); }; }; then
43915 eval "$as_ac_var=yes"
43916 else
43917 echo "$as_me: failed program was:" >&5
43918 sed 's/^/| /' conftest.$ac_ext >&5
43920 eval "$as_ac_var=no"
43922 rm -f conftest.err conftest.$ac_objext \
43923 conftest$ac_exeext conftest.$ac_ext
43925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43927 if test `eval echo '${'$as_ac_var'}'` = yes; then
43928 cat >>confdefs.h <<_ACEOF
43929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43930 _ACEOF
43933 done
43935 else
43937 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
43938 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
43939 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
43940 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
43941 echo $ECHO_N "(cached) $ECHO_C" >&6
43942 else
43946 ac_ext=cc
43947 ac_cpp='$CXXCPP $CPPFLAGS'
43948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43952 cat >conftest.$ac_ext <<_ACEOF
43953 /* confdefs.h. */
43954 _ACEOF
43955 cat confdefs.h >>conftest.$ac_ext
43956 cat >>conftest.$ac_ext <<_ACEOF
43957 /* end confdefs.h. */
43958 #include <math.h>
43960 main ()
43962 _hypotl(0, 0);
43964 return 0;
43966 _ACEOF
43967 rm -f conftest.$ac_objext
43968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43969 (eval $ac_compile) 2>conftest.er1
43970 ac_status=$?
43971 grep -v '^ *+' conftest.er1 >conftest.err
43972 rm -f conftest.er1
43973 cat conftest.err >&5
43974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43975 (exit $ac_status); } &&
43976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
43977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43978 (eval $ac_try) 2>&5
43979 ac_status=$?
43980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981 (exit $ac_status); }; } &&
43982 { ac_try='test -s conftest.$ac_objext'
43983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984 (eval $ac_try) 2>&5
43985 ac_status=$?
43986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987 (exit $ac_status); }; }; then
43988 glibcxx_cv_func__hypotl_use=yes
43989 else
43990 echo "$as_me: failed program was:" >&5
43991 sed 's/^/| /' conftest.$ac_ext >&5
43993 glibcxx_cv_func__hypotl_use=no
43995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43996 ac_ext=c
43997 ac_cpp='$CPP $CPPFLAGS'
43998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44006 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44007 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44009 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44011 for ac_func in _hypotl
44013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44014 echo "$as_me:$LINENO: checking for $ac_func" >&5
44015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44016 if eval "test \"\${$as_ac_var+set}\" = set"; then
44017 echo $ECHO_N "(cached) $ECHO_C" >&6
44018 else
44019 if test x$gcc_no_link = xyes; then
44020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44022 { (exit 1); exit 1; }; }
44024 cat >conftest.$ac_ext <<_ACEOF
44025 /* confdefs.h. */
44026 _ACEOF
44027 cat confdefs.h >>conftest.$ac_ext
44028 cat >>conftest.$ac_ext <<_ACEOF
44029 /* end confdefs.h. */
44030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44032 #define $ac_func innocuous_$ac_func
44034 /* System header to define __stub macros and hopefully few prototypes,
44035 which can conflict with char $ac_func (); below.
44036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44037 <limits.h> exists even on freestanding compilers. */
44039 #ifdef __STDC__
44040 # include <limits.h>
44041 #else
44042 # include <assert.h>
44043 #endif
44045 #undef $ac_func
44047 /* Override any gcc2 internal prototype to avoid an error. */
44048 #ifdef __cplusplus
44049 extern "C"
44051 #endif
44052 /* We use char because int might match the return type of a gcc2
44053 builtin and then its argument prototype would still apply. */
44054 char $ac_func ();
44055 /* The GNU C library defines this for functions which it implements
44056 to always fail with ENOSYS. Some functions are actually named
44057 something starting with __ and the normal name is an alias. */
44058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44059 choke me
44060 #else
44061 char (*f) () = $ac_func;
44062 #endif
44063 #ifdef __cplusplus
44065 #endif
44068 main ()
44070 return f != $ac_func;
44072 return 0;
44074 _ACEOF
44075 rm -f conftest.$ac_objext conftest$ac_exeext
44076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44077 (eval $ac_link) 2>conftest.er1
44078 ac_status=$?
44079 grep -v '^ *+' conftest.er1 >conftest.err
44080 rm -f conftest.er1
44081 cat conftest.err >&5
44082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083 (exit $ac_status); } &&
44084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44086 (eval $ac_try) 2>&5
44087 ac_status=$?
44088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44089 (exit $ac_status); }; } &&
44090 { ac_try='test -s conftest$ac_exeext'
44091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44092 (eval $ac_try) 2>&5
44093 ac_status=$?
44094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095 (exit $ac_status); }; }; then
44096 eval "$as_ac_var=yes"
44097 else
44098 echo "$as_me: failed program was:" >&5
44099 sed 's/^/| /' conftest.$ac_ext >&5
44101 eval "$as_ac_var=no"
44103 rm -f conftest.err conftest.$ac_objext \
44104 conftest$ac_exeext conftest.$ac_ext
44106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44108 if test `eval echo '${'$as_ac_var'}'` = yes; then
44109 cat >>confdefs.h <<_ACEOF
44110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44111 _ACEOF
44114 done
44121 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44122 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44123 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44124 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44125 echo $ECHO_N "(cached) $ECHO_C" >&6
44126 else
44130 ac_ext=cc
44131 ac_cpp='$CXXCPP $CPPFLAGS'
44132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44136 cat >conftest.$ac_ext <<_ACEOF
44137 /* confdefs.h. */
44138 _ACEOF
44139 cat confdefs.h >>conftest.$ac_ext
44140 cat >>conftest.$ac_ext <<_ACEOF
44141 /* end confdefs.h. */
44142 #include <math.h>
44144 main ()
44146 ldexpl(0, 0);
44148 return 0;
44150 _ACEOF
44151 rm -f conftest.$ac_objext
44152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44153 (eval $ac_compile) 2>conftest.er1
44154 ac_status=$?
44155 grep -v '^ *+' conftest.er1 >conftest.err
44156 rm -f conftest.er1
44157 cat conftest.err >&5
44158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44159 (exit $ac_status); } &&
44160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44162 (eval $ac_try) 2>&5
44163 ac_status=$?
44164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44165 (exit $ac_status); }; } &&
44166 { ac_try='test -s conftest.$ac_objext'
44167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44168 (eval $ac_try) 2>&5
44169 ac_status=$?
44170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44171 (exit $ac_status); }; }; then
44172 glibcxx_cv_func_ldexpl_use=yes
44173 else
44174 echo "$as_me: failed program was:" >&5
44175 sed 's/^/| /' conftest.$ac_ext >&5
44177 glibcxx_cv_func_ldexpl_use=no
44179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44180 ac_ext=c
44181 ac_cpp='$CPP $CPPFLAGS'
44182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44190 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44191 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44193 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44195 for ac_func in ldexpl
44197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44198 echo "$as_me:$LINENO: checking for $ac_func" >&5
44199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44200 if eval "test \"\${$as_ac_var+set}\" = set"; then
44201 echo $ECHO_N "(cached) $ECHO_C" >&6
44202 else
44203 if test x$gcc_no_link = xyes; then
44204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44206 { (exit 1); exit 1; }; }
44208 cat >conftest.$ac_ext <<_ACEOF
44209 /* confdefs.h. */
44210 _ACEOF
44211 cat confdefs.h >>conftest.$ac_ext
44212 cat >>conftest.$ac_ext <<_ACEOF
44213 /* end confdefs.h. */
44214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44216 #define $ac_func innocuous_$ac_func
44218 /* System header to define __stub macros and hopefully few prototypes,
44219 which can conflict with char $ac_func (); below.
44220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44221 <limits.h> exists even on freestanding compilers. */
44223 #ifdef __STDC__
44224 # include <limits.h>
44225 #else
44226 # include <assert.h>
44227 #endif
44229 #undef $ac_func
44231 /* Override any gcc2 internal prototype to avoid an error. */
44232 #ifdef __cplusplus
44233 extern "C"
44235 #endif
44236 /* We use char because int might match the return type of a gcc2
44237 builtin and then its argument prototype would still apply. */
44238 char $ac_func ();
44239 /* The GNU C library defines this for functions which it implements
44240 to always fail with ENOSYS. Some functions are actually named
44241 something starting with __ and the normal name is an alias. */
44242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44243 choke me
44244 #else
44245 char (*f) () = $ac_func;
44246 #endif
44247 #ifdef __cplusplus
44249 #endif
44252 main ()
44254 return f != $ac_func;
44256 return 0;
44258 _ACEOF
44259 rm -f conftest.$ac_objext conftest$ac_exeext
44260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44261 (eval $ac_link) 2>conftest.er1
44262 ac_status=$?
44263 grep -v '^ *+' conftest.er1 >conftest.err
44264 rm -f conftest.er1
44265 cat conftest.err >&5
44266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44267 (exit $ac_status); } &&
44268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44270 (eval $ac_try) 2>&5
44271 ac_status=$?
44272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44273 (exit $ac_status); }; } &&
44274 { ac_try='test -s conftest$ac_exeext'
44275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44276 (eval $ac_try) 2>&5
44277 ac_status=$?
44278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44279 (exit $ac_status); }; }; then
44280 eval "$as_ac_var=yes"
44281 else
44282 echo "$as_me: failed program was:" >&5
44283 sed 's/^/| /' conftest.$ac_ext >&5
44285 eval "$as_ac_var=no"
44287 rm -f conftest.err conftest.$ac_objext \
44288 conftest$ac_exeext conftest.$ac_ext
44290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44292 if test `eval echo '${'$as_ac_var'}'` = yes; then
44293 cat >>confdefs.h <<_ACEOF
44294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44295 _ACEOF
44298 done
44300 else
44302 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44303 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44304 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44305 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44306 echo $ECHO_N "(cached) $ECHO_C" >&6
44307 else
44311 ac_ext=cc
44312 ac_cpp='$CXXCPP $CPPFLAGS'
44313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44317 cat >conftest.$ac_ext <<_ACEOF
44318 /* confdefs.h. */
44319 _ACEOF
44320 cat confdefs.h >>conftest.$ac_ext
44321 cat >>conftest.$ac_ext <<_ACEOF
44322 /* end confdefs.h. */
44323 #include <math.h>
44325 main ()
44327 _ldexpl(0, 0);
44329 return 0;
44331 _ACEOF
44332 rm -f conftest.$ac_objext
44333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44334 (eval $ac_compile) 2>conftest.er1
44335 ac_status=$?
44336 grep -v '^ *+' conftest.er1 >conftest.err
44337 rm -f conftest.er1
44338 cat conftest.err >&5
44339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340 (exit $ac_status); } &&
44341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44343 (eval $ac_try) 2>&5
44344 ac_status=$?
44345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44346 (exit $ac_status); }; } &&
44347 { ac_try='test -s conftest.$ac_objext'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349 (eval $ac_try) 2>&5
44350 ac_status=$?
44351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; }; then
44353 glibcxx_cv_func__ldexpl_use=yes
44354 else
44355 echo "$as_me: failed program was:" >&5
44356 sed 's/^/| /' conftest.$ac_ext >&5
44358 glibcxx_cv_func__ldexpl_use=no
44360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44361 ac_ext=c
44362 ac_cpp='$CPP $CPPFLAGS'
44363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44371 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
44372 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
44374 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
44376 for ac_func in _ldexpl
44378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44379 echo "$as_me:$LINENO: checking for $ac_func" >&5
44380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44381 if eval "test \"\${$as_ac_var+set}\" = set"; then
44382 echo $ECHO_N "(cached) $ECHO_C" >&6
44383 else
44384 if test x$gcc_no_link = xyes; then
44385 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44387 { (exit 1); exit 1; }; }
44389 cat >conftest.$ac_ext <<_ACEOF
44390 /* confdefs.h. */
44391 _ACEOF
44392 cat confdefs.h >>conftest.$ac_ext
44393 cat >>conftest.$ac_ext <<_ACEOF
44394 /* end confdefs.h. */
44395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44397 #define $ac_func innocuous_$ac_func
44399 /* System header to define __stub macros and hopefully few prototypes,
44400 which can conflict with char $ac_func (); below.
44401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44402 <limits.h> exists even on freestanding compilers. */
44404 #ifdef __STDC__
44405 # include <limits.h>
44406 #else
44407 # include <assert.h>
44408 #endif
44410 #undef $ac_func
44412 /* Override any gcc2 internal prototype to avoid an error. */
44413 #ifdef __cplusplus
44414 extern "C"
44416 #endif
44417 /* We use char because int might match the return type of a gcc2
44418 builtin and then its argument prototype would still apply. */
44419 char $ac_func ();
44420 /* The GNU C library defines this for functions which it implements
44421 to always fail with ENOSYS. Some functions are actually named
44422 something starting with __ and the normal name is an alias. */
44423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44424 choke me
44425 #else
44426 char (*f) () = $ac_func;
44427 #endif
44428 #ifdef __cplusplus
44430 #endif
44433 main ()
44435 return f != $ac_func;
44437 return 0;
44439 _ACEOF
44440 rm -f conftest.$ac_objext conftest$ac_exeext
44441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44442 (eval $ac_link) 2>conftest.er1
44443 ac_status=$?
44444 grep -v '^ *+' conftest.er1 >conftest.err
44445 rm -f conftest.er1
44446 cat conftest.err >&5
44447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44448 (exit $ac_status); } &&
44449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44451 (eval $ac_try) 2>&5
44452 ac_status=$?
44453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44454 (exit $ac_status); }; } &&
44455 { ac_try='test -s conftest$ac_exeext'
44456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44457 (eval $ac_try) 2>&5
44458 ac_status=$?
44459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44460 (exit $ac_status); }; }; then
44461 eval "$as_ac_var=yes"
44462 else
44463 echo "$as_me: failed program was:" >&5
44464 sed 's/^/| /' conftest.$ac_ext >&5
44466 eval "$as_ac_var=no"
44468 rm -f conftest.err conftest.$ac_objext \
44469 conftest$ac_exeext conftest.$ac_ext
44471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44473 if test `eval echo '${'$as_ac_var'}'` = yes; then
44474 cat >>confdefs.h <<_ACEOF
44475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44476 _ACEOF
44479 done
44486 echo "$as_me:$LINENO: checking for logl declaration" >&5
44487 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
44488 if test x${glibcxx_cv_func_logl_use+set} != xset; then
44489 if test "${glibcxx_cv_func_logl_use+set}" = set; then
44490 echo $ECHO_N "(cached) $ECHO_C" >&6
44491 else
44495 ac_ext=cc
44496 ac_cpp='$CXXCPP $CPPFLAGS'
44497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44501 cat >conftest.$ac_ext <<_ACEOF
44502 /* confdefs.h. */
44503 _ACEOF
44504 cat confdefs.h >>conftest.$ac_ext
44505 cat >>conftest.$ac_ext <<_ACEOF
44506 /* end confdefs.h. */
44507 #include <math.h>
44508 #ifdef HAVE_IEEEFP_H
44509 #include <ieeefp.h>
44510 #endif
44513 main ()
44515 logl(0);
44517 return 0;
44519 _ACEOF
44520 rm -f conftest.$ac_objext
44521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44522 (eval $ac_compile) 2>conftest.er1
44523 ac_status=$?
44524 grep -v '^ *+' conftest.er1 >conftest.err
44525 rm -f conftest.er1
44526 cat conftest.err >&5
44527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44528 (exit $ac_status); } &&
44529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44531 (eval $ac_try) 2>&5
44532 ac_status=$?
44533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44534 (exit $ac_status); }; } &&
44535 { ac_try='test -s conftest.$ac_objext'
44536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44537 (eval $ac_try) 2>&5
44538 ac_status=$?
44539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44540 (exit $ac_status); }; }; then
44541 glibcxx_cv_func_logl_use=yes
44542 else
44543 echo "$as_me: failed program was:" >&5
44544 sed 's/^/| /' conftest.$ac_ext >&5
44546 glibcxx_cv_func_logl_use=no
44548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44549 ac_ext=c
44550 ac_cpp='$CPP $CPPFLAGS'
44551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44559 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
44560 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
44562 if test x$glibcxx_cv_func_logl_use = x"yes"; then
44564 for ac_func in logl
44566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44567 echo "$as_me:$LINENO: checking for $ac_func" >&5
44568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44569 if eval "test \"\${$as_ac_var+set}\" = set"; then
44570 echo $ECHO_N "(cached) $ECHO_C" >&6
44571 else
44572 if test x$gcc_no_link = xyes; then
44573 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44574 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44575 { (exit 1); exit 1; }; }
44577 cat >conftest.$ac_ext <<_ACEOF
44578 /* confdefs.h. */
44579 _ACEOF
44580 cat confdefs.h >>conftest.$ac_ext
44581 cat >>conftest.$ac_ext <<_ACEOF
44582 /* end confdefs.h. */
44583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44585 #define $ac_func innocuous_$ac_func
44587 /* System header to define __stub macros and hopefully few prototypes,
44588 which can conflict with char $ac_func (); below.
44589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44590 <limits.h> exists even on freestanding compilers. */
44592 #ifdef __STDC__
44593 # include <limits.h>
44594 #else
44595 # include <assert.h>
44596 #endif
44598 #undef $ac_func
44600 /* Override any gcc2 internal prototype to avoid an error. */
44601 #ifdef __cplusplus
44602 extern "C"
44604 #endif
44605 /* We use char because int might match the return type of a gcc2
44606 builtin and then its argument prototype would still apply. */
44607 char $ac_func ();
44608 /* The GNU C library defines this for functions which it implements
44609 to always fail with ENOSYS. Some functions are actually named
44610 something starting with __ and the normal name is an alias. */
44611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44612 choke me
44613 #else
44614 char (*f) () = $ac_func;
44615 #endif
44616 #ifdef __cplusplus
44618 #endif
44621 main ()
44623 return f != $ac_func;
44625 return 0;
44627 _ACEOF
44628 rm -f conftest.$ac_objext conftest$ac_exeext
44629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44630 (eval $ac_link) 2>conftest.er1
44631 ac_status=$?
44632 grep -v '^ *+' conftest.er1 >conftest.err
44633 rm -f conftest.er1
44634 cat conftest.err >&5
44635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44636 (exit $ac_status); } &&
44637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44639 (eval $ac_try) 2>&5
44640 ac_status=$?
44641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44642 (exit $ac_status); }; } &&
44643 { ac_try='test -s conftest$ac_exeext'
44644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44645 (eval $ac_try) 2>&5
44646 ac_status=$?
44647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44648 (exit $ac_status); }; }; then
44649 eval "$as_ac_var=yes"
44650 else
44651 echo "$as_me: failed program was:" >&5
44652 sed 's/^/| /' conftest.$ac_ext >&5
44654 eval "$as_ac_var=no"
44656 rm -f conftest.err conftest.$ac_objext \
44657 conftest$ac_exeext conftest.$ac_ext
44659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44661 if test `eval echo '${'$as_ac_var'}'` = yes; then
44662 cat >>confdefs.h <<_ACEOF
44663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44664 _ACEOF
44667 done
44669 else
44671 echo "$as_me:$LINENO: checking for _logl declaration" >&5
44672 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
44673 if test x${glibcxx_cv_func__logl_use+set} != xset; then
44674 if test "${glibcxx_cv_func__logl_use+set}" = set; then
44675 echo $ECHO_N "(cached) $ECHO_C" >&6
44676 else
44680 ac_ext=cc
44681 ac_cpp='$CXXCPP $CPPFLAGS'
44682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44686 cat >conftest.$ac_ext <<_ACEOF
44687 /* confdefs.h. */
44688 _ACEOF
44689 cat confdefs.h >>conftest.$ac_ext
44690 cat >>conftest.$ac_ext <<_ACEOF
44691 /* end confdefs.h. */
44692 #include <math.h>
44693 #ifdef HAVE_IEEEFP_H
44694 #include <ieeefp.h>
44695 #endif
44698 main ()
44700 _logl(0);
44702 return 0;
44704 _ACEOF
44705 rm -f conftest.$ac_objext
44706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44707 (eval $ac_compile) 2>conftest.er1
44708 ac_status=$?
44709 grep -v '^ *+' conftest.er1 >conftest.err
44710 rm -f conftest.er1
44711 cat conftest.err >&5
44712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44713 (exit $ac_status); } &&
44714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44716 (eval $ac_try) 2>&5
44717 ac_status=$?
44718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44719 (exit $ac_status); }; } &&
44720 { ac_try='test -s conftest.$ac_objext'
44721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44722 (eval $ac_try) 2>&5
44723 ac_status=$?
44724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725 (exit $ac_status); }; }; then
44726 glibcxx_cv_func__logl_use=yes
44727 else
44728 echo "$as_me: failed program was:" >&5
44729 sed 's/^/| /' conftest.$ac_ext >&5
44731 glibcxx_cv_func__logl_use=no
44733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44734 ac_ext=c
44735 ac_cpp='$CPP $CPPFLAGS'
44736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44744 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
44745 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
44747 if test x$glibcxx_cv_func__logl_use = x"yes"; then
44749 for ac_func in _logl
44751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44752 echo "$as_me:$LINENO: checking for $ac_func" >&5
44753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44754 if eval "test \"\${$as_ac_var+set}\" = set"; then
44755 echo $ECHO_N "(cached) $ECHO_C" >&6
44756 else
44757 if test x$gcc_no_link = xyes; then
44758 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44760 { (exit 1); exit 1; }; }
44762 cat >conftest.$ac_ext <<_ACEOF
44763 /* confdefs.h. */
44764 _ACEOF
44765 cat confdefs.h >>conftest.$ac_ext
44766 cat >>conftest.$ac_ext <<_ACEOF
44767 /* end confdefs.h. */
44768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44770 #define $ac_func innocuous_$ac_func
44772 /* System header to define __stub macros and hopefully few prototypes,
44773 which can conflict with char $ac_func (); below.
44774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44775 <limits.h> exists even on freestanding compilers. */
44777 #ifdef __STDC__
44778 # include <limits.h>
44779 #else
44780 # include <assert.h>
44781 #endif
44783 #undef $ac_func
44785 /* Override any gcc2 internal prototype to avoid an error. */
44786 #ifdef __cplusplus
44787 extern "C"
44789 #endif
44790 /* We use char because int might match the return type of a gcc2
44791 builtin and then its argument prototype would still apply. */
44792 char $ac_func ();
44793 /* The GNU C library defines this for functions which it implements
44794 to always fail with ENOSYS. Some functions are actually named
44795 something starting with __ and the normal name is an alias. */
44796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44797 choke me
44798 #else
44799 char (*f) () = $ac_func;
44800 #endif
44801 #ifdef __cplusplus
44803 #endif
44806 main ()
44808 return f != $ac_func;
44810 return 0;
44812 _ACEOF
44813 rm -f conftest.$ac_objext conftest$ac_exeext
44814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44815 (eval $ac_link) 2>conftest.er1
44816 ac_status=$?
44817 grep -v '^ *+' conftest.er1 >conftest.err
44818 rm -f conftest.er1
44819 cat conftest.err >&5
44820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44821 (exit $ac_status); } &&
44822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44824 (eval $ac_try) 2>&5
44825 ac_status=$?
44826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44827 (exit $ac_status); }; } &&
44828 { ac_try='test -s conftest$ac_exeext'
44829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44830 (eval $ac_try) 2>&5
44831 ac_status=$?
44832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44833 (exit $ac_status); }; }; then
44834 eval "$as_ac_var=yes"
44835 else
44836 echo "$as_me: failed program was:" >&5
44837 sed 's/^/| /' conftest.$ac_ext >&5
44839 eval "$as_ac_var=no"
44841 rm -f conftest.err conftest.$ac_objext \
44842 conftest$ac_exeext conftest.$ac_ext
44844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44846 if test `eval echo '${'$as_ac_var'}'` = yes; then
44847 cat >>confdefs.h <<_ACEOF
44848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44849 _ACEOF
44852 done
44859 echo "$as_me:$LINENO: checking for log10l declaration" >&5
44860 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
44861 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
44862 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
44863 echo $ECHO_N "(cached) $ECHO_C" >&6
44864 else
44868 ac_ext=cc
44869 ac_cpp='$CXXCPP $CPPFLAGS'
44870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44874 cat >conftest.$ac_ext <<_ACEOF
44875 /* confdefs.h. */
44876 _ACEOF
44877 cat confdefs.h >>conftest.$ac_ext
44878 cat >>conftest.$ac_ext <<_ACEOF
44879 /* end confdefs.h. */
44880 #include <math.h>
44881 #ifdef HAVE_IEEEFP_H
44882 #include <ieeefp.h>
44883 #endif
44886 main ()
44888 log10l(0);
44890 return 0;
44892 _ACEOF
44893 rm -f conftest.$ac_objext
44894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44895 (eval $ac_compile) 2>conftest.er1
44896 ac_status=$?
44897 grep -v '^ *+' conftest.er1 >conftest.err
44898 rm -f conftest.er1
44899 cat conftest.err >&5
44900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 (exit $ac_status); } &&
44902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
44903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44904 (eval $ac_try) 2>&5
44905 ac_status=$?
44906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907 (exit $ac_status); }; } &&
44908 { ac_try='test -s conftest.$ac_objext'
44909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44910 (eval $ac_try) 2>&5
44911 ac_status=$?
44912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44913 (exit $ac_status); }; }; then
44914 glibcxx_cv_func_log10l_use=yes
44915 else
44916 echo "$as_me: failed program was:" >&5
44917 sed 's/^/| /' conftest.$ac_ext >&5
44919 glibcxx_cv_func_log10l_use=no
44921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44922 ac_ext=c
44923 ac_cpp='$CPP $CPPFLAGS'
44924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44932 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
44933 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
44935 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
44937 for ac_func in log10l
44939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44940 echo "$as_me:$LINENO: checking for $ac_func" >&5
44941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44942 if eval "test \"\${$as_ac_var+set}\" = set"; then
44943 echo $ECHO_N "(cached) $ECHO_C" >&6
44944 else
44945 if test x$gcc_no_link = xyes; then
44946 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44947 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44948 { (exit 1); exit 1; }; }
44950 cat >conftest.$ac_ext <<_ACEOF
44951 /* confdefs.h. */
44952 _ACEOF
44953 cat confdefs.h >>conftest.$ac_ext
44954 cat >>conftest.$ac_ext <<_ACEOF
44955 /* end confdefs.h. */
44956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44958 #define $ac_func innocuous_$ac_func
44960 /* System header to define __stub macros and hopefully few prototypes,
44961 which can conflict with char $ac_func (); below.
44962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44963 <limits.h> exists even on freestanding compilers. */
44965 #ifdef __STDC__
44966 # include <limits.h>
44967 #else
44968 # include <assert.h>
44969 #endif
44971 #undef $ac_func
44973 /* Override any gcc2 internal prototype to avoid an error. */
44974 #ifdef __cplusplus
44975 extern "C"
44977 #endif
44978 /* We use char because int might match the return type of a gcc2
44979 builtin and then its argument prototype would still apply. */
44980 char $ac_func ();
44981 /* The GNU C library defines this for functions which it implements
44982 to always fail with ENOSYS. Some functions are actually named
44983 something starting with __ and the normal name is an alias. */
44984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44985 choke me
44986 #else
44987 char (*f) () = $ac_func;
44988 #endif
44989 #ifdef __cplusplus
44991 #endif
44994 main ()
44996 return f != $ac_func;
44998 return 0;
45000 _ACEOF
45001 rm -f conftest.$ac_objext conftest$ac_exeext
45002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45003 (eval $ac_link) 2>conftest.er1
45004 ac_status=$?
45005 grep -v '^ *+' conftest.er1 >conftest.err
45006 rm -f conftest.er1
45007 cat conftest.err >&5
45008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45009 (exit $ac_status); } &&
45010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45012 (eval $ac_try) 2>&5
45013 ac_status=$?
45014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45015 (exit $ac_status); }; } &&
45016 { ac_try='test -s conftest$ac_exeext'
45017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45018 (eval $ac_try) 2>&5
45019 ac_status=$?
45020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45021 (exit $ac_status); }; }; then
45022 eval "$as_ac_var=yes"
45023 else
45024 echo "$as_me: failed program was:" >&5
45025 sed 's/^/| /' conftest.$ac_ext >&5
45027 eval "$as_ac_var=no"
45029 rm -f conftest.err conftest.$ac_objext \
45030 conftest$ac_exeext conftest.$ac_ext
45032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45034 if test `eval echo '${'$as_ac_var'}'` = yes; then
45035 cat >>confdefs.h <<_ACEOF
45036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45037 _ACEOF
45040 done
45042 else
45044 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45045 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45046 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45047 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45048 echo $ECHO_N "(cached) $ECHO_C" >&6
45049 else
45053 ac_ext=cc
45054 ac_cpp='$CXXCPP $CPPFLAGS'
45055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45059 cat >conftest.$ac_ext <<_ACEOF
45060 /* confdefs.h. */
45061 _ACEOF
45062 cat confdefs.h >>conftest.$ac_ext
45063 cat >>conftest.$ac_ext <<_ACEOF
45064 /* end confdefs.h. */
45065 #include <math.h>
45066 #ifdef HAVE_IEEEFP_H
45067 #include <ieeefp.h>
45068 #endif
45071 main ()
45073 _log10l(0);
45075 return 0;
45077 _ACEOF
45078 rm -f conftest.$ac_objext
45079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45080 (eval $ac_compile) 2>conftest.er1
45081 ac_status=$?
45082 grep -v '^ *+' conftest.er1 >conftest.err
45083 rm -f conftest.er1
45084 cat conftest.err >&5
45085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086 (exit $ac_status); } &&
45087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089 (eval $ac_try) 2>&5
45090 ac_status=$?
45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092 (exit $ac_status); }; } &&
45093 { ac_try='test -s conftest.$ac_objext'
45094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45095 (eval $ac_try) 2>&5
45096 ac_status=$?
45097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098 (exit $ac_status); }; }; then
45099 glibcxx_cv_func__log10l_use=yes
45100 else
45101 echo "$as_me: failed program was:" >&5
45102 sed 's/^/| /' conftest.$ac_ext >&5
45104 glibcxx_cv_func__log10l_use=no
45106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45107 ac_ext=c
45108 ac_cpp='$CPP $CPPFLAGS'
45109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45117 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45118 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45120 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45122 for ac_func in _log10l
45124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45125 echo "$as_me:$LINENO: checking for $ac_func" >&5
45126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45127 if eval "test \"\${$as_ac_var+set}\" = set"; then
45128 echo $ECHO_N "(cached) $ECHO_C" >&6
45129 else
45130 if test x$gcc_no_link = xyes; then
45131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45133 { (exit 1); exit 1; }; }
45135 cat >conftest.$ac_ext <<_ACEOF
45136 /* confdefs.h. */
45137 _ACEOF
45138 cat confdefs.h >>conftest.$ac_ext
45139 cat >>conftest.$ac_ext <<_ACEOF
45140 /* end confdefs.h. */
45141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45143 #define $ac_func innocuous_$ac_func
45145 /* System header to define __stub macros and hopefully few prototypes,
45146 which can conflict with char $ac_func (); below.
45147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45148 <limits.h> exists even on freestanding compilers. */
45150 #ifdef __STDC__
45151 # include <limits.h>
45152 #else
45153 # include <assert.h>
45154 #endif
45156 #undef $ac_func
45158 /* Override any gcc2 internal prototype to avoid an error. */
45159 #ifdef __cplusplus
45160 extern "C"
45162 #endif
45163 /* We use char because int might match the return type of a gcc2
45164 builtin and then its argument prototype would still apply. */
45165 char $ac_func ();
45166 /* The GNU C library defines this for functions which it implements
45167 to always fail with ENOSYS. Some functions are actually named
45168 something starting with __ and the normal name is an alias. */
45169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45170 choke me
45171 #else
45172 char (*f) () = $ac_func;
45173 #endif
45174 #ifdef __cplusplus
45176 #endif
45179 main ()
45181 return f != $ac_func;
45183 return 0;
45185 _ACEOF
45186 rm -f conftest.$ac_objext conftest$ac_exeext
45187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45188 (eval $ac_link) 2>conftest.er1
45189 ac_status=$?
45190 grep -v '^ *+' conftest.er1 >conftest.err
45191 rm -f conftest.er1
45192 cat conftest.err >&5
45193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194 (exit $ac_status); } &&
45195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45197 (eval $ac_try) 2>&5
45198 ac_status=$?
45199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45200 (exit $ac_status); }; } &&
45201 { ac_try='test -s conftest$ac_exeext'
45202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45203 (eval $ac_try) 2>&5
45204 ac_status=$?
45205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45206 (exit $ac_status); }; }; then
45207 eval "$as_ac_var=yes"
45208 else
45209 echo "$as_me: failed program was:" >&5
45210 sed 's/^/| /' conftest.$ac_ext >&5
45212 eval "$as_ac_var=no"
45214 rm -f conftest.err conftest.$ac_objext \
45215 conftest$ac_exeext conftest.$ac_ext
45217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45219 if test `eval echo '${'$as_ac_var'}'` = yes; then
45220 cat >>confdefs.h <<_ACEOF
45221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45222 _ACEOF
45225 done
45232 echo "$as_me:$LINENO: checking for modfl declaration" >&5
45233 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45234 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45235 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45236 echo $ECHO_N "(cached) $ECHO_C" >&6
45237 else
45241 ac_ext=cc
45242 ac_cpp='$CXXCPP $CPPFLAGS'
45243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45247 cat >conftest.$ac_ext <<_ACEOF
45248 /* confdefs.h. */
45249 _ACEOF
45250 cat confdefs.h >>conftest.$ac_ext
45251 cat >>conftest.$ac_ext <<_ACEOF
45252 /* end confdefs.h. */
45253 #include <math.h>
45255 main ()
45257 modfl(0, 0);
45259 return 0;
45261 _ACEOF
45262 rm -f conftest.$ac_objext
45263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45264 (eval $ac_compile) 2>conftest.er1
45265 ac_status=$?
45266 grep -v '^ *+' conftest.er1 >conftest.err
45267 rm -f conftest.er1
45268 cat conftest.err >&5
45269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270 (exit $ac_status); } &&
45271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45273 (eval $ac_try) 2>&5
45274 ac_status=$?
45275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45276 (exit $ac_status); }; } &&
45277 { ac_try='test -s conftest.$ac_objext'
45278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45279 (eval $ac_try) 2>&5
45280 ac_status=$?
45281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45282 (exit $ac_status); }; }; then
45283 glibcxx_cv_func_modfl_use=yes
45284 else
45285 echo "$as_me: failed program was:" >&5
45286 sed 's/^/| /' conftest.$ac_ext >&5
45288 glibcxx_cv_func_modfl_use=no
45290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45291 ac_ext=c
45292 ac_cpp='$CPP $CPPFLAGS'
45293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45301 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45302 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45304 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45306 for ac_func in modfl
45308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45309 echo "$as_me:$LINENO: checking for $ac_func" >&5
45310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45311 if eval "test \"\${$as_ac_var+set}\" = set"; then
45312 echo $ECHO_N "(cached) $ECHO_C" >&6
45313 else
45314 if test x$gcc_no_link = xyes; then
45315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45317 { (exit 1); exit 1; }; }
45319 cat >conftest.$ac_ext <<_ACEOF
45320 /* confdefs.h. */
45321 _ACEOF
45322 cat confdefs.h >>conftest.$ac_ext
45323 cat >>conftest.$ac_ext <<_ACEOF
45324 /* end confdefs.h. */
45325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45327 #define $ac_func innocuous_$ac_func
45329 /* System header to define __stub macros and hopefully few prototypes,
45330 which can conflict with char $ac_func (); below.
45331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45332 <limits.h> exists even on freestanding compilers. */
45334 #ifdef __STDC__
45335 # include <limits.h>
45336 #else
45337 # include <assert.h>
45338 #endif
45340 #undef $ac_func
45342 /* Override any gcc2 internal prototype to avoid an error. */
45343 #ifdef __cplusplus
45344 extern "C"
45346 #endif
45347 /* We use char because int might match the return type of a gcc2
45348 builtin and then its argument prototype would still apply. */
45349 char $ac_func ();
45350 /* The GNU C library defines this for functions which it implements
45351 to always fail with ENOSYS. Some functions are actually named
45352 something starting with __ and the normal name is an alias. */
45353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45354 choke me
45355 #else
45356 char (*f) () = $ac_func;
45357 #endif
45358 #ifdef __cplusplus
45360 #endif
45363 main ()
45365 return f != $ac_func;
45367 return 0;
45369 _ACEOF
45370 rm -f conftest.$ac_objext conftest$ac_exeext
45371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45372 (eval $ac_link) 2>conftest.er1
45373 ac_status=$?
45374 grep -v '^ *+' conftest.er1 >conftest.err
45375 rm -f conftest.er1
45376 cat conftest.err >&5
45377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45378 (exit $ac_status); } &&
45379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45381 (eval $ac_try) 2>&5
45382 ac_status=$?
45383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45384 (exit $ac_status); }; } &&
45385 { ac_try='test -s conftest$ac_exeext'
45386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45387 (eval $ac_try) 2>&5
45388 ac_status=$?
45389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45390 (exit $ac_status); }; }; then
45391 eval "$as_ac_var=yes"
45392 else
45393 echo "$as_me: failed program was:" >&5
45394 sed 's/^/| /' conftest.$ac_ext >&5
45396 eval "$as_ac_var=no"
45398 rm -f conftest.err conftest.$ac_objext \
45399 conftest$ac_exeext conftest.$ac_ext
45401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45403 if test `eval echo '${'$as_ac_var'}'` = yes; then
45404 cat >>confdefs.h <<_ACEOF
45405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45406 _ACEOF
45409 done
45411 else
45413 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
45414 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
45415 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
45416 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
45417 echo $ECHO_N "(cached) $ECHO_C" >&6
45418 else
45422 ac_ext=cc
45423 ac_cpp='$CXXCPP $CPPFLAGS'
45424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45428 cat >conftest.$ac_ext <<_ACEOF
45429 /* confdefs.h. */
45430 _ACEOF
45431 cat confdefs.h >>conftest.$ac_ext
45432 cat >>conftest.$ac_ext <<_ACEOF
45433 /* end confdefs.h. */
45434 #include <math.h>
45436 main ()
45438 _modfl(0, 0);
45440 return 0;
45442 _ACEOF
45443 rm -f conftest.$ac_objext
45444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45445 (eval $ac_compile) 2>conftest.er1
45446 ac_status=$?
45447 grep -v '^ *+' conftest.er1 >conftest.err
45448 rm -f conftest.er1
45449 cat conftest.err >&5
45450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451 (exit $ac_status); } &&
45452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45454 (eval $ac_try) 2>&5
45455 ac_status=$?
45456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45457 (exit $ac_status); }; } &&
45458 { ac_try='test -s conftest.$ac_objext'
45459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45460 (eval $ac_try) 2>&5
45461 ac_status=$?
45462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45463 (exit $ac_status); }; }; then
45464 glibcxx_cv_func__modfl_use=yes
45465 else
45466 echo "$as_me: failed program was:" >&5
45467 sed 's/^/| /' conftest.$ac_ext >&5
45469 glibcxx_cv_func__modfl_use=no
45471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45472 ac_ext=c
45473 ac_cpp='$CPP $CPPFLAGS'
45474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45482 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
45483 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
45485 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
45487 for ac_func in _modfl
45489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45490 echo "$as_me:$LINENO: checking for $ac_func" >&5
45491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45492 if eval "test \"\${$as_ac_var+set}\" = set"; then
45493 echo $ECHO_N "(cached) $ECHO_C" >&6
45494 else
45495 if test x$gcc_no_link = xyes; then
45496 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45497 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45498 { (exit 1); exit 1; }; }
45500 cat >conftest.$ac_ext <<_ACEOF
45501 /* confdefs.h. */
45502 _ACEOF
45503 cat confdefs.h >>conftest.$ac_ext
45504 cat >>conftest.$ac_ext <<_ACEOF
45505 /* end confdefs.h. */
45506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45508 #define $ac_func innocuous_$ac_func
45510 /* System header to define __stub macros and hopefully few prototypes,
45511 which can conflict with char $ac_func (); below.
45512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45513 <limits.h> exists even on freestanding compilers. */
45515 #ifdef __STDC__
45516 # include <limits.h>
45517 #else
45518 # include <assert.h>
45519 #endif
45521 #undef $ac_func
45523 /* Override any gcc2 internal prototype to avoid an error. */
45524 #ifdef __cplusplus
45525 extern "C"
45527 #endif
45528 /* We use char because int might match the return type of a gcc2
45529 builtin and then its argument prototype would still apply. */
45530 char $ac_func ();
45531 /* The GNU C library defines this for functions which it implements
45532 to always fail with ENOSYS. Some functions are actually named
45533 something starting with __ and the normal name is an alias. */
45534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45535 choke me
45536 #else
45537 char (*f) () = $ac_func;
45538 #endif
45539 #ifdef __cplusplus
45541 #endif
45544 main ()
45546 return f != $ac_func;
45548 return 0;
45550 _ACEOF
45551 rm -f conftest.$ac_objext conftest$ac_exeext
45552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45553 (eval $ac_link) 2>conftest.er1
45554 ac_status=$?
45555 grep -v '^ *+' conftest.er1 >conftest.err
45556 rm -f conftest.er1
45557 cat conftest.err >&5
45558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45559 (exit $ac_status); } &&
45560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45562 (eval $ac_try) 2>&5
45563 ac_status=$?
45564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45565 (exit $ac_status); }; } &&
45566 { ac_try='test -s conftest$ac_exeext'
45567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45568 (eval $ac_try) 2>&5
45569 ac_status=$?
45570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45571 (exit $ac_status); }; }; then
45572 eval "$as_ac_var=yes"
45573 else
45574 echo "$as_me: failed program was:" >&5
45575 sed 's/^/| /' conftest.$ac_ext >&5
45577 eval "$as_ac_var=no"
45579 rm -f conftest.err conftest.$ac_objext \
45580 conftest$ac_exeext conftest.$ac_ext
45582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45584 if test `eval echo '${'$as_ac_var'}'` = yes; then
45585 cat >>confdefs.h <<_ACEOF
45586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45587 _ACEOF
45590 done
45597 echo "$as_me:$LINENO: checking for powl declaration" >&5
45598 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
45599 if test x${glibcxx_cv_func_powl_use+set} != xset; then
45600 if test "${glibcxx_cv_func_powl_use+set}" = set; then
45601 echo $ECHO_N "(cached) $ECHO_C" >&6
45602 else
45606 ac_ext=cc
45607 ac_cpp='$CXXCPP $CPPFLAGS'
45608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45612 cat >conftest.$ac_ext <<_ACEOF
45613 /* confdefs.h. */
45614 _ACEOF
45615 cat confdefs.h >>conftest.$ac_ext
45616 cat >>conftest.$ac_ext <<_ACEOF
45617 /* end confdefs.h. */
45618 #include <math.h>
45620 main ()
45622 powl(0, 0);
45624 return 0;
45626 _ACEOF
45627 rm -f conftest.$ac_objext
45628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45629 (eval $ac_compile) 2>conftest.er1
45630 ac_status=$?
45631 grep -v '^ *+' conftest.er1 >conftest.err
45632 rm -f conftest.er1
45633 cat conftest.err >&5
45634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45635 (exit $ac_status); } &&
45636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45638 (eval $ac_try) 2>&5
45639 ac_status=$?
45640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45641 (exit $ac_status); }; } &&
45642 { ac_try='test -s conftest.$ac_objext'
45643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45644 (eval $ac_try) 2>&5
45645 ac_status=$?
45646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647 (exit $ac_status); }; }; then
45648 glibcxx_cv_func_powl_use=yes
45649 else
45650 echo "$as_me: failed program was:" >&5
45651 sed 's/^/| /' conftest.$ac_ext >&5
45653 glibcxx_cv_func_powl_use=no
45655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45656 ac_ext=c
45657 ac_cpp='$CPP $CPPFLAGS'
45658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45666 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
45667 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
45669 if test x$glibcxx_cv_func_powl_use = x"yes"; then
45671 for ac_func in powl
45673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45674 echo "$as_me:$LINENO: checking for $ac_func" >&5
45675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45676 if eval "test \"\${$as_ac_var+set}\" = set"; then
45677 echo $ECHO_N "(cached) $ECHO_C" >&6
45678 else
45679 if test x$gcc_no_link = xyes; then
45680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45682 { (exit 1); exit 1; }; }
45684 cat >conftest.$ac_ext <<_ACEOF
45685 /* confdefs.h. */
45686 _ACEOF
45687 cat confdefs.h >>conftest.$ac_ext
45688 cat >>conftest.$ac_ext <<_ACEOF
45689 /* end confdefs.h. */
45690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45692 #define $ac_func innocuous_$ac_func
45694 /* System header to define __stub macros and hopefully few prototypes,
45695 which can conflict with char $ac_func (); below.
45696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45697 <limits.h> exists even on freestanding compilers. */
45699 #ifdef __STDC__
45700 # include <limits.h>
45701 #else
45702 # include <assert.h>
45703 #endif
45705 #undef $ac_func
45707 /* Override any gcc2 internal prototype to avoid an error. */
45708 #ifdef __cplusplus
45709 extern "C"
45711 #endif
45712 /* We use char because int might match the return type of a gcc2
45713 builtin and then its argument prototype would still apply. */
45714 char $ac_func ();
45715 /* The GNU C library defines this for functions which it implements
45716 to always fail with ENOSYS. Some functions are actually named
45717 something starting with __ and the normal name is an alias. */
45718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45719 choke me
45720 #else
45721 char (*f) () = $ac_func;
45722 #endif
45723 #ifdef __cplusplus
45725 #endif
45728 main ()
45730 return f != $ac_func;
45732 return 0;
45734 _ACEOF
45735 rm -f conftest.$ac_objext conftest$ac_exeext
45736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45737 (eval $ac_link) 2>conftest.er1
45738 ac_status=$?
45739 grep -v '^ *+' conftest.er1 >conftest.err
45740 rm -f conftest.er1
45741 cat conftest.err >&5
45742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743 (exit $ac_status); } &&
45744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45746 (eval $ac_try) 2>&5
45747 ac_status=$?
45748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45749 (exit $ac_status); }; } &&
45750 { ac_try='test -s conftest$ac_exeext'
45751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45752 (eval $ac_try) 2>&5
45753 ac_status=$?
45754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45755 (exit $ac_status); }; }; then
45756 eval "$as_ac_var=yes"
45757 else
45758 echo "$as_me: failed program was:" >&5
45759 sed 's/^/| /' conftest.$ac_ext >&5
45761 eval "$as_ac_var=no"
45763 rm -f conftest.err conftest.$ac_objext \
45764 conftest$ac_exeext conftest.$ac_ext
45766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45768 if test `eval echo '${'$as_ac_var'}'` = yes; then
45769 cat >>confdefs.h <<_ACEOF
45770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45771 _ACEOF
45774 done
45776 else
45778 echo "$as_me:$LINENO: checking for _powl declaration" >&5
45779 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
45780 if test x${glibcxx_cv_func__powl_use+set} != xset; then
45781 if test "${glibcxx_cv_func__powl_use+set}" = set; then
45782 echo $ECHO_N "(cached) $ECHO_C" >&6
45783 else
45787 ac_ext=cc
45788 ac_cpp='$CXXCPP $CPPFLAGS'
45789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45793 cat >conftest.$ac_ext <<_ACEOF
45794 /* confdefs.h. */
45795 _ACEOF
45796 cat confdefs.h >>conftest.$ac_ext
45797 cat >>conftest.$ac_ext <<_ACEOF
45798 /* end confdefs.h. */
45799 #include <math.h>
45801 main ()
45803 _powl(0, 0);
45805 return 0;
45807 _ACEOF
45808 rm -f conftest.$ac_objext
45809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45810 (eval $ac_compile) 2>conftest.er1
45811 ac_status=$?
45812 grep -v '^ *+' conftest.er1 >conftest.err
45813 rm -f conftest.er1
45814 cat conftest.err >&5
45815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45816 (exit $ac_status); } &&
45817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
45818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45819 (eval $ac_try) 2>&5
45820 ac_status=$?
45821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45822 (exit $ac_status); }; } &&
45823 { ac_try='test -s conftest.$ac_objext'
45824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45825 (eval $ac_try) 2>&5
45826 ac_status=$?
45827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45828 (exit $ac_status); }; }; then
45829 glibcxx_cv_func__powl_use=yes
45830 else
45831 echo "$as_me: failed program was:" >&5
45832 sed 's/^/| /' conftest.$ac_ext >&5
45834 glibcxx_cv_func__powl_use=no
45836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45837 ac_ext=c
45838 ac_cpp='$CPP $CPPFLAGS'
45839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45847 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
45848 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
45850 if test x$glibcxx_cv_func__powl_use = x"yes"; then
45852 for ac_func in _powl
45854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45855 echo "$as_me:$LINENO: checking for $ac_func" >&5
45856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45857 if eval "test \"\${$as_ac_var+set}\" = set"; then
45858 echo $ECHO_N "(cached) $ECHO_C" >&6
45859 else
45860 if test x$gcc_no_link = xyes; then
45861 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45863 { (exit 1); exit 1; }; }
45865 cat >conftest.$ac_ext <<_ACEOF
45866 /* confdefs.h. */
45867 _ACEOF
45868 cat confdefs.h >>conftest.$ac_ext
45869 cat >>conftest.$ac_ext <<_ACEOF
45870 /* end confdefs.h. */
45871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45873 #define $ac_func innocuous_$ac_func
45875 /* System header to define __stub macros and hopefully few prototypes,
45876 which can conflict with char $ac_func (); below.
45877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45878 <limits.h> exists even on freestanding compilers. */
45880 #ifdef __STDC__
45881 # include <limits.h>
45882 #else
45883 # include <assert.h>
45884 #endif
45886 #undef $ac_func
45888 /* Override any gcc2 internal prototype to avoid an error. */
45889 #ifdef __cplusplus
45890 extern "C"
45892 #endif
45893 /* We use char because int might match the return type of a gcc2
45894 builtin and then its argument prototype would still apply. */
45895 char $ac_func ();
45896 /* The GNU C library defines this for functions which it implements
45897 to always fail with ENOSYS. Some functions are actually named
45898 something starting with __ and the normal name is an alias. */
45899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45900 choke me
45901 #else
45902 char (*f) () = $ac_func;
45903 #endif
45904 #ifdef __cplusplus
45906 #endif
45909 main ()
45911 return f != $ac_func;
45913 return 0;
45915 _ACEOF
45916 rm -f conftest.$ac_objext conftest$ac_exeext
45917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45918 (eval $ac_link) 2>conftest.er1
45919 ac_status=$?
45920 grep -v '^ *+' conftest.er1 >conftest.err
45921 rm -f conftest.er1
45922 cat conftest.err >&5
45923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45924 (exit $ac_status); } &&
45925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45927 (eval $ac_try) 2>&5
45928 ac_status=$?
45929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); }; } &&
45931 { ac_try='test -s conftest$ac_exeext'
45932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45933 (eval $ac_try) 2>&5
45934 ac_status=$?
45935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936 (exit $ac_status); }; }; then
45937 eval "$as_ac_var=yes"
45938 else
45939 echo "$as_me: failed program was:" >&5
45940 sed 's/^/| /' conftest.$ac_ext >&5
45942 eval "$as_ac_var=no"
45944 rm -f conftest.err conftest.$ac_objext \
45945 conftest$ac_exeext conftest.$ac_ext
45947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45949 if test `eval echo '${'$as_ac_var'}'` = yes; then
45950 cat >>confdefs.h <<_ACEOF
45951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45952 _ACEOF
45955 done
45962 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
45963 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
45964 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
45965 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
45966 echo $ECHO_N "(cached) $ECHO_C" >&6
45967 else
45971 ac_ext=cc
45972 ac_cpp='$CXXCPP $CPPFLAGS'
45973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45977 cat >conftest.$ac_ext <<_ACEOF
45978 /* confdefs.h. */
45979 _ACEOF
45980 cat confdefs.h >>conftest.$ac_ext
45981 cat >>conftest.$ac_ext <<_ACEOF
45982 /* end confdefs.h. */
45983 #include <math.h>
45984 #ifdef HAVE_IEEEFP_H
45985 #include <ieeefp.h>
45986 #endif
45989 main ()
45991 sqrtl(0);
45993 return 0;
45995 _ACEOF
45996 rm -f conftest.$ac_objext
45997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45998 (eval $ac_compile) 2>conftest.er1
45999 ac_status=$?
46000 grep -v '^ *+' conftest.er1 >conftest.err
46001 rm -f conftest.er1
46002 cat conftest.err >&5
46003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46004 (exit $ac_status); } &&
46005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
46006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46007 (eval $ac_try) 2>&5
46008 ac_status=$?
46009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46010 (exit $ac_status); }; } &&
46011 { ac_try='test -s conftest.$ac_objext'
46012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46013 (eval $ac_try) 2>&5
46014 ac_status=$?
46015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46016 (exit $ac_status); }; }; then
46017 glibcxx_cv_func_sqrtl_use=yes
46018 else
46019 echo "$as_me: failed program was:" >&5
46020 sed 's/^/| /' conftest.$ac_ext >&5
46022 glibcxx_cv_func_sqrtl_use=no
46024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46025 ac_ext=c
46026 ac_cpp='$CPP $CPPFLAGS'
46027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46035 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46036 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46038 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46040 for ac_func in sqrtl
46042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46043 echo "$as_me:$LINENO: checking for $ac_func" >&5
46044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46045 if eval "test \"\${$as_ac_var+set}\" = set"; then
46046 echo $ECHO_N "(cached) $ECHO_C" >&6
46047 else
46048 if test x$gcc_no_link = xyes; then
46049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46051 { (exit 1); exit 1; }; }
46053 cat >conftest.$ac_ext <<_ACEOF
46054 /* confdefs.h. */
46055 _ACEOF
46056 cat confdefs.h >>conftest.$ac_ext
46057 cat >>conftest.$ac_ext <<_ACEOF
46058 /* end confdefs.h. */
46059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46061 #define $ac_func innocuous_$ac_func
46063 /* System header to define __stub macros and hopefully few prototypes,
46064 which can conflict with char $ac_func (); below.
46065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46066 <limits.h> exists even on freestanding compilers. */
46068 #ifdef __STDC__
46069 # include <limits.h>
46070 #else
46071 # include <assert.h>
46072 #endif
46074 #undef $ac_func
46076 /* Override any gcc2 internal prototype to avoid an error. */
46077 #ifdef __cplusplus
46078 extern "C"
46080 #endif
46081 /* We use char because int might match the return type of a gcc2
46082 builtin and then its argument prototype would still apply. */
46083 char $ac_func ();
46084 /* The GNU C library defines this for functions which it implements
46085 to always fail with ENOSYS. Some functions are actually named
46086 something starting with __ and the normal name is an alias. */
46087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46088 choke me
46089 #else
46090 char (*f) () = $ac_func;
46091 #endif
46092 #ifdef __cplusplus
46094 #endif
46097 main ()
46099 return f != $ac_func;
46101 return 0;
46103 _ACEOF
46104 rm -f conftest.$ac_objext conftest$ac_exeext
46105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46106 (eval $ac_link) 2>conftest.er1
46107 ac_status=$?
46108 grep -v '^ *+' conftest.er1 >conftest.err
46109 rm -f conftest.er1
46110 cat conftest.err >&5
46111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); } &&
46113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46115 (eval $ac_try) 2>&5
46116 ac_status=$?
46117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46118 (exit $ac_status); }; } &&
46119 { ac_try='test -s conftest$ac_exeext'
46120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46121 (eval $ac_try) 2>&5
46122 ac_status=$?
46123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46124 (exit $ac_status); }; }; then
46125 eval "$as_ac_var=yes"
46126 else
46127 echo "$as_me: failed program was:" >&5
46128 sed 's/^/| /' conftest.$ac_ext >&5
46130 eval "$as_ac_var=no"
46132 rm -f conftest.err conftest.$ac_objext \
46133 conftest$ac_exeext conftest.$ac_ext
46135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46137 if test `eval echo '${'$as_ac_var'}'` = yes; then
46138 cat >>confdefs.h <<_ACEOF
46139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46140 _ACEOF
46143 done
46145 else
46147 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46148 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46149 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46150 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46151 echo $ECHO_N "(cached) $ECHO_C" >&6
46152 else
46156 ac_ext=cc
46157 ac_cpp='$CXXCPP $CPPFLAGS'
46158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46162 cat >conftest.$ac_ext <<_ACEOF
46163 /* confdefs.h. */
46164 _ACEOF
46165 cat confdefs.h >>conftest.$ac_ext
46166 cat >>conftest.$ac_ext <<_ACEOF
46167 /* end confdefs.h. */
46168 #include <math.h>
46169 #ifdef HAVE_IEEEFP_H
46170 #include <ieeefp.h>
46171 #endif
46174 main ()
46176 _sqrtl(0);
46178 return 0;
46180 _ACEOF
46181 rm -f conftest.$ac_objext
46182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46183 (eval $ac_compile) 2>conftest.er1
46184 ac_status=$?
46185 grep -v '^ *+' conftest.er1 >conftest.err
46186 rm -f conftest.er1
46187 cat conftest.err >&5
46188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46189 (exit $ac_status); } &&
46190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
46191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46192 (eval $ac_try) 2>&5
46193 ac_status=$?
46194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46195 (exit $ac_status); }; } &&
46196 { ac_try='test -s conftest.$ac_objext'
46197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46198 (eval $ac_try) 2>&5
46199 ac_status=$?
46200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46201 (exit $ac_status); }; }; then
46202 glibcxx_cv_func__sqrtl_use=yes
46203 else
46204 echo "$as_me: failed program was:" >&5
46205 sed 's/^/| /' conftest.$ac_ext >&5
46207 glibcxx_cv_func__sqrtl_use=no
46209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46210 ac_ext=c
46211 ac_cpp='$CPP $CPPFLAGS'
46212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46220 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46221 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46223 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46225 for ac_func in _sqrtl
46227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46228 echo "$as_me:$LINENO: checking for $ac_func" >&5
46229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46230 if eval "test \"\${$as_ac_var+set}\" = set"; then
46231 echo $ECHO_N "(cached) $ECHO_C" >&6
46232 else
46233 if test x$gcc_no_link = xyes; then
46234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46236 { (exit 1); exit 1; }; }
46238 cat >conftest.$ac_ext <<_ACEOF
46239 /* confdefs.h. */
46240 _ACEOF
46241 cat confdefs.h >>conftest.$ac_ext
46242 cat >>conftest.$ac_ext <<_ACEOF
46243 /* end confdefs.h. */
46244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46246 #define $ac_func innocuous_$ac_func
46248 /* System header to define __stub macros and hopefully few prototypes,
46249 which can conflict with char $ac_func (); below.
46250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46251 <limits.h> exists even on freestanding compilers. */
46253 #ifdef __STDC__
46254 # include <limits.h>
46255 #else
46256 # include <assert.h>
46257 #endif
46259 #undef $ac_func
46261 /* Override any gcc2 internal prototype to avoid an error. */
46262 #ifdef __cplusplus
46263 extern "C"
46265 #endif
46266 /* We use char because int might match the return type of a gcc2
46267 builtin and then its argument prototype would still apply. */
46268 char $ac_func ();
46269 /* The GNU C library defines this for functions which it implements
46270 to always fail with ENOSYS. Some functions are actually named
46271 something starting with __ and the normal name is an alias. */
46272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46273 choke me
46274 #else
46275 char (*f) () = $ac_func;
46276 #endif
46277 #ifdef __cplusplus
46279 #endif
46282 main ()
46284 return f != $ac_func;
46286 return 0;
46288 _ACEOF
46289 rm -f conftest.$ac_objext conftest$ac_exeext
46290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46291 (eval $ac_link) 2>conftest.er1
46292 ac_status=$?
46293 grep -v '^ *+' conftest.er1 >conftest.err
46294 rm -f conftest.er1
46295 cat conftest.err >&5
46296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46297 (exit $ac_status); } &&
46298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46300 (eval $ac_try) 2>&5
46301 ac_status=$?
46302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46303 (exit $ac_status); }; } &&
46304 { ac_try='test -s conftest$ac_exeext'
46305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46306 (eval $ac_try) 2>&5
46307 ac_status=$?
46308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46309 (exit $ac_status); }; }; then
46310 eval "$as_ac_var=yes"
46311 else
46312 echo "$as_me: failed program was:" >&5
46313 sed 's/^/| /' conftest.$ac_ext >&5
46315 eval "$as_ac_var=no"
46317 rm -f conftest.err conftest.$ac_objext \
46318 conftest$ac_exeext conftest.$ac_ext
46320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46322 if test `eval echo '${'$as_ac_var'}'` = yes; then
46323 cat >>confdefs.h <<_ACEOF
46324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46325 _ACEOF
46328 done
46335 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
46336 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
46337 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
46338 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
46339 echo $ECHO_N "(cached) $ECHO_C" >&6
46340 else
46344 ac_ext=cc
46345 ac_cpp='$CXXCPP $CPPFLAGS'
46346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46350 cat >conftest.$ac_ext <<_ACEOF
46351 /* confdefs.h. */
46352 _ACEOF
46353 cat confdefs.h >>conftest.$ac_ext
46354 cat >>conftest.$ac_ext <<_ACEOF
46355 /* end confdefs.h. */
46356 #include <math.h>
46358 main ()
46360 sincosl(0, 0, 0);
46362 return 0;
46364 _ACEOF
46365 rm -f conftest.$ac_objext
46366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46367 (eval $ac_compile) 2>conftest.er1
46368 ac_status=$?
46369 grep -v '^ *+' conftest.er1 >conftest.err
46370 rm -f conftest.er1
46371 cat conftest.err >&5
46372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46373 (exit $ac_status); } &&
46374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
46375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46376 (eval $ac_try) 2>&5
46377 ac_status=$?
46378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46379 (exit $ac_status); }; } &&
46380 { ac_try='test -s conftest.$ac_objext'
46381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46382 (eval $ac_try) 2>&5
46383 ac_status=$?
46384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46385 (exit $ac_status); }; }; then
46386 glibcxx_cv_func_sincosl_use=yes
46387 else
46388 echo "$as_me: failed program was:" >&5
46389 sed 's/^/| /' conftest.$ac_ext >&5
46391 glibcxx_cv_func_sincosl_use=no
46393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46394 ac_ext=c
46395 ac_cpp='$CPP $CPPFLAGS'
46396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46404 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
46405 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
46407 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
46409 for ac_func in sincosl
46411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46412 echo "$as_me:$LINENO: checking for $ac_func" >&5
46413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46414 if eval "test \"\${$as_ac_var+set}\" = set"; then
46415 echo $ECHO_N "(cached) $ECHO_C" >&6
46416 else
46417 if test x$gcc_no_link = xyes; then
46418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46420 { (exit 1); exit 1; }; }
46422 cat >conftest.$ac_ext <<_ACEOF
46423 /* confdefs.h. */
46424 _ACEOF
46425 cat confdefs.h >>conftest.$ac_ext
46426 cat >>conftest.$ac_ext <<_ACEOF
46427 /* end confdefs.h. */
46428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46430 #define $ac_func innocuous_$ac_func
46432 /* System header to define __stub macros and hopefully few prototypes,
46433 which can conflict with char $ac_func (); below.
46434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46435 <limits.h> exists even on freestanding compilers. */
46437 #ifdef __STDC__
46438 # include <limits.h>
46439 #else
46440 # include <assert.h>
46441 #endif
46443 #undef $ac_func
46445 /* Override any gcc2 internal prototype to avoid an error. */
46446 #ifdef __cplusplus
46447 extern "C"
46449 #endif
46450 /* We use char because int might match the return type of a gcc2
46451 builtin and then its argument prototype would still apply. */
46452 char $ac_func ();
46453 /* The GNU C library defines this for functions which it implements
46454 to always fail with ENOSYS. Some functions are actually named
46455 something starting with __ and the normal name is an alias. */
46456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46457 choke me
46458 #else
46459 char (*f) () = $ac_func;
46460 #endif
46461 #ifdef __cplusplus
46463 #endif
46466 main ()
46468 return f != $ac_func;
46470 return 0;
46472 _ACEOF
46473 rm -f conftest.$ac_objext conftest$ac_exeext
46474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46475 (eval $ac_link) 2>conftest.er1
46476 ac_status=$?
46477 grep -v '^ *+' conftest.er1 >conftest.err
46478 rm -f conftest.er1
46479 cat conftest.err >&5
46480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481 (exit $ac_status); } &&
46482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46484 (eval $ac_try) 2>&5
46485 ac_status=$?
46486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46487 (exit $ac_status); }; } &&
46488 { ac_try='test -s conftest$ac_exeext'
46489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46490 (eval $ac_try) 2>&5
46491 ac_status=$?
46492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46493 (exit $ac_status); }; }; then
46494 eval "$as_ac_var=yes"
46495 else
46496 echo "$as_me: failed program was:" >&5
46497 sed 's/^/| /' conftest.$ac_ext >&5
46499 eval "$as_ac_var=no"
46501 rm -f conftest.err conftest.$ac_objext \
46502 conftest$ac_exeext conftest.$ac_ext
46504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46506 if test `eval echo '${'$as_ac_var'}'` = yes; then
46507 cat >>confdefs.h <<_ACEOF
46508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46509 _ACEOF
46512 done
46514 else
46516 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
46517 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
46518 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
46519 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
46520 echo $ECHO_N "(cached) $ECHO_C" >&6
46521 else
46525 ac_ext=cc
46526 ac_cpp='$CXXCPP $CPPFLAGS'
46527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46531 cat >conftest.$ac_ext <<_ACEOF
46532 /* confdefs.h. */
46533 _ACEOF
46534 cat confdefs.h >>conftest.$ac_ext
46535 cat >>conftest.$ac_ext <<_ACEOF
46536 /* end confdefs.h. */
46537 #include <math.h>
46539 main ()
46541 _sincosl(0, 0, 0);
46543 return 0;
46545 _ACEOF
46546 rm -f conftest.$ac_objext
46547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46548 (eval $ac_compile) 2>conftest.er1
46549 ac_status=$?
46550 grep -v '^ *+' conftest.er1 >conftest.err
46551 rm -f conftest.er1
46552 cat conftest.err >&5
46553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46554 (exit $ac_status); } &&
46555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
46556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46557 (eval $ac_try) 2>&5
46558 ac_status=$?
46559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46560 (exit $ac_status); }; } &&
46561 { ac_try='test -s conftest.$ac_objext'
46562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46563 (eval $ac_try) 2>&5
46564 ac_status=$?
46565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46566 (exit $ac_status); }; }; then
46567 glibcxx_cv_func__sincosl_use=yes
46568 else
46569 echo "$as_me: failed program was:" >&5
46570 sed 's/^/| /' conftest.$ac_ext >&5
46572 glibcxx_cv_func__sincosl_use=no
46574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46575 ac_ext=c
46576 ac_cpp='$CPP $CPPFLAGS'
46577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46585 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
46586 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
46588 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
46590 for ac_func in _sincosl
46592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46593 echo "$as_me:$LINENO: checking for $ac_func" >&5
46594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46595 if eval "test \"\${$as_ac_var+set}\" = set"; then
46596 echo $ECHO_N "(cached) $ECHO_C" >&6
46597 else
46598 if test x$gcc_no_link = xyes; then
46599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46601 { (exit 1); exit 1; }; }
46603 cat >conftest.$ac_ext <<_ACEOF
46604 /* confdefs.h. */
46605 _ACEOF
46606 cat confdefs.h >>conftest.$ac_ext
46607 cat >>conftest.$ac_ext <<_ACEOF
46608 /* end confdefs.h. */
46609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46611 #define $ac_func innocuous_$ac_func
46613 /* System header to define __stub macros and hopefully few prototypes,
46614 which can conflict with char $ac_func (); below.
46615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46616 <limits.h> exists even on freestanding compilers. */
46618 #ifdef __STDC__
46619 # include <limits.h>
46620 #else
46621 # include <assert.h>
46622 #endif
46624 #undef $ac_func
46626 /* Override any gcc2 internal prototype to avoid an error. */
46627 #ifdef __cplusplus
46628 extern "C"
46630 #endif
46631 /* We use char because int might match the return type of a gcc2
46632 builtin and then its argument prototype would still apply. */
46633 char $ac_func ();
46634 /* The GNU C library defines this for functions which it implements
46635 to always fail with ENOSYS. Some functions are actually named
46636 something starting with __ and the normal name is an alias. */
46637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46638 choke me
46639 #else
46640 char (*f) () = $ac_func;
46641 #endif
46642 #ifdef __cplusplus
46644 #endif
46647 main ()
46649 return f != $ac_func;
46651 return 0;
46653 _ACEOF
46654 rm -f conftest.$ac_objext conftest$ac_exeext
46655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46656 (eval $ac_link) 2>conftest.er1
46657 ac_status=$?
46658 grep -v '^ *+' conftest.er1 >conftest.err
46659 rm -f conftest.er1
46660 cat conftest.err >&5
46661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662 (exit $ac_status); } &&
46663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46665 (eval $ac_try) 2>&5
46666 ac_status=$?
46667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668 (exit $ac_status); }; } &&
46669 { ac_try='test -s conftest$ac_exeext'
46670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46671 (eval $ac_try) 2>&5
46672 ac_status=$?
46673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674 (exit $ac_status); }; }; then
46675 eval "$as_ac_var=yes"
46676 else
46677 echo "$as_me: failed program was:" >&5
46678 sed 's/^/| /' conftest.$ac_ext >&5
46680 eval "$as_ac_var=no"
46682 rm -f conftest.err conftest.$ac_objext \
46683 conftest$ac_exeext conftest.$ac_ext
46685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46687 if test `eval echo '${'$as_ac_var'}'` = yes; then
46688 cat >>confdefs.h <<_ACEOF
46689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46690 _ACEOF
46693 done
46700 echo "$as_me:$LINENO: checking for finitel declaration" >&5
46701 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
46702 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
46703 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
46704 echo $ECHO_N "(cached) $ECHO_C" >&6
46705 else
46709 ac_ext=cc
46710 ac_cpp='$CXXCPP $CPPFLAGS'
46711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46715 cat >conftest.$ac_ext <<_ACEOF
46716 /* confdefs.h. */
46717 _ACEOF
46718 cat confdefs.h >>conftest.$ac_ext
46719 cat >>conftest.$ac_ext <<_ACEOF
46720 /* end confdefs.h. */
46721 #include <math.h>
46722 #ifdef HAVE_IEEEFP_H
46723 #include <ieeefp.h>
46724 #endif
46727 main ()
46729 finitel(0);
46731 return 0;
46733 _ACEOF
46734 rm -f conftest.$ac_objext
46735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46736 (eval $ac_compile) 2>conftest.er1
46737 ac_status=$?
46738 grep -v '^ *+' conftest.er1 >conftest.err
46739 rm -f conftest.er1
46740 cat conftest.err >&5
46741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46742 (exit $ac_status); } &&
46743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
46744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46745 (eval $ac_try) 2>&5
46746 ac_status=$?
46747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46748 (exit $ac_status); }; } &&
46749 { ac_try='test -s conftest.$ac_objext'
46750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46751 (eval $ac_try) 2>&5
46752 ac_status=$?
46753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46754 (exit $ac_status); }; }; then
46755 glibcxx_cv_func_finitel_use=yes
46756 else
46757 echo "$as_me: failed program was:" >&5
46758 sed 's/^/| /' conftest.$ac_ext >&5
46760 glibcxx_cv_func_finitel_use=no
46762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46763 ac_ext=c
46764 ac_cpp='$CPP $CPPFLAGS'
46765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46773 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
46774 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
46776 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
46778 for ac_func in finitel
46780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46781 echo "$as_me:$LINENO: checking for $ac_func" >&5
46782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46783 if eval "test \"\${$as_ac_var+set}\" = set"; then
46784 echo $ECHO_N "(cached) $ECHO_C" >&6
46785 else
46786 if test x$gcc_no_link = xyes; then
46787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46789 { (exit 1); exit 1; }; }
46791 cat >conftest.$ac_ext <<_ACEOF
46792 /* confdefs.h. */
46793 _ACEOF
46794 cat confdefs.h >>conftest.$ac_ext
46795 cat >>conftest.$ac_ext <<_ACEOF
46796 /* end confdefs.h. */
46797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46799 #define $ac_func innocuous_$ac_func
46801 /* System header to define __stub macros and hopefully few prototypes,
46802 which can conflict with char $ac_func (); below.
46803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46804 <limits.h> exists even on freestanding compilers. */
46806 #ifdef __STDC__
46807 # include <limits.h>
46808 #else
46809 # include <assert.h>
46810 #endif
46812 #undef $ac_func
46814 /* Override any gcc2 internal prototype to avoid an error. */
46815 #ifdef __cplusplus
46816 extern "C"
46818 #endif
46819 /* We use char because int might match the return type of a gcc2
46820 builtin and then its argument prototype would still apply. */
46821 char $ac_func ();
46822 /* The GNU C library defines this for functions which it implements
46823 to always fail with ENOSYS. Some functions are actually named
46824 something starting with __ and the normal name is an alias. */
46825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46826 choke me
46827 #else
46828 char (*f) () = $ac_func;
46829 #endif
46830 #ifdef __cplusplus
46832 #endif
46835 main ()
46837 return f != $ac_func;
46839 return 0;
46841 _ACEOF
46842 rm -f conftest.$ac_objext conftest$ac_exeext
46843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46844 (eval $ac_link) 2>conftest.er1
46845 ac_status=$?
46846 grep -v '^ *+' conftest.er1 >conftest.err
46847 rm -f conftest.er1
46848 cat conftest.err >&5
46849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46850 (exit $ac_status); } &&
46851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46853 (eval $ac_try) 2>&5
46854 ac_status=$?
46855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46856 (exit $ac_status); }; } &&
46857 { ac_try='test -s conftest$ac_exeext'
46858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46859 (eval $ac_try) 2>&5
46860 ac_status=$?
46861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46862 (exit $ac_status); }; }; then
46863 eval "$as_ac_var=yes"
46864 else
46865 echo "$as_me: failed program was:" >&5
46866 sed 's/^/| /' conftest.$ac_ext >&5
46868 eval "$as_ac_var=no"
46870 rm -f conftest.err conftest.$ac_objext \
46871 conftest$ac_exeext conftest.$ac_ext
46873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46875 if test `eval echo '${'$as_ac_var'}'` = yes; then
46876 cat >>confdefs.h <<_ACEOF
46877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46878 _ACEOF
46881 done
46883 else
46885 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
46886 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
46887 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
46888 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
46889 echo $ECHO_N "(cached) $ECHO_C" >&6
46890 else
46894 ac_ext=cc
46895 ac_cpp='$CXXCPP $CPPFLAGS'
46896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46900 cat >conftest.$ac_ext <<_ACEOF
46901 /* confdefs.h. */
46902 _ACEOF
46903 cat confdefs.h >>conftest.$ac_ext
46904 cat >>conftest.$ac_ext <<_ACEOF
46905 /* end confdefs.h. */
46906 #include <math.h>
46907 #ifdef HAVE_IEEEFP_H
46908 #include <ieeefp.h>
46909 #endif
46912 main ()
46914 _finitel(0);
46916 return 0;
46918 _ACEOF
46919 rm -f conftest.$ac_objext
46920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46921 (eval $ac_compile) 2>conftest.er1
46922 ac_status=$?
46923 grep -v '^ *+' conftest.er1 >conftest.err
46924 rm -f conftest.er1
46925 cat conftest.err >&5
46926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46927 (exit $ac_status); } &&
46928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
46929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46930 (eval $ac_try) 2>&5
46931 ac_status=$?
46932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46933 (exit $ac_status); }; } &&
46934 { ac_try='test -s conftest.$ac_objext'
46935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46936 (eval $ac_try) 2>&5
46937 ac_status=$?
46938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46939 (exit $ac_status); }; }; then
46940 glibcxx_cv_func__finitel_use=yes
46941 else
46942 echo "$as_me: failed program was:" >&5
46943 sed 's/^/| /' conftest.$ac_ext >&5
46945 glibcxx_cv_func__finitel_use=no
46947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46948 ac_ext=c
46949 ac_cpp='$CPP $CPPFLAGS'
46950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46958 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
46959 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
46961 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
46963 for ac_func in _finitel
46965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46966 echo "$as_me:$LINENO: checking for $ac_func" >&5
46967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46968 if eval "test \"\${$as_ac_var+set}\" = set"; then
46969 echo $ECHO_N "(cached) $ECHO_C" >&6
46970 else
46971 if test x$gcc_no_link = xyes; then
46972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46974 { (exit 1); exit 1; }; }
46976 cat >conftest.$ac_ext <<_ACEOF
46977 /* confdefs.h. */
46978 _ACEOF
46979 cat confdefs.h >>conftest.$ac_ext
46980 cat >>conftest.$ac_ext <<_ACEOF
46981 /* end confdefs.h. */
46982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46984 #define $ac_func innocuous_$ac_func
46986 /* System header to define __stub macros and hopefully few prototypes,
46987 which can conflict with char $ac_func (); below.
46988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46989 <limits.h> exists even on freestanding compilers. */
46991 #ifdef __STDC__
46992 # include <limits.h>
46993 #else
46994 # include <assert.h>
46995 #endif
46997 #undef $ac_func
46999 /* Override any gcc2 internal prototype to avoid an error. */
47000 #ifdef __cplusplus
47001 extern "C"
47003 #endif
47004 /* We use char because int might match the return type of a gcc2
47005 builtin and then its argument prototype would still apply. */
47006 char $ac_func ();
47007 /* The GNU C library defines this for functions which it implements
47008 to always fail with ENOSYS. Some functions are actually named
47009 something starting with __ and the normal name is an alias. */
47010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47011 choke me
47012 #else
47013 char (*f) () = $ac_func;
47014 #endif
47015 #ifdef __cplusplus
47017 #endif
47020 main ()
47022 return f != $ac_func;
47024 return 0;
47026 _ACEOF
47027 rm -f conftest.$ac_objext conftest$ac_exeext
47028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47029 (eval $ac_link) 2>conftest.er1
47030 ac_status=$?
47031 grep -v '^ *+' conftest.er1 >conftest.err
47032 rm -f conftest.er1
47033 cat conftest.err >&5
47034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47035 (exit $ac_status); } &&
47036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47038 (eval $ac_try) 2>&5
47039 ac_status=$?
47040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47041 (exit $ac_status); }; } &&
47042 { ac_try='test -s conftest$ac_exeext'
47043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47044 (eval $ac_try) 2>&5
47045 ac_status=$?
47046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47047 (exit $ac_status); }; }; then
47048 eval "$as_ac_var=yes"
47049 else
47050 echo "$as_me: failed program was:" >&5
47051 sed 's/^/| /' conftest.$ac_ext >&5
47053 eval "$as_ac_var=no"
47055 rm -f conftest.err conftest.$ac_objext \
47056 conftest$ac_exeext conftest.$ac_ext
47058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47060 if test `eval echo '${'$as_ac_var'}'` = yes; then
47061 cat >>confdefs.h <<_ACEOF
47062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47063 _ACEOF
47066 done
47074 echo "$as_me:$LINENO: checking for _float trig functions" >&5
47075 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47076 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47077 echo $ECHO_N "(cached) $ECHO_C" >&6
47078 else
47082 ac_ext=cc
47083 ac_cpp='$CXXCPP $CPPFLAGS'
47084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47088 cat >conftest.$ac_ext <<_ACEOF
47089 /* confdefs.h. */
47090 _ACEOF
47091 cat confdefs.h >>conftest.$ac_ext
47092 cat >>conftest.$ac_ext <<_ACEOF
47093 /* end confdefs.h. */
47094 #include <math.h>
47096 main ()
47098 `for x in _acosf _asinf _atanf \
47099 _cosf _sinf _tanf \
47100 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47102 return 0;
47104 _ACEOF
47105 rm -f conftest.$ac_objext
47106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47107 (eval $ac_compile) 2>conftest.er1
47108 ac_status=$?
47109 grep -v '^ *+' conftest.er1 >conftest.err
47110 rm -f conftest.er1
47111 cat conftest.err >&5
47112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47113 (exit $ac_status); } &&
47114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47116 (eval $ac_try) 2>&5
47117 ac_status=$?
47118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47119 (exit $ac_status); }; } &&
47120 { ac_try='test -s conftest.$ac_objext'
47121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47122 (eval $ac_try) 2>&5
47123 ac_status=$?
47124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47125 (exit $ac_status); }; }; then
47126 glibcxx_cv_func__float_trig_use=yes
47127 else
47128 echo "$as_me: failed program was:" >&5
47129 sed 's/^/| /' conftest.$ac_ext >&5
47131 glibcxx_cv_func__float_trig_use=no
47133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47134 ac_ext=c
47135 ac_cpp='$CPP $CPPFLAGS'
47136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47142 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47143 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47144 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47154 for ac_func in _acosf _asinf _atanf \
47155 _cosf _sinf _tanf \
47156 _coshf _sinhf _tanhf
47158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47159 echo "$as_me:$LINENO: checking for $ac_func" >&5
47160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47161 if eval "test \"\${$as_ac_var+set}\" = set"; then
47162 echo $ECHO_N "(cached) $ECHO_C" >&6
47163 else
47164 if test x$gcc_no_link = xyes; then
47165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47167 { (exit 1); exit 1; }; }
47169 cat >conftest.$ac_ext <<_ACEOF
47170 /* confdefs.h. */
47171 _ACEOF
47172 cat confdefs.h >>conftest.$ac_ext
47173 cat >>conftest.$ac_ext <<_ACEOF
47174 /* end confdefs.h. */
47175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47177 #define $ac_func innocuous_$ac_func
47179 /* System header to define __stub macros and hopefully few prototypes,
47180 which can conflict with char $ac_func (); below.
47181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47182 <limits.h> exists even on freestanding compilers. */
47184 #ifdef __STDC__
47185 # include <limits.h>
47186 #else
47187 # include <assert.h>
47188 #endif
47190 #undef $ac_func
47192 /* Override any gcc2 internal prototype to avoid an error. */
47193 #ifdef __cplusplus
47194 extern "C"
47196 #endif
47197 /* We use char because int might match the return type of a gcc2
47198 builtin and then its argument prototype would still apply. */
47199 char $ac_func ();
47200 /* The GNU C library defines this for functions which it implements
47201 to always fail with ENOSYS. Some functions are actually named
47202 something starting with __ and the normal name is an alias. */
47203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47204 choke me
47205 #else
47206 char (*f) () = $ac_func;
47207 #endif
47208 #ifdef __cplusplus
47210 #endif
47213 main ()
47215 return f != $ac_func;
47217 return 0;
47219 _ACEOF
47220 rm -f conftest.$ac_objext conftest$ac_exeext
47221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47222 (eval $ac_link) 2>conftest.er1
47223 ac_status=$?
47224 grep -v '^ *+' conftest.er1 >conftest.err
47225 rm -f conftest.er1
47226 cat conftest.err >&5
47227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228 (exit $ac_status); } &&
47229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47231 (eval $ac_try) 2>&5
47232 ac_status=$?
47233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47234 (exit $ac_status); }; } &&
47235 { ac_try='test -s conftest$ac_exeext'
47236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47237 (eval $ac_try) 2>&5
47238 ac_status=$?
47239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47240 (exit $ac_status); }; }; then
47241 eval "$as_ac_var=yes"
47242 else
47243 echo "$as_me: failed program was:" >&5
47244 sed 's/^/| /' conftest.$ac_ext >&5
47246 eval "$as_ac_var=no"
47248 rm -f conftest.err conftest.$ac_objext \
47249 conftest$ac_exeext conftest.$ac_ext
47251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47253 if test `eval echo '${'$as_ac_var'}'` = yes; then
47254 cat >>confdefs.h <<_ACEOF
47255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47256 _ACEOF
47259 done
47264 echo "$as_me:$LINENO: checking for _float round functions" >&5
47265 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47266 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47267 echo $ECHO_N "(cached) $ECHO_C" >&6
47268 else
47272 ac_ext=cc
47273 ac_cpp='$CXXCPP $CPPFLAGS'
47274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47278 cat >conftest.$ac_ext <<_ACEOF
47279 /* confdefs.h. */
47280 _ACEOF
47281 cat confdefs.h >>conftest.$ac_ext
47282 cat >>conftest.$ac_ext <<_ACEOF
47283 /* end confdefs.h. */
47284 #include <math.h>
47286 main ()
47288 `for x in _ceilf _floorf; do echo "$x (0);"; done`
47290 return 0;
47292 _ACEOF
47293 rm -f conftest.$ac_objext
47294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47295 (eval $ac_compile) 2>conftest.er1
47296 ac_status=$?
47297 grep -v '^ *+' conftest.er1 >conftest.err
47298 rm -f conftest.er1
47299 cat conftest.err >&5
47300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47301 (exit $ac_status); } &&
47302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47304 (eval $ac_try) 2>&5
47305 ac_status=$?
47306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47307 (exit $ac_status); }; } &&
47308 { ac_try='test -s conftest.$ac_objext'
47309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47310 (eval $ac_try) 2>&5
47311 ac_status=$?
47312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47313 (exit $ac_status); }; }; then
47314 glibcxx_cv_func__float_round_use=yes
47315 else
47316 echo "$as_me: failed program was:" >&5
47317 sed 's/^/| /' conftest.$ac_ext >&5
47319 glibcxx_cv_func__float_round_use=no
47321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47322 ac_ext=c
47323 ac_cpp='$CPP $CPPFLAGS'
47324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47330 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
47331 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
47332 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
47335 for ac_func in _ceilf _floorf
47337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47338 echo "$as_me:$LINENO: checking for $ac_func" >&5
47339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47340 if eval "test \"\${$as_ac_var+set}\" = set"; then
47341 echo $ECHO_N "(cached) $ECHO_C" >&6
47342 else
47343 if test x$gcc_no_link = xyes; then
47344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47346 { (exit 1); exit 1; }; }
47348 cat >conftest.$ac_ext <<_ACEOF
47349 /* confdefs.h. */
47350 _ACEOF
47351 cat confdefs.h >>conftest.$ac_ext
47352 cat >>conftest.$ac_ext <<_ACEOF
47353 /* end confdefs.h. */
47354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47356 #define $ac_func innocuous_$ac_func
47358 /* System header to define __stub macros and hopefully few prototypes,
47359 which can conflict with char $ac_func (); below.
47360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47361 <limits.h> exists even on freestanding compilers. */
47363 #ifdef __STDC__
47364 # include <limits.h>
47365 #else
47366 # include <assert.h>
47367 #endif
47369 #undef $ac_func
47371 /* Override any gcc2 internal prototype to avoid an error. */
47372 #ifdef __cplusplus
47373 extern "C"
47375 #endif
47376 /* We use char because int might match the return type of a gcc2
47377 builtin and then its argument prototype would still apply. */
47378 char $ac_func ();
47379 /* The GNU C library defines this for functions which it implements
47380 to always fail with ENOSYS. Some functions are actually named
47381 something starting with __ and the normal name is an alias. */
47382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47383 choke me
47384 #else
47385 char (*f) () = $ac_func;
47386 #endif
47387 #ifdef __cplusplus
47389 #endif
47392 main ()
47394 return f != $ac_func;
47396 return 0;
47398 _ACEOF
47399 rm -f conftest.$ac_objext conftest$ac_exeext
47400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47401 (eval $ac_link) 2>conftest.er1
47402 ac_status=$?
47403 grep -v '^ *+' conftest.er1 >conftest.err
47404 rm -f conftest.er1
47405 cat conftest.err >&5
47406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47407 (exit $ac_status); } &&
47408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47410 (eval $ac_try) 2>&5
47411 ac_status=$?
47412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413 (exit $ac_status); }; } &&
47414 { ac_try='test -s conftest$ac_exeext'
47415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47416 (eval $ac_try) 2>&5
47417 ac_status=$?
47418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47419 (exit $ac_status); }; }; then
47420 eval "$as_ac_var=yes"
47421 else
47422 echo "$as_me: failed program was:" >&5
47423 sed 's/^/| /' conftest.$ac_ext >&5
47425 eval "$as_ac_var=no"
47427 rm -f conftest.err conftest.$ac_objext \
47428 conftest$ac_exeext conftest.$ac_ext
47430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47432 if test `eval echo '${'$as_ac_var'}'` = yes; then
47433 cat >>confdefs.h <<_ACEOF
47434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47435 _ACEOF
47438 done
47444 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
47445 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
47446 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
47447 echo $ECHO_N "(cached) $ECHO_C" >&6
47448 else
47452 ac_ext=cc
47453 ac_cpp='$CXXCPP $CPPFLAGS'
47454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47458 cat >conftest.$ac_ext <<_ACEOF
47459 /* confdefs.h. */
47460 _ACEOF
47461 cat confdefs.h >>conftest.$ac_ext
47462 cat >>conftest.$ac_ext <<_ACEOF
47463 /* end confdefs.h. */
47464 #include <math.h>
47466 main ()
47468 `for x in _acosl _asinl _atanl \
47469 _cosl _sinl _tanl \
47470 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
47472 return 0;
47474 _ACEOF
47475 rm -f conftest.$ac_objext
47476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47477 (eval $ac_compile) 2>conftest.er1
47478 ac_status=$?
47479 grep -v '^ *+' conftest.er1 >conftest.err
47480 rm -f conftest.er1
47481 cat conftest.err >&5
47482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47483 (exit $ac_status); } &&
47484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47486 (eval $ac_try) 2>&5
47487 ac_status=$?
47488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47489 (exit $ac_status); }; } &&
47490 { ac_try='test -s conftest.$ac_objext'
47491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47492 (eval $ac_try) 2>&5
47493 ac_status=$?
47494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47495 (exit $ac_status); }; }; then
47496 glibcxx_cv_func__long_double_trig_use=yes
47497 else
47498 echo "$as_me: failed program was:" >&5
47499 sed 's/^/| /' conftest.$ac_ext >&5
47501 glibcxx_cv_func__long_double_trig_use=no
47503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47504 ac_ext=c
47505 ac_cpp='$CPP $CPPFLAGS'
47506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47512 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
47513 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
47514 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
47524 for ac_func in _acosl _asinl _atanl \
47525 _cosl _sinl _tanl \
47526 _coshl _sinhl _tanhl
47528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47529 echo "$as_me:$LINENO: checking for $ac_func" >&5
47530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47531 if eval "test \"\${$as_ac_var+set}\" = set"; then
47532 echo $ECHO_N "(cached) $ECHO_C" >&6
47533 else
47534 if test x$gcc_no_link = xyes; then
47535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47537 { (exit 1); exit 1; }; }
47539 cat >conftest.$ac_ext <<_ACEOF
47540 /* confdefs.h. */
47541 _ACEOF
47542 cat confdefs.h >>conftest.$ac_ext
47543 cat >>conftest.$ac_ext <<_ACEOF
47544 /* end confdefs.h. */
47545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47547 #define $ac_func innocuous_$ac_func
47549 /* System header to define __stub macros and hopefully few prototypes,
47550 which can conflict with char $ac_func (); below.
47551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47552 <limits.h> exists even on freestanding compilers. */
47554 #ifdef __STDC__
47555 # include <limits.h>
47556 #else
47557 # include <assert.h>
47558 #endif
47560 #undef $ac_func
47562 /* Override any gcc2 internal prototype to avoid an error. */
47563 #ifdef __cplusplus
47564 extern "C"
47566 #endif
47567 /* We use char because int might match the return type of a gcc2
47568 builtin and then its argument prototype would still apply. */
47569 char $ac_func ();
47570 /* The GNU C library defines this for functions which it implements
47571 to always fail with ENOSYS. Some functions are actually named
47572 something starting with __ and the normal name is an alias. */
47573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47574 choke me
47575 #else
47576 char (*f) () = $ac_func;
47577 #endif
47578 #ifdef __cplusplus
47580 #endif
47583 main ()
47585 return f != $ac_func;
47587 return 0;
47589 _ACEOF
47590 rm -f conftest.$ac_objext conftest$ac_exeext
47591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47592 (eval $ac_link) 2>conftest.er1
47593 ac_status=$?
47594 grep -v '^ *+' conftest.er1 >conftest.err
47595 rm -f conftest.er1
47596 cat conftest.err >&5
47597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598 (exit $ac_status); } &&
47599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47601 (eval $ac_try) 2>&5
47602 ac_status=$?
47603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604 (exit $ac_status); }; } &&
47605 { ac_try='test -s conftest$ac_exeext'
47606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47607 (eval $ac_try) 2>&5
47608 ac_status=$?
47609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47610 (exit $ac_status); }; }; then
47611 eval "$as_ac_var=yes"
47612 else
47613 echo "$as_me: failed program was:" >&5
47614 sed 's/^/| /' conftest.$ac_ext >&5
47616 eval "$as_ac_var=no"
47618 rm -f conftest.err conftest.$ac_objext \
47619 conftest$ac_exeext conftest.$ac_ext
47621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47623 if test `eval echo '${'$as_ac_var'}'` = yes; then
47624 cat >>confdefs.h <<_ACEOF
47625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47626 _ACEOF
47629 done
47634 echo "$as_me:$LINENO: checking for _long double round functions" >&5
47635 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
47636 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
47637 echo $ECHO_N "(cached) $ECHO_C" >&6
47638 else
47642 ac_ext=cc
47643 ac_cpp='$CXXCPP $CPPFLAGS'
47644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47648 cat >conftest.$ac_ext <<_ACEOF
47649 /* confdefs.h. */
47650 _ACEOF
47651 cat confdefs.h >>conftest.$ac_ext
47652 cat >>conftest.$ac_ext <<_ACEOF
47653 /* end confdefs.h. */
47654 #include <math.h>
47656 main ()
47658 `for x in _ceill _floorl; do echo "$x (0);"; done`
47660 return 0;
47662 _ACEOF
47663 rm -f conftest.$ac_objext
47664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47665 (eval $ac_compile) 2>conftest.er1
47666 ac_status=$?
47667 grep -v '^ *+' conftest.er1 >conftest.err
47668 rm -f conftest.er1
47669 cat conftest.err >&5
47670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47671 (exit $ac_status); } &&
47672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47674 (eval $ac_try) 2>&5
47675 ac_status=$?
47676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47677 (exit $ac_status); }; } &&
47678 { ac_try='test -s conftest.$ac_objext'
47679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47680 (eval $ac_try) 2>&5
47681 ac_status=$?
47682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47683 (exit $ac_status); }; }; then
47684 glibcxx_cv_func__long_double_round_use=yes
47685 else
47686 echo "$as_me: failed program was:" >&5
47687 sed 's/^/| /' conftest.$ac_ext >&5
47689 glibcxx_cv_func__long_double_round_use=no
47691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47692 ac_ext=c
47693 ac_cpp='$CPP $CPPFLAGS'
47694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47700 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
47701 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
47702 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
47705 for ac_func in _ceill _floorl
47707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47708 echo "$as_me:$LINENO: checking for $ac_func" >&5
47709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47710 if eval "test \"\${$as_ac_var+set}\" = set"; then
47711 echo $ECHO_N "(cached) $ECHO_C" >&6
47712 else
47713 if test x$gcc_no_link = xyes; then
47714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47716 { (exit 1); exit 1; }; }
47718 cat >conftest.$ac_ext <<_ACEOF
47719 /* confdefs.h. */
47720 _ACEOF
47721 cat confdefs.h >>conftest.$ac_ext
47722 cat >>conftest.$ac_ext <<_ACEOF
47723 /* end confdefs.h. */
47724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47726 #define $ac_func innocuous_$ac_func
47728 /* System header to define __stub macros and hopefully few prototypes,
47729 which can conflict with char $ac_func (); below.
47730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47731 <limits.h> exists even on freestanding compilers. */
47733 #ifdef __STDC__
47734 # include <limits.h>
47735 #else
47736 # include <assert.h>
47737 #endif
47739 #undef $ac_func
47741 /* Override any gcc2 internal prototype to avoid an error. */
47742 #ifdef __cplusplus
47743 extern "C"
47745 #endif
47746 /* We use char because int might match the return type of a gcc2
47747 builtin and then its argument prototype would still apply. */
47748 char $ac_func ();
47749 /* The GNU C library defines this for functions which it implements
47750 to always fail with ENOSYS. Some functions are actually named
47751 something starting with __ and the normal name is an alias. */
47752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47753 choke me
47754 #else
47755 char (*f) () = $ac_func;
47756 #endif
47757 #ifdef __cplusplus
47759 #endif
47762 main ()
47764 return f != $ac_func;
47766 return 0;
47768 _ACEOF
47769 rm -f conftest.$ac_objext conftest$ac_exeext
47770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47771 (eval $ac_link) 2>conftest.er1
47772 ac_status=$?
47773 grep -v '^ *+' conftest.er1 >conftest.err
47774 rm -f conftest.er1
47775 cat conftest.err >&5
47776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47777 (exit $ac_status); } &&
47778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47780 (eval $ac_try) 2>&5
47781 ac_status=$?
47782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47783 (exit $ac_status); }; } &&
47784 { ac_try='test -s conftest$ac_exeext'
47785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47786 (eval $ac_try) 2>&5
47787 ac_status=$?
47788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47789 (exit $ac_status); }; }; then
47790 eval "$as_ac_var=yes"
47791 else
47792 echo "$as_me: failed program was:" >&5
47793 sed 's/^/| /' conftest.$ac_ext >&5
47795 eval "$as_ac_var=no"
47797 rm -f conftest.err conftest.$ac_objext \
47798 conftest$ac_exeext conftest.$ac_ext
47800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47802 if test `eval echo '${'$as_ac_var'}'` = yes; then
47803 cat >>confdefs.h <<_ACEOF
47804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47805 _ACEOF
47808 done
47813 LIBS="$ac_save_LIBS"
47814 CXXFLAGS="$ac_save_CXXFLAGS"
47818 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
47819 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
47820 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
47821 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
47822 echo $ECHO_N "(cached) $ECHO_C" >&6
47823 else
47827 ac_ext=cc
47828 ac_cpp='$CXXCPP $CPPFLAGS'
47829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47833 cat >conftest.$ac_ext <<_ACEOF
47834 /* confdefs.h. */
47835 _ACEOF
47836 cat confdefs.h >>conftest.$ac_ext
47837 cat >>conftest.$ac_ext <<_ACEOF
47838 /* end confdefs.h. */
47839 #include <math.h>
47841 main ()
47843 __builtin_abs(0);
47845 return 0;
47847 _ACEOF
47848 rm -f conftest.$ac_objext
47849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47850 (eval $ac_compile) 2>conftest.er1
47851 ac_status=$?
47852 grep -v '^ *+' conftest.er1 >conftest.err
47853 rm -f conftest.er1
47854 cat conftest.err >&5
47855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47856 (exit $ac_status); } &&
47857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47859 (eval $ac_try) 2>&5
47860 ac_status=$?
47861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47862 (exit $ac_status); }; } &&
47863 { ac_try='test -s conftest.$ac_objext'
47864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47865 (eval $ac_try) 2>&5
47866 ac_status=$?
47867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868 (exit $ac_status); }; }; then
47869 glibcxx_cv_func___builtin_abs_use=yes
47870 else
47871 echo "$as_me: failed program was:" >&5
47872 sed 's/^/| /' conftest.$ac_ext >&5
47874 glibcxx_cv_func___builtin_abs_use=no
47876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47877 ac_ext=c
47878 ac_cpp='$CPP $CPPFLAGS'
47879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47887 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
47888 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
47889 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
47890 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
47891 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
47892 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
47893 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
47894 echo $ECHO_N "(cached) $ECHO_C" >&6
47895 else
47897 if test x$gcc_no_link = xyes; then
47898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47900 { (exit 1); exit 1; }; }
47902 cat >conftest.$ac_ext <<_ACEOF
47903 /* confdefs.h. */
47904 _ACEOF
47905 cat confdefs.h >>conftest.$ac_ext
47906 cat >>conftest.$ac_ext <<_ACEOF
47907 /* end confdefs.h. */
47908 #include <math.h>
47910 main ()
47912 __builtin_abs(0);
47914 return 0;
47916 _ACEOF
47917 rm -f conftest.$ac_objext conftest$ac_exeext
47918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47919 (eval $ac_link) 2>conftest.er1
47920 ac_status=$?
47921 grep -v '^ *+' conftest.er1 >conftest.err
47922 rm -f conftest.er1
47923 cat conftest.err >&5
47924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47925 (exit $ac_status); } &&
47926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47928 (eval $ac_try) 2>&5
47929 ac_status=$?
47930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47931 (exit $ac_status); }; } &&
47932 { ac_try='test -s conftest$ac_exeext'
47933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47934 (eval $ac_try) 2>&5
47935 ac_status=$?
47936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47937 (exit $ac_status); }; }; then
47938 glibcxx_cv_func___builtin_abs_link=yes
47939 else
47940 echo "$as_me: failed program was:" >&5
47941 sed 's/^/| /' conftest.$ac_ext >&5
47943 glibcxx_cv_func___builtin_abs_link=no
47945 rm -f conftest.err conftest.$ac_objext \
47946 conftest$ac_exeext conftest.$ac_ext
47951 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
47952 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
47953 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
47954 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
47955 cat >>confdefs.h <<_ACEOF
47956 #define ${ac_tr_func} 1
47957 _ACEOF
47963 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
47964 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
47965 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
47966 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
47967 echo $ECHO_N "(cached) $ECHO_C" >&6
47968 else
47972 ac_ext=cc
47973 ac_cpp='$CXXCPP $CPPFLAGS'
47974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47978 cat >conftest.$ac_ext <<_ACEOF
47979 /* confdefs.h. */
47980 _ACEOF
47981 cat confdefs.h >>conftest.$ac_ext
47982 cat >>conftest.$ac_ext <<_ACEOF
47983 /* end confdefs.h. */
47984 #include <math.h>
47986 main ()
47988 __builtin_fabsf(0);
47990 return 0;
47992 _ACEOF
47993 rm -f conftest.$ac_objext
47994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47995 (eval $ac_compile) 2>conftest.er1
47996 ac_status=$?
47997 grep -v '^ *+' conftest.er1 >conftest.err
47998 rm -f conftest.er1
47999 cat conftest.err >&5
48000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48001 (exit $ac_status); } &&
48002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48004 (eval $ac_try) 2>&5
48005 ac_status=$?
48006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48007 (exit $ac_status); }; } &&
48008 { ac_try='test -s conftest.$ac_objext'
48009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48010 (eval $ac_try) 2>&5
48011 ac_status=$?
48012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48013 (exit $ac_status); }; }; then
48014 glibcxx_cv_func___builtin_fabsf_use=yes
48015 else
48016 echo "$as_me: failed program was:" >&5
48017 sed 's/^/| /' conftest.$ac_ext >&5
48019 glibcxx_cv_func___builtin_fabsf_use=no
48021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48022 ac_ext=c
48023 ac_cpp='$CPP $CPPFLAGS'
48024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48032 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48033 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48034 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48035 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48036 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48037 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48038 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48039 echo $ECHO_N "(cached) $ECHO_C" >&6
48040 else
48042 if test x$gcc_no_link = xyes; then
48043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48045 { (exit 1); exit 1; }; }
48047 cat >conftest.$ac_ext <<_ACEOF
48048 /* confdefs.h. */
48049 _ACEOF
48050 cat confdefs.h >>conftest.$ac_ext
48051 cat >>conftest.$ac_ext <<_ACEOF
48052 /* end confdefs.h. */
48053 #include <math.h>
48055 main ()
48057 __builtin_fabsf(0);
48059 return 0;
48061 _ACEOF
48062 rm -f conftest.$ac_objext conftest$ac_exeext
48063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48064 (eval $ac_link) 2>conftest.er1
48065 ac_status=$?
48066 grep -v '^ *+' conftest.er1 >conftest.err
48067 rm -f conftest.er1
48068 cat conftest.err >&5
48069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48070 (exit $ac_status); } &&
48071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48073 (eval $ac_try) 2>&5
48074 ac_status=$?
48075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48076 (exit $ac_status); }; } &&
48077 { ac_try='test -s conftest$ac_exeext'
48078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48079 (eval $ac_try) 2>&5
48080 ac_status=$?
48081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48082 (exit $ac_status); }; }; then
48083 glibcxx_cv_func___builtin_fabsf_link=yes
48084 else
48085 echo "$as_me: failed program was:" >&5
48086 sed 's/^/| /' conftest.$ac_ext >&5
48088 glibcxx_cv_func___builtin_fabsf_link=no
48090 rm -f conftest.err conftest.$ac_objext \
48091 conftest$ac_exeext conftest.$ac_ext
48096 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48097 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48098 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48099 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48100 cat >>confdefs.h <<_ACEOF
48101 #define ${ac_tr_func} 1
48102 _ACEOF
48108 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48109 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48110 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48111 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48112 echo $ECHO_N "(cached) $ECHO_C" >&6
48113 else
48117 ac_ext=cc
48118 ac_cpp='$CXXCPP $CPPFLAGS'
48119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48123 cat >conftest.$ac_ext <<_ACEOF
48124 /* confdefs.h. */
48125 _ACEOF
48126 cat confdefs.h >>conftest.$ac_ext
48127 cat >>conftest.$ac_ext <<_ACEOF
48128 /* end confdefs.h. */
48129 #include <math.h>
48131 main ()
48133 __builtin_fabs(0);
48135 return 0;
48137 _ACEOF
48138 rm -f conftest.$ac_objext
48139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48140 (eval $ac_compile) 2>conftest.er1
48141 ac_status=$?
48142 grep -v '^ *+' conftest.er1 >conftest.err
48143 rm -f conftest.er1
48144 cat conftest.err >&5
48145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48146 (exit $ac_status); } &&
48147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48149 (eval $ac_try) 2>&5
48150 ac_status=$?
48151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48152 (exit $ac_status); }; } &&
48153 { ac_try='test -s conftest.$ac_objext'
48154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48155 (eval $ac_try) 2>&5
48156 ac_status=$?
48157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48158 (exit $ac_status); }; }; then
48159 glibcxx_cv_func___builtin_fabs_use=yes
48160 else
48161 echo "$as_me: failed program was:" >&5
48162 sed 's/^/| /' conftest.$ac_ext >&5
48164 glibcxx_cv_func___builtin_fabs_use=no
48166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48167 ac_ext=c
48168 ac_cpp='$CPP $CPPFLAGS'
48169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48177 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48178 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48179 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48180 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48181 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48182 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48183 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48184 echo $ECHO_N "(cached) $ECHO_C" >&6
48185 else
48187 if test x$gcc_no_link = xyes; then
48188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48189 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48190 { (exit 1); exit 1; }; }
48192 cat >conftest.$ac_ext <<_ACEOF
48193 /* confdefs.h. */
48194 _ACEOF
48195 cat confdefs.h >>conftest.$ac_ext
48196 cat >>conftest.$ac_ext <<_ACEOF
48197 /* end confdefs.h. */
48198 #include <math.h>
48200 main ()
48202 __builtin_fabs(0);
48204 return 0;
48206 _ACEOF
48207 rm -f conftest.$ac_objext conftest$ac_exeext
48208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48209 (eval $ac_link) 2>conftest.er1
48210 ac_status=$?
48211 grep -v '^ *+' conftest.er1 >conftest.err
48212 rm -f conftest.er1
48213 cat conftest.err >&5
48214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48215 (exit $ac_status); } &&
48216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48218 (eval $ac_try) 2>&5
48219 ac_status=$?
48220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48221 (exit $ac_status); }; } &&
48222 { ac_try='test -s conftest$ac_exeext'
48223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48224 (eval $ac_try) 2>&5
48225 ac_status=$?
48226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48227 (exit $ac_status); }; }; then
48228 glibcxx_cv_func___builtin_fabs_link=yes
48229 else
48230 echo "$as_me: failed program was:" >&5
48231 sed 's/^/| /' conftest.$ac_ext >&5
48233 glibcxx_cv_func___builtin_fabs_link=no
48235 rm -f conftest.err conftest.$ac_objext \
48236 conftest$ac_exeext conftest.$ac_ext
48241 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48242 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48243 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48244 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48245 cat >>confdefs.h <<_ACEOF
48246 #define ${ac_tr_func} 1
48247 _ACEOF
48253 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48254 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48255 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48256 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48257 echo $ECHO_N "(cached) $ECHO_C" >&6
48258 else
48262 ac_ext=cc
48263 ac_cpp='$CXXCPP $CPPFLAGS'
48264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48268 cat >conftest.$ac_ext <<_ACEOF
48269 /* confdefs.h. */
48270 _ACEOF
48271 cat confdefs.h >>conftest.$ac_ext
48272 cat >>conftest.$ac_ext <<_ACEOF
48273 /* end confdefs.h. */
48274 #include <math.h>
48276 main ()
48278 __builtin_fabsl(0);
48280 return 0;
48282 _ACEOF
48283 rm -f conftest.$ac_objext
48284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48285 (eval $ac_compile) 2>conftest.er1
48286 ac_status=$?
48287 grep -v '^ *+' conftest.er1 >conftest.err
48288 rm -f conftest.er1
48289 cat conftest.err >&5
48290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48291 (exit $ac_status); } &&
48292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48294 (eval $ac_try) 2>&5
48295 ac_status=$?
48296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48297 (exit $ac_status); }; } &&
48298 { ac_try='test -s conftest.$ac_objext'
48299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48300 (eval $ac_try) 2>&5
48301 ac_status=$?
48302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48303 (exit $ac_status); }; }; then
48304 glibcxx_cv_func___builtin_fabsl_use=yes
48305 else
48306 echo "$as_me: failed program was:" >&5
48307 sed 's/^/| /' conftest.$ac_ext >&5
48309 glibcxx_cv_func___builtin_fabsl_use=no
48311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48312 ac_ext=c
48313 ac_cpp='$CPP $CPPFLAGS'
48314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48322 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
48323 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
48324 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
48325 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
48326 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
48327 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
48328 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
48329 echo $ECHO_N "(cached) $ECHO_C" >&6
48330 else
48332 if test x$gcc_no_link = xyes; then
48333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48335 { (exit 1); exit 1; }; }
48337 cat >conftest.$ac_ext <<_ACEOF
48338 /* confdefs.h. */
48339 _ACEOF
48340 cat confdefs.h >>conftest.$ac_ext
48341 cat >>conftest.$ac_ext <<_ACEOF
48342 /* end confdefs.h. */
48343 #include <math.h>
48345 main ()
48347 __builtin_fabsl(0);
48349 return 0;
48351 _ACEOF
48352 rm -f conftest.$ac_objext conftest$ac_exeext
48353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48354 (eval $ac_link) 2>conftest.er1
48355 ac_status=$?
48356 grep -v '^ *+' conftest.er1 >conftest.err
48357 rm -f conftest.er1
48358 cat conftest.err >&5
48359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360 (exit $ac_status); } &&
48361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48363 (eval $ac_try) 2>&5
48364 ac_status=$?
48365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48366 (exit $ac_status); }; } &&
48367 { ac_try='test -s conftest$ac_exeext'
48368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48369 (eval $ac_try) 2>&5
48370 ac_status=$?
48371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48372 (exit $ac_status); }; }; then
48373 glibcxx_cv_func___builtin_fabsl_link=yes
48374 else
48375 echo "$as_me: failed program was:" >&5
48376 sed 's/^/| /' conftest.$ac_ext >&5
48378 glibcxx_cv_func___builtin_fabsl_link=no
48380 rm -f conftest.err conftest.$ac_objext \
48381 conftest$ac_exeext conftest.$ac_ext
48386 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
48387 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
48388 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
48389 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48390 cat >>confdefs.h <<_ACEOF
48391 #define ${ac_tr_func} 1
48392 _ACEOF
48398 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
48399 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
48400 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
48401 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
48402 echo $ECHO_N "(cached) $ECHO_C" >&6
48403 else
48407 ac_ext=cc
48408 ac_cpp='$CXXCPP $CPPFLAGS'
48409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48413 cat >conftest.$ac_ext <<_ACEOF
48414 /* confdefs.h. */
48415 _ACEOF
48416 cat confdefs.h >>conftest.$ac_ext
48417 cat >>conftest.$ac_ext <<_ACEOF
48418 /* end confdefs.h. */
48419 #include <math.h>
48421 main ()
48423 __builtin_labs(0);
48425 return 0;
48427 _ACEOF
48428 rm -f conftest.$ac_objext
48429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48430 (eval $ac_compile) 2>conftest.er1
48431 ac_status=$?
48432 grep -v '^ *+' conftest.er1 >conftest.err
48433 rm -f conftest.er1
48434 cat conftest.err >&5
48435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48436 (exit $ac_status); } &&
48437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48439 (eval $ac_try) 2>&5
48440 ac_status=$?
48441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48442 (exit $ac_status); }; } &&
48443 { ac_try='test -s conftest.$ac_objext'
48444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48445 (eval $ac_try) 2>&5
48446 ac_status=$?
48447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48448 (exit $ac_status); }; }; then
48449 glibcxx_cv_func___builtin_labs_use=yes
48450 else
48451 echo "$as_me: failed program was:" >&5
48452 sed 's/^/| /' conftest.$ac_ext >&5
48454 glibcxx_cv_func___builtin_labs_use=no
48456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48457 ac_ext=c
48458 ac_cpp='$CPP $CPPFLAGS'
48459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48467 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
48468 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
48469 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
48470 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
48471 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
48472 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
48473 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
48474 echo $ECHO_N "(cached) $ECHO_C" >&6
48475 else
48477 if test x$gcc_no_link = xyes; then
48478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48480 { (exit 1); exit 1; }; }
48482 cat >conftest.$ac_ext <<_ACEOF
48483 /* confdefs.h. */
48484 _ACEOF
48485 cat confdefs.h >>conftest.$ac_ext
48486 cat >>conftest.$ac_ext <<_ACEOF
48487 /* end confdefs.h. */
48488 #include <math.h>
48490 main ()
48492 __builtin_labs(0);
48494 return 0;
48496 _ACEOF
48497 rm -f conftest.$ac_objext conftest$ac_exeext
48498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48499 (eval $ac_link) 2>conftest.er1
48500 ac_status=$?
48501 grep -v '^ *+' conftest.er1 >conftest.err
48502 rm -f conftest.er1
48503 cat conftest.err >&5
48504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48505 (exit $ac_status); } &&
48506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48508 (eval $ac_try) 2>&5
48509 ac_status=$?
48510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48511 (exit $ac_status); }; } &&
48512 { ac_try='test -s conftest$ac_exeext'
48513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48514 (eval $ac_try) 2>&5
48515 ac_status=$?
48516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48517 (exit $ac_status); }; }; then
48518 glibcxx_cv_func___builtin_labs_link=yes
48519 else
48520 echo "$as_me: failed program was:" >&5
48521 sed 's/^/| /' conftest.$ac_ext >&5
48523 glibcxx_cv_func___builtin_labs_link=no
48525 rm -f conftest.err conftest.$ac_objext \
48526 conftest$ac_exeext conftest.$ac_ext
48531 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
48532 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
48533 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
48534 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48535 cat >>confdefs.h <<_ACEOF
48536 #define ${ac_tr_func} 1
48537 _ACEOF
48544 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
48545 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
48546 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
48547 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
48548 echo $ECHO_N "(cached) $ECHO_C" >&6
48549 else
48553 ac_ext=cc
48554 ac_cpp='$CXXCPP $CPPFLAGS'
48555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48559 cat >conftest.$ac_ext <<_ACEOF
48560 /* confdefs.h. */
48561 _ACEOF
48562 cat confdefs.h >>conftest.$ac_ext
48563 cat >>conftest.$ac_ext <<_ACEOF
48564 /* end confdefs.h. */
48565 #include <math.h>
48567 main ()
48569 __builtin_sqrtf(0);
48571 return 0;
48573 _ACEOF
48574 rm -f conftest.$ac_objext
48575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48576 (eval $ac_compile) 2>conftest.er1
48577 ac_status=$?
48578 grep -v '^ *+' conftest.er1 >conftest.err
48579 rm -f conftest.er1
48580 cat conftest.err >&5
48581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48582 (exit $ac_status); } &&
48583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48585 (eval $ac_try) 2>&5
48586 ac_status=$?
48587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48588 (exit $ac_status); }; } &&
48589 { ac_try='test -s conftest.$ac_objext'
48590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48591 (eval $ac_try) 2>&5
48592 ac_status=$?
48593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48594 (exit $ac_status); }; }; then
48595 glibcxx_cv_func___builtin_sqrtf_use=yes
48596 else
48597 echo "$as_me: failed program was:" >&5
48598 sed 's/^/| /' conftest.$ac_ext >&5
48600 glibcxx_cv_func___builtin_sqrtf_use=no
48602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48603 ac_ext=c
48604 ac_cpp='$CPP $CPPFLAGS'
48605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48613 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
48614 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
48615 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
48616 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
48617 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
48618 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
48619 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
48620 echo $ECHO_N "(cached) $ECHO_C" >&6
48621 else
48623 if test x$gcc_no_link = xyes; then
48624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48626 { (exit 1); exit 1; }; }
48628 cat >conftest.$ac_ext <<_ACEOF
48629 /* confdefs.h. */
48630 _ACEOF
48631 cat confdefs.h >>conftest.$ac_ext
48632 cat >>conftest.$ac_ext <<_ACEOF
48633 /* end confdefs.h. */
48634 #include <math.h>
48636 main ()
48638 __builtin_sqrtf(0);
48640 return 0;
48642 _ACEOF
48643 rm -f conftest.$ac_objext conftest$ac_exeext
48644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48645 (eval $ac_link) 2>conftest.er1
48646 ac_status=$?
48647 grep -v '^ *+' conftest.er1 >conftest.err
48648 rm -f conftest.er1
48649 cat conftest.err >&5
48650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48651 (exit $ac_status); } &&
48652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48654 (eval $ac_try) 2>&5
48655 ac_status=$?
48656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48657 (exit $ac_status); }; } &&
48658 { ac_try='test -s conftest$ac_exeext'
48659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48660 (eval $ac_try) 2>&5
48661 ac_status=$?
48662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48663 (exit $ac_status); }; }; then
48664 glibcxx_cv_func___builtin_sqrtf_link=yes
48665 else
48666 echo "$as_me: failed program was:" >&5
48667 sed 's/^/| /' conftest.$ac_ext >&5
48669 glibcxx_cv_func___builtin_sqrtf_link=no
48671 rm -f conftest.err conftest.$ac_objext \
48672 conftest$ac_exeext conftest.$ac_ext
48677 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
48678 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
48679 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
48680 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48681 cat >>confdefs.h <<_ACEOF
48682 #define ${ac_tr_func} 1
48683 _ACEOF
48689 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
48690 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
48691 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
48692 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
48693 echo $ECHO_N "(cached) $ECHO_C" >&6
48694 else
48698 ac_ext=cc
48699 ac_cpp='$CXXCPP $CPPFLAGS'
48700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48704 cat >conftest.$ac_ext <<_ACEOF
48705 /* confdefs.h. */
48706 _ACEOF
48707 cat confdefs.h >>conftest.$ac_ext
48708 cat >>conftest.$ac_ext <<_ACEOF
48709 /* end confdefs.h. */
48710 #include <math.h>
48712 main ()
48714 __builtin_sqrt(0);
48716 return 0;
48718 _ACEOF
48719 rm -f conftest.$ac_objext
48720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48721 (eval $ac_compile) 2>conftest.er1
48722 ac_status=$?
48723 grep -v '^ *+' conftest.er1 >conftest.err
48724 rm -f conftest.er1
48725 cat conftest.err >&5
48726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48727 (exit $ac_status); } &&
48728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48730 (eval $ac_try) 2>&5
48731 ac_status=$?
48732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48733 (exit $ac_status); }; } &&
48734 { ac_try='test -s conftest.$ac_objext'
48735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48736 (eval $ac_try) 2>&5
48737 ac_status=$?
48738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739 (exit $ac_status); }; }; then
48740 glibcxx_cv_func___builtin_sqrt_use=yes
48741 else
48742 echo "$as_me: failed program was:" >&5
48743 sed 's/^/| /' conftest.$ac_ext >&5
48745 glibcxx_cv_func___builtin_sqrt_use=no
48747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48748 ac_ext=c
48749 ac_cpp='$CPP $CPPFLAGS'
48750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48758 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
48759 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
48760 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
48761 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
48762 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
48763 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
48764 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
48765 echo $ECHO_N "(cached) $ECHO_C" >&6
48766 else
48768 if test x$gcc_no_link = xyes; then
48769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48771 { (exit 1); exit 1; }; }
48773 cat >conftest.$ac_ext <<_ACEOF
48774 /* confdefs.h. */
48775 _ACEOF
48776 cat confdefs.h >>conftest.$ac_ext
48777 cat >>conftest.$ac_ext <<_ACEOF
48778 /* end confdefs.h. */
48779 #include <math.h>
48781 main ()
48783 __builtin_sqrt(0);
48785 return 0;
48787 _ACEOF
48788 rm -f conftest.$ac_objext conftest$ac_exeext
48789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48790 (eval $ac_link) 2>conftest.er1
48791 ac_status=$?
48792 grep -v '^ *+' conftest.er1 >conftest.err
48793 rm -f conftest.er1
48794 cat conftest.err >&5
48795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48796 (exit $ac_status); } &&
48797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48799 (eval $ac_try) 2>&5
48800 ac_status=$?
48801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48802 (exit $ac_status); }; } &&
48803 { ac_try='test -s conftest$ac_exeext'
48804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48805 (eval $ac_try) 2>&5
48806 ac_status=$?
48807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48808 (exit $ac_status); }; }; then
48809 glibcxx_cv_func___builtin_sqrt_link=yes
48810 else
48811 echo "$as_me: failed program was:" >&5
48812 sed 's/^/| /' conftest.$ac_ext >&5
48814 glibcxx_cv_func___builtin_sqrt_link=no
48816 rm -f conftest.err conftest.$ac_objext \
48817 conftest$ac_exeext conftest.$ac_ext
48822 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
48823 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
48824 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
48825 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48826 cat >>confdefs.h <<_ACEOF
48827 #define ${ac_tr_func} 1
48828 _ACEOF
48834 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
48835 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
48836 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
48837 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
48838 echo $ECHO_N "(cached) $ECHO_C" >&6
48839 else
48843 ac_ext=cc
48844 ac_cpp='$CXXCPP $CPPFLAGS'
48845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48849 cat >conftest.$ac_ext <<_ACEOF
48850 /* confdefs.h. */
48851 _ACEOF
48852 cat confdefs.h >>conftest.$ac_ext
48853 cat >>conftest.$ac_ext <<_ACEOF
48854 /* end confdefs.h. */
48855 #include <math.h>
48857 main ()
48859 __builtin_sqrtl(0);
48861 return 0;
48863 _ACEOF
48864 rm -f conftest.$ac_objext
48865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48866 (eval $ac_compile) 2>conftest.er1
48867 ac_status=$?
48868 grep -v '^ *+' conftest.er1 >conftest.err
48869 rm -f conftest.er1
48870 cat conftest.err >&5
48871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48872 (exit $ac_status); } &&
48873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
48874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48875 (eval $ac_try) 2>&5
48876 ac_status=$?
48877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48878 (exit $ac_status); }; } &&
48879 { ac_try='test -s conftest.$ac_objext'
48880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48881 (eval $ac_try) 2>&5
48882 ac_status=$?
48883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48884 (exit $ac_status); }; }; then
48885 glibcxx_cv_func___builtin_sqrtl_use=yes
48886 else
48887 echo "$as_me: failed program was:" >&5
48888 sed 's/^/| /' conftest.$ac_ext >&5
48890 glibcxx_cv_func___builtin_sqrtl_use=no
48892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48893 ac_ext=c
48894 ac_cpp='$CPP $CPPFLAGS'
48895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48903 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
48904 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
48905 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
48906 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
48907 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
48908 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
48909 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
48910 echo $ECHO_N "(cached) $ECHO_C" >&6
48911 else
48913 if test x$gcc_no_link = xyes; then
48914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48916 { (exit 1); exit 1; }; }
48918 cat >conftest.$ac_ext <<_ACEOF
48919 /* confdefs.h. */
48920 _ACEOF
48921 cat confdefs.h >>conftest.$ac_ext
48922 cat >>conftest.$ac_ext <<_ACEOF
48923 /* end confdefs.h. */
48924 #include <math.h>
48926 main ()
48928 __builtin_sqrtl(0);
48930 return 0;
48932 _ACEOF
48933 rm -f conftest.$ac_objext conftest$ac_exeext
48934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48935 (eval $ac_link) 2>conftest.er1
48936 ac_status=$?
48937 grep -v '^ *+' conftest.er1 >conftest.err
48938 rm -f conftest.er1
48939 cat conftest.err >&5
48940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48941 (exit $ac_status); } &&
48942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48944 (eval $ac_try) 2>&5
48945 ac_status=$?
48946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48947 (exit $ac_status); }; } &&
48948 { ac_try='test -s conftest$ac_exeext'
48949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48950 (eval $ac_try) 2>&5
48951 ac_status=$?
48952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48953 (exit $ac_status); }; }; then
48954 glibcxx_cv_func___builtin_sqrtl_link=yes
48955 else
48956 echo "$as_me: failed program was:" >&5
48957 sed 's/^/| /' conftest.$ac_ext >&5
48959 glibcxx_cv_func___builtin_sqrtl_link=no
48961 rm -f conftest.err conftest.$ac_objext \
48962 conftest$ac_exeext conftest.$ac_ext
48967 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
48968 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
48969 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
48970 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48971 cat >>confdefs.h <<_ACEOF
48972 #define ${ac_tr_func} 1
48973 _ACEOF
48980 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
48981 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
48982 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
48983 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
48984 echo $ECHO_N "(cached) $ECHO_C" >&6
48985 else
48989 ac_ext=cc
48990 ac_cpp='$CXXCPP $CPPFLAGS'
48991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48995 cat >conftest.$ac_ext <<_ACEOF
48996 /* confdefs.h. */
48997 _ACEOF
48998 cat confdefs.h >>conftest.$ac_ext
48999 cat >>conftest.$ac_ext <<_ACEOF
49000 /* end confdefs.h. */
49001 #include <math.h>
49003 main ()
49005 __builtin_sinf(0);
49007 return 0;
49009 _ACEOF
49010 rm -f conftest.$ac_objext
49011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49012 (eval $ac_compile) 2>conftest.er1
49013 ac_status=$?
49014 grep -v '^ *+' conftest.er1 >conftest.err
49015 rm -f conftest.er1
49016 cat conftest.err >&5
49017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49018 (exit $ac_status); } &&
49019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49021 (eval $ac_try) 2>&5
49022 ac_status=$?
49023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49024 (exit $ac_status); }; } &&
49025 { ac_try='test -s conftest.$ac_objext'
49026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49027 (eval $ac_try) 2>&5
49028 ac_status=$?
49029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030 (exit $ac_status); }; }; then
49031 glibcxx_cv_func___builtin_sinf_use=yes
49032 else
49033 echo "$as_me: failed program was:" >&5
49034 sed 's/^/| /' conftest.$ac_ext >&5
49036 glibcxx_cv_func___builtin_sinf_use=no
49038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49039 ac_ext=c
49040 ac_cpp='$CPP $CPPFLAGS'
49041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49049 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49050 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49051 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49052 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49053 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49054 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49055 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49056 echo $ECHO_N "(cached) $ECHO_C" >&6
49057 else
49059 if test x$gcc_no_link = xyes; then
49060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49062 { (exit 1); exit 1; }; }
49064 cat >conftest.$ac_ext <<_ACEOF
49065 /* confdefs.h. */
49066 _ACEOF
49067 cat confdefs.h >>conftest.$ac_ext
49068 cat >>conftest.$ac_ext <<_ACEOF
49069 /* end confdefs.h. */
49070 #include <math.h>
49072 main ()
49074 __builtin_sinf(0);
49076 return 0;
49078 _ACEOF
49079 rm -f conftest.$ac_objext conftest$ac_exeext
49080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49081 (eval $ac_link) 2>conftest.er1
49082 ac_status=$?
49083 grep -v '^ *+' conftest.er1 >conftest.err
49084 rm -f conftest.er1
49085 cat conftest.err >&5
49086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49087 (exit $ac_status); } &&
49088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49090 (eval $ac_try) 2>&5
49091 ac_status=$?
49092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49093 (exit $ac_status); }; } &&
49094 { ac_try='test -s conftest$ac_exeext'
49095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49096 (eval $ac_try) 2>&5
49097 ac_status=$?
49098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49099 (exit $ac_status); }; }; then
49100 glibcxx_cv_func___builtin_sinf_link=yes
49101 else
49102 echo "$as_me: failed program was:" >&5
49103 sed 's/^/| /' conftest.$ac_ext >&5
49105 glibcxx_cv_func___builtin_sinf_link=no
49107 rm -f conftest.err conftest.$ac_objext \
49108 conftest$ac_exeext conftest.$ac_ext
49113 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49114 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49115 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49116 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49117 cat >>confdefs.h <<_ACEOF
49118 #define ${ac_tr_func} 1
49119 _ACEOF
49125 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49126 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49127 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49128 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49129 echo $ECHO_N "(cached) $ECHO_C" >&6
49130 else
49134 ac_ext=cc
49135 ac_cpp='$CXXCPP $CPPFLAGS'
49136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49140 cat >conftest.$ac_ext <<_ACEOF
49141 /* confdefs.h. */
49142 _ACEOF
49143 cat confdefs.h >>conftest.$ac_ext
49144 cat >>conftest.$ac_ext <<_ACEOF
49145 /* end confdefs.h. */
49146 #include <math.h>
49148 main ()
49150 __builtin_sin(0);
49152 return 0;
49154 _ACEOF
49155 rm -f conftest.$ac_objext
49156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49157 (eval $ac_compile) 2>conftest.er1
49158 ac_status=$?
49159 grep -v '^ *+' conftest.er1 >conftest.err
49160 rm -f conftest.er1
49161 cat conftest.err >&5
49162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49163 (exit $ac_status); } &&
49164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49166 (eval $ac_try) 2>&5
49167 ac_status=$?
49168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49169 (exit $ac_status); }; } &&
49170 { ac_try='test -s conftest.$ac_objext'
49171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49172 (eval $ac_try) 2>&5
49173 ac_status=$?
49174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49175 (exit $ac_status); }; }; then
49176 glibcxx_cv_func___builtin_sin_use=yes
49177 else
49178 echo "$as_me: failed program was:" >&5
49179 sed 's/^/| /' conftest.$ac_ext >&5
49181 glibcxx_cv_func___builtin_sin_use=no
49183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49184 ac_ext=c
49185 ac_cpp='$CPP $CPPFLAGS'
49186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49194 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49195 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49196 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49197 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49198 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49199 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49200 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49201 echo $ECHO_N "(cached) $ECHO_C" >&6
49202 else
49204 if test x$gcc_no_link = xyes; then
49205 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49207 { (exit 1); exit 1; }; }
49209 cat >conftest.$ac_ext <<_ACEOF
49210 /* confdefs.h. */
49211 _ACEOF
49212 cat confdefs.h >>conftest.$ac_ext
49213 cat >>conftest.$ac_ext <<_ACEOF
49214 /* end confdefs.h. */
49215 #include <math.h>
49217 main ()
49219 __builtin_sin(0);
49221 return 0;
49223 _ACEOF
49224 rm -f conftest.$ac_objext conftest$ac_exeext
49225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49226 (eval $ac_link) 2>conftest.er1
49227 ac_status=$?
49228 grep -v '^ *+' conftest.er1 >conftest.err
49229 rm -f conftest.er1
49230 cat conftest.err >&5
49231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49232 (exit $ac_status); } &&
49233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49235 (eval $ac_try) 2>&5
49236 ac_status=$?
49237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49238 (exit $ac_status); }; } &&
49239 { ac_try='test -s conftest$ac_exeext'
49240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49241 (eval $ac_try) 2>&5
49242 ac_status=$?
49243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49244 (exit $ac_status); }; }; then
49245 glibcxx_cv_func___builtin_sin_link=yes
49246 else
49247 echo "$as_me: failed program was:" >&5
49248 sed 's/^/| /' conftest.$ac_ext >&5
49250 glibcxx_cv_func___builtin_sin_link=no
49252 rm -f conftest.err conftest.$ac_objext \
49253 conftest$ac_exeext conftest.$ac_ext
49258 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49259 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49260 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49261 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49262 cat >>confdefs.h <<_ACEOF
49263 #define ${ac_tr_func} 1
49264 _ACEOF
49270 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49271 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49272 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49273 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49274 echo $ECHO_N "(cached) $ECHO_C" >&6
49275 else
49279 ac_ext=cc
49280 ac_cpp='$CXXCPP $CPPFLAGS'
49281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49285 cat >conftest.$ac_ext <<_ACEOF
49286 /* confdefs.h. */
49287 _ACEOF
49288 cat confdefs.h >>conftest.$ac_ext
49289 cat >>conftest.$ac_ext <<_ACEOF
49290 /* end confdefs.h. */
49291 #include <math.h>
49293 main ()
49295 __builtin_sinl(0);
49297 return 0;
49299 _ACEOF
49300 rm -f conftest.$ac_objext
49301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49302 (eval $ac_compile) 2>conftest.er1
49303 ac_status=$?
49304 grep -v '^ *+' conftest.er1 >conftest.err
49305 rm -f conftest.er1
49306 cat conftest.err >&5
49307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49308 (exit $ac_status); } &&
49309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49311 (eval $ac_try) 2>&5
49312 ac_status=$?
49313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49314 (exit $ac_status); }; } &&
49315 { ac_try='test -s conftest.$ac_objext'
49316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49317 (eval $ac_try) 2>&5
49318 ac_status=$?
49319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49320 (exit $ac_status); }; }; then
49321 glibcxx_cv_func___builtin_sinl_use=yes
49322 else
49323 echo "$as_me: failed program was:" >&5
49324 sed 's/^/| /' conftest.$ac_ext >&5
49326 glibcxx_cv_func___builtin_sinl_use=no
49328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49329 ac_ext=c
49330 ac_cpp='$CPP $CPPFLAGS'
49331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49339 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
49340 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
49341 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
49342 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
49343 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
49344 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
49345 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
49346 echo $ECHO_N "(cached) $ECHO_C" >&6
49347 else
49349 if test x$gcc_no_link = xyes; then
49350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49352 { (exit 1); exit 1; }; }
49354 cat >conftest.$ac_ext <<_ACEOF
49355 /* confdefs.h. */
49356 _ACEOF
49357 cat confdefs.h >>conftest.$ac_ext
49358 cat >>conftest.$ac_ext <<_ACEOF
49359 /* end confdefs.h. */
49360 #include <math.h>
49362 main ()
49364 __builtin_sinl(0);
49366 return 0;
49368 _ACEOF
49369 rm -f conftest.$ac_objext conftest$ac_exeext
49370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49371 (eval $ac_link) 2>conftest.er1
49372 ac_status=$?
49373 grep -v '^ *+' conftest.er1 >conftest.err
49374 rm -f conftest.er1
49375 cat conftest.err >&5
49376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49377 (exit $ac_status); } &&
49378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49380 (eval $ac_try) 2>&5
49381 ac_status=$?
49382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49383 (exit $ac_status); }; } &&
49384 { ac_try='test -s conftest$ac_exeext'
49385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49386 (eval $ac_try) 2>&5
49387 ac_status=$?
49388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49389 (exit $ac_status); }; }; then
49390 glibcxx_cv_func___builtin_sinl_link=yes
49391 else
49392 echo "$as_me: failed program was:" >&5
49393 sed 's/^/| /' conftest.$ac_ext >&5
49395 glibcxx_cv_func___builtin_sinl_link=no
49397 rm -f conftest.err conftest.$ac_objext \
49398 conftest$ac_exeext conftest.$ac_ext
49403 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
49404 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
49405 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
49406 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49407 cat >>confdefs.h <<_ACEOF
49408 #define ${ac_tr_func} 1
49409 _ACEOF
49416 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
49417 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
49418 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
49419 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
49420 echo $ECHO_N "(cached) $ECHO_C" >&6
49421 else
49425 ac_ext=cc
49426 ac_cpp='$CXXCPP $CPPFLAGS'
49427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49431 cat >conftest.$ac_ext <<_ACEOF
49432 /* confdefs.h. */
49433 _ACEOF
49434 cat confdefs.h >>conftest.$ac_ext
49435 cat >>conftest.$ac_ext <<_ACEOF
49436 /* end confdefs.h. */
49437 #include <math.h>
49439 main ()
49441 __builtin_cosf(0);
49443 return 0;
49445 _ACEOF
49446 rm -f conftest.$ac_objext
49447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49448 (eval $ac_compile) 2>conftest.er1
49449 ac_status=$?
49450 grep -v '^ *+' conftest.er1 >conftest.err
49451 rm -f conftest.er1
49452 cat conftest.err >&5
49453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49454 (exit $ac_status); } &&
49455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49457 (eval $ac_try) 2>&5
49458 ac_status=$?
49459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49460 (exit $ac_status); }; } &&
49461 { ac_try='test -s conftest.$ac_objext'
49462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49463 (eval $ac_try) 2>&5
49464 ac_status=$?
49465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49466 (exit $ac_status); }; }; then
49467 glibcxx_cv_func___builtin_cosf_use=yes
49468 else
49469 echo "$as_me: failed program was:" >&5
49470 sed 's/^/| /' conftest.$ac_ext >&5
49472 glibcxx_cv_func___builtin_cosf_use=no
49474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49475 ac_ext=c
49476 ac_cpp='$CPP $CPPFLAGS'
49477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49485 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
49486 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
49487 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
49488 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
49489 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
49490 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
49491 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
49492 echo $ECHO_N "(cached) $ECHO_C" >&6
49493 else
49495 if test x$gcc_no_link = xyes; then
49496 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49497 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49498 { (exit 1); exit 1; }; }
49500 cat >conftest.$ac_ext <<_ACEOF
49501 /* confdefs.h. */
49502 _ACEOF
49503 cat confdefs.h >>conftest.$ac_ext
49504 cat >>conftest.$ac_ext <<_ACEOF
49505 /* end confdefs.h. */
49506 #include <math.h>
49508 main ()
49510 __builtin_cosf(0);
49512 return 0;
49514 _ACEOF
49515 rm -f conftest.$ac_objext conftest$ac_exeext
49516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49517 (eval $ac_link) 2>conftest.er1
49518 ac_status=$?
49519 grep -v '^ *+' conftest.er1 >conftest.err
49520 rm -f conftest.er1
49521 cat conftest.err >&5
49522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523 (exit $ac_status); } &&
49524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49526 (eval $ac_try) 2>&5
49527 ac_status=$?
49528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49529 (exit $ac_status); }; } &&
49530 { ac_try='test -s conftest$ac_exeext'
49531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49532 (eval $ac_try) 2>&5
49533 ac_status=$?
49534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49535 (exit $ac_status); }; }; then
49536 glibcxx_cv_func___builtin_cosf_link=yes
49537 else
49538 echo "$as_me: failed program was:" >&5
49539 sed 's/^/| /' conftest.$ac_ext >&5
49541 glibcxx_cv_func___builtin_cosf_link=no
49543 rm -f conftest.err conftest.$ac_objext \
49544 conftest$ac_exeext conftest.$ac_ext
49549 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
49550 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
49551 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
49552 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49553 cat >>confdefs.h <<_ACEOF
49554 #define ${ac_tr_func} 1
49555 _ACEOF
49561 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
49562 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
49563 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
49564 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
49565 echo $ECHO_N "(cached) $ECHO_C" >&6
49566 else
49570 ac_ext=cc
49571 ac_cpp='$CXXCPP $CPPFLAGS'
49572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49576 cat >conftest.$ac_ext <<_ACEOF
49577 /* confdefs.h. */
49578 _ACEOF
49579 cat confdefs.h >>conftest.$ac_ext
49580 cat >>conftest.$ac_ext <<_ACEOF
49581 /* end confdefs.h. */
49582 #include <math.h>
49584 main ()
49586 __builtin_cos(0);
49588 return 0;
49590 _ACEOF
49591 rm -f conftest.$ac_objext
49592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49593 (eval $ac_compile) 2>conftest.er1
49594 ac_status=$?
49595 grep -v '^ *+' conftest.er1 >conftest.err
49596 rm -f conftest.er1
49597 cat conftest.err >&5
49598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49599 (exit $ac_status); } &&
49600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49602 (eval $ac_try) 2>&5
49603 ac_status=$?
49604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49605 (exit $ac_status); }; } &&
49606 { ac_try='test -s conftest.$ac_objext'
49607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49608 (eval $ac_try) 2>&5
49609 ac_status=$?
49610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49611 (exit $ac_status); }; }; then
49612 glibcxx_cv_func___builtin_cos_use=yes
49613 else
49614 echo "$as_me: failed program was:" >&5
49615 sed 's/^/| /' conftest.$ac_ext >&5
49617 glibcxx_cv_func___builtin_cos_use=no
49619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49620 ac_ext=c
49621 ac_cpp='$CPP $CPPFLAGS'
49622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49630 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
49631 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
49632 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
49633 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
49634 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
49635 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
49636 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
49637 echo $ECHO_N "(cached) $ECHO_C" >&6
49638 else
49640 if test x$gcc_no_link = xyes; then
49641 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49643 { (exit 1); exit 1; }; }
49645 cat >conftest.$ac_ext <<_ACEOF
49646 /* confdefs.h. */
49647 _ACEOF
49648 cat confdefs.h >>conftest.$ac_ext
49649 cat >>conftest.$ac_ext <<_ACEOF
49650 /* end confdefs.h. */
49651 #include <math.h>
49653 main ()
49655 __builtin_cos(0);
49657 return 0;
49659 _ACEOF
49660 rm -f conftest.$ac_objext conftest$ac_exeext
49661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49662 (eval $ac_link) 2>conftest.er1
49663 ac_status=$?
49664 grep -v '^ *+' conftest.er1 >conftest.err
49665 rm -f conftest.er1
49666 cat conftest.err >&5
49667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49668 (exit $ac_status); } &&
49669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49671 (eval $ac_try) 2>&5
49672 ac_status=$?
49673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49674 (exit $ac_status); }; } &&
49675 { ac_try='test -s conftest$ac_exeext'
49676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49677 (eval $ac_try) 2>&5
49678 ac_status=$?
49679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49680 (exit $ac_status); }; }; then
49681 glibcxx_cv_func___builtin_cos_link=yes
49682 else
49683 echo "$as_me: failed program was:" >&5
49684 sed 's/^/| /' conftest.$ac_ext >&5
49686 glibcxx_cv_func___builtin_cos_link=no
49688 rm -f conftest.err conftest.$ac_objext \
49689 conftest$ac_exeext conftest.$ac_ext
49694 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
49695 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
49696 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
49697 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49698 cat >>confdefs.h <<_ACEOF
49699 #define ${ac_tr_func} 1
49700 _ACEOF
49706 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
49707 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
49708 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
49709 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
49710 echo $ECHO_N "(cached) $ECHO_C" >&6
49711 else
49715 ac_ext=cc
49716 ac_cpp='$CXXCPP $CPPFLAGS'
49717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49721 cat >conftest.$ac_ext <<_ACEOF
49722 /* confdefs.h. */
49723 _ACEOF
49724 cat confdefs.h >>conftest.$ac_ext
49725 cat >>conftest.$ac_ext <<_ACEOF
49726 /* end confdefs.h. */
49727 #include <math.h>
49729 main ()
49731 __builtin_cosl(0);
49733 return 0;
49735 _ACEOF
49736 rm -f conftest.$ac_objext
49737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49738 (eval $ac_compile) 2>conftest.er1
49739 ac_status=$?
49740 grep -v '^ *+' conftest.er1 >conftest.err
49741 rm -f conftest.er1
49742 cat conftest.err >&5
49743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49744 (exit $ac_status); } &&
49745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
49746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49747 (eval $ac_try) 2>&5
49748 ac_status=$?
49749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49750 (exit $ac_status); }; } &&
49751 { ac_try='test -s conftest.$ac_objext'
49752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49753 (eval $ac_try) 2>&5
49754 ac_status=$?
49755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49756 (exit $ac_status); }; }; then
49757 glibcxx_cv_func___builtin_cosl_use=yes
49758 else
49759 echo "$as_me: failed program was:" >&5
49760 sed 's/^/| /' conftest.$ac_ext >&5
49762 glibcxx_cv_func___builtin_cosl_use=no
49764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49765 ac_ext=c
49766 ac_cpp='$CPP $CPPFLAGS'
49767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49775 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
49776 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
49777 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
49778 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
49779 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
49780 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
49781 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
49782 echo $ECHO_N "(cached) $ECHO_C" >&6
49783 else
49785 if test x$gcc_no_link = xyes; then
49786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49788 { (exit 1); exit 1; }; }
49790 cat >conftest.$ac_ext <<_ACEOF
49791 /* confdefs.h. */
49792 _ACEOF
49793 cat confdefs.h >>conftest.$ac_ext
49794 cat >>conftest.$ac_ext <<_ACEOF
49795 /* end confdefs.h. */
49796 #include <math.h>
49798 main ()
49800 __builtin_cosl(0);
49802 return 0;
49804 _ACEOF
49805 rm -f conftest.$ac_objext conftest$ac_exeext
49806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49807 (eval $ac_link) 2>conftest.er1
49808 ac_status=$?
49809 grep -v '^ *+' conftest.er1 >conftest.err
49810 rm -f conftest.er1
49811 cat conftest.err >&5
49812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49813 (exit $ac_status); } &&
49814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49816 (eval $ac_try) 2>&5
49817 ac_status=$?
49818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49819 (exit $ac_status); }; } &&
49820 { ac_try='test -s conftest$ac_exeext'
49821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49822 (eval $ac_try) 2>&5
49823 ac_status=$?
49824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49825 (exit $ac_status); }; }; then
49826 glibcxx_cv_func___builtin_cosl_link=yes
49827 else
49828 echo "$as_me: failed program was:" >&5
49829 sed 's/^/| /' conftest.$ac_ext >&5
49831 glibcxx_cv_func___builtin_cosl_link=no
49833 rm -f conftest.err conftest.$ac_objext \
49834 conftest$ac_exeext conftest.$ac_ext
49839 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
49840 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
49841 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
49842 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49843 cat >>confdefs.h <<_ACEOF
49844 #define ${ac_tr_func} 1
49845 _ACEOF
49851 dummyvar=no
49852 if test x$dummyvar = x"yes"; then
49853 cat >>confdefs.h <<\_ACEOF
49854 #define HAVE___BUILTIN_ABS 1
49855 _ACEOF
49857 cat >>confdefs.h <<\_ACEOF
49858 #define HAVE___BUILTIN_LABS 1
49859 _ACEOF
49861 cat >>confdefs.h <<\_ACEOF
49862 #define HAVE___BUILTIN_COS 1
49863 _ACEOF
49865 cat >>confdefs.h <<\_ACEOF
49866 #define HAVE___BUILTIN_COSF 1
49867 _ACEOF
49869 cat >>confdefs.h <<\_ACEOF
49870 #define HAVE___BUILTIN_COSL 1
49871 _ACEOF
49873 cat >>confdefs.h <<\_ACEOF
49874 #define HAVE___BUILTIN_FABS 1
49875 _ACEOF
49877 cat >>confdefs.h <<\_ACEOF
49878 #define HAVE___BUILTIN_FABSF 1
49879 _ACEOF
49881 cat >>confdefs.h <<\_ACEOF
49882 #define HAVE___BUILTIN_FABSL 1
49883 _ACEOF
49885 cat >>confdefs.h <<\_ACEOF
49886 #define HAVE___BUILTIN_SIN 1
49887 _ACEOF
49889 cat >>confdefs.h <<\_ACEOF
49890 #define HAVE___BUILTIN_SINF 1
49891 _ACEOF
49893 cat >>confdefs.h <<\_ACEOF
49894 #define HAVE___BUILTIN_SINL 1
49895 _ACEOF
49897 cat >>confdefs.h <<\_ACEOF
49898 #define HAVE___BUILTIN_SQRT 1
49899 _ACEOF
49901 cat >>confdefs.h <<\_ACEOF
49902 #define HAVE___BUILTIN_SQRTF 1
49903 _ACEOF
49905 cat >>confdefs.h <<\_ACEOF
49906 #define HAVE___BUILTIN_SQRTL 1
49907 _ACEOF
49913 echo "$as_me:$LINENO: checking for main in -lm" >&5
49914 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
49915 if test "${ac_cv_lib_m_main+set}" = set; then
49916 echo $ECHO_N "(cached) $ECHO_C" >&6
49917 else
49918 ac_check_lib_save_LIBS=$LIBS
49919 LIBS="-lm $LIBS"
49920 if test x$gcc_no_link = xyes; then
49921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49923 { (exit 1); exit 1; }; }
49925 cat >conftest.$ac_ext <<_ACEOF
49926 /* confdefs.h. */
49927 _ACEOF
49928 cat confdefs.h >>conftest.$ac_ext
49929 cat >>conftest.$ac_ext <<_ACEOF
49930 /* end confdefs.h. */
49934 main ()
49936 main ();
49938 return 0;
49940 _ACEOF
49941 rm -f conftest.$ac_objext conftest$ac_exeext
49942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49943 (eval $ac_link) 2>conftest.er1
49944 ac_status=$?
49945 grep -v '^ *+' conftest.er1 >conftest.err
49946 rm -f conftest.er1
49947 cat conftest.err >&5
49948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49949 (exit $ac_status); } &&
49950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49952 (eval $ac_try) 2>&5
49953 ac_status=$?
49954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49955 (exit $ac_status); }; } &&
49956 { ac_try='test -s conftest$ac_exeext'
49957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49958 (eval $ac_try) 2>&5
49959 ac_status=$?
49960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49961 (exit $ac_status); }; }; then
49962 ac_cv_lib_m_main=yes
49963 else
49964 echo "$as_me: failed program was:" >&5
49965 sed 's/^/| /' conftest.$ac_ext >&5
49967 ac_cv_lib_m_main=no
49969 rm -f conftest.err conftest.$ac_objext \
49970 conftest$ac_exeext conftest.$ac_ext
49971 LIBS=$ac_check_lib_save_LIBS
49973 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
49974 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
49975 if test $ac_cv_lib_m_main = yes; then
49976 cat >>confdefs.h <<_ACEOF
49977 #define HAVE_LIBM 1
49978 _ACEOF
49980 LIBS="-lm $LIBS"
49986 for ac_func in nan copysignf
49988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49989 echo "$as_me:$LINENO: checking for $ac_func" >&5
49990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49991 if eval "test \"\${$as_ac_var+set}\" = set"; then
49992 echo $ECHO_N "(cached) $ECHO_C" >&6
49993 else
49994 if test x$gcc_no_link = xyes; then
49995 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49997 { (exit 1); exit 1; }; }
49999 cat >conftest.$ac_ext <<_ACEOF
50000 /* confdefs.h. */
50001 _ACEOF
50002 cat confdefs.h >>conftest.$ac_ext
50003 cat >>conftest.$ac_ext <<_ACEOF
50004 /* end confdefs.h. */
50005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50007 #define $ac_func innocuous_$ac_func
50009 /* System header to define __stub macros and hopefully few prototypes,
50010 which can conflict with char $ac_func (); below.
50011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50012 <limits.h> exists even on freestanding compilers. */
50014 #ifdef __STDC__
50015 # include <limits.h>
50016 #else
50017 # include <assert.h>
50018 #endif
50020 #undef $ac_func
50022 /* Override any gcc2 internal prototype to avoid an error. */
50023 #ifdef __cplusplus
50024 extern "C"
50026 #endif
50027 /* We use char because int might match the return type of a gcc2
50028 builtin and then its argument prototype would still apply. */
50029 char $ac_func ();
50030 /* The GNU C library defines this for functions which it implements
50031 to always fail with ENOSYS. Some functions are actually named
50032 something starting with __ and the normal name is an alias. */
50033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50034 choke me
50035 #else
50036 char (*f) () = $ac_func;
50037 #endif
50038 #ifdef __cplusplus
50040 #endif
50043 main ()
50045 return f != $ac_func;
50047 return 0;
50049 _ACEOF
50050 rm -f conftest.$ac_objext conftest$ac_exeext
50051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50052 (eval $ac_link) 2>conftest.er1
50053 ac_status=$?
50054 grep -v '^ *+' conftest.er1 >conftest.err
50055 rm -f conftest.er1
50056 cat conftest.err >&5
50057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50058 (exit $ac_status); } &&
50059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50061 (eval $ac_try) 2>&5
50062 ac_status=$?
50063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50064 (exit $ac_status); }; } &&
50065 { ac_try='test -s conftest$ac_exeext'
50066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50067 (eval $ac_try) 2>&5
50068 ac_status=$?
50069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070 (exit $ac_status); }; }; then
50071 eval "$as_ac_var=yes"
50072 else
50073 echo "$as_me: failed program was:" >&5
50074 sed 's/^/| /' conftest.$ac_ext >&5
50076 eval "$as_ac_var=no"
50078 rm -f conftest.err conftest.$ac_objext \
50079 conftest$ac_exeext conftest.$ac_ext
50081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50083 if test `eval echo '${'$as_ac_var'}'` = yes; then
50084 cat >>confdefs.h <<_ACEOF
50085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50086 _ACEOF
50088 else
50089 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50091 done
50095 for ac_func in __signbit
50097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50098 echo "$as_me:$LINENO: checking for $ac_func" >&5
50099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50100 if eval "test \"\${$as_ac_var+set}\" = set"; then
50101 echo $ECHO_N "(cached) $ECHO_C" >&6
50102 else
50103 if test x$gcc_no_link = xyes; then
50104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50106 { (exit 1); exit 1; }; }
50108 cat >conftest.$ac_ext <<_ACEOF
50109 /* confdefs.h. */
50110 _ACEOF
50111 cat confdefs.h >>conftest.$ac_ext
50112 cat >>conftest.$ac_ext <<_ACEOF
50113 /* end confdefs.h. */
50114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50116 #define $ac_func innocuous_$ac_func
50118 /* System header to define __stub macros and hopefully few prototypes,
50119 which can conflict with char $ac_func (); below.
50120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50121 <limits.h> exists even on freestanding compilers. */
50123 #ifdef __STDC__
50124 # include <limits.h>
50125 #else
50126 # include <assert.h>
50127 #endif
50129 #undef $ac_func
50131 /* Override any gcc2 internal prototype to avoid an error. */
50132 #ifdef __cplusplus
50133 extern "C"
50135 #endif
50136 /* We use char because int might match the return type of a gcc2
50137 builtin and then its argument prototype would still apply. */
50138 char $ac_func ();
50139 /* The GNU C library defines this for functions which it implements
50140 to always fail with ENOSYS. Some functions are actually named
50141 something starting with __ and the normal name is an alias. */
50142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50143 choke me
50144 #else
50145 char (*f) () = $ac_func;
50146 #endif
50147 #ifdef __cplusplus
50149 #endif
50152 main ()
50154 return f != $ac_func;
50156 return 0;
50158 _ACEOF
50159 rm -f conftest.$ac_objext conftest$ac_exeext
50160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50161 (eval $ac_link) 2>conftest.er1
50162 ac_status=$?
50163 grep -v '^ *+' conftest.er1 >conftest.err
50164 rm -f conftest.er1
50165 cat conftest.err >&5
50166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50167 (exit $ac_status); } &&
50168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50170 (eval $ac_try) 2>&5
50171 ac_status=$?
50172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50173 (exit $ac_status); }; } &&
50174 { ac_try='test -s conftest$ac_exeext'
50175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50176 (eval $ac_try) 2>&5
50177 ac_status=$?
50178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50179 (exit $ac_status); }; }; then
50180 eval "$as_ac_var=yes"
50181 else
50182 echo "$as_me: failed program was:" >&5
50183 sed 's/^/| /' conftest.$ac_ext >&5
50185 eval "$as_ac_var=no"
50187 rm -f conftest.err conftest.$ac_objext \
50188 conftest$ac_exeext conftest.$ac_ext
50190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50192 if test `eval echo '${'$as_ac_var'}'` = yes; then
50193 cat >>confdefs.h <<_ACEOF
50194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50195 _ACEOF
50197 else
50198 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50200 done
50203 for ac_func in __signbitf
50205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50206 echo "$as_me:$LINENO: checking for $ac_func" >&5
50207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50208 if eval "test \"\${$as_ac_var+set}\" = set"; then
50209 echo $ECHO_N "(cached) $ECHO_C" >&6
50210 else
50211 if test x$gcc_no_link = xyes; then
50212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50214 { (exit 1); exit 1; }; }
50216 cat >conftest.$ac_ext <<_ACEOF
50217 /* confdefs.h. */
50218 _ACEOF
50219 cat confdefs.h >>conftest.$ac_ext
50220 cat >>conftest.$ac_ext <<_ACEOF
50221 /* end confdefs.h. */
50222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50224 #define $ac_func innocuous_$ac_func
50226 /* System header to define __stub macros and hopefully few prototypes,
50227 which can conflict with char $ac_func (); below.
50228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50229 <limits.h> exists even on freestanding compilers. */
50231 #ifdef __STDC__
50232 # include <limits.h>
50233 #else
50234 # include <assert.h>
50235 #endif
50237 #undef $ac_func
50239 /* Override any gcc2 internal prototype to avoid an error. */
50240 #ifdef __cplusplus
50241 extern "C"
50243 #endif
50244 /* We use char because int might match the return type of a gcc2
50245 builtin and then its argument prototype would still apply. */
50246 char $ac_func ();
50247 /* The GNU C library defines this for functions which it implements
50248 to always fail with ENOSYS. Some functions are actually named
50249 something starting with __ and the normal name is an alias. */
50250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50251 choke me
50252 #else
50253 char (*f) () = $ac_func;
50254 #endif
50255 #ifdef __cplusplus
50257 #endif
50260 main ()
50262 return f != $ac_func;
50264 return 0;
50266 _ACEOF
50267 rm -f conftest.$ac_objext conftest$ac_exeext
50268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50269 (eval $ac_link) 2>conftest.er1
50270 ac_status=$?
50271 grep -v '^ *+' conftest.er1 >conftest.err
50272 rm -f conftest.er1
50273 cat conftest.err >&5
50274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50275 (exit $ac_status); } &&
50276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50278 (eval $ac_try) 2>&5
50279 ac_status=$?
50280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50281 (exit $ac_status); }; } &&
50282 { ac_try='test -s conftest$ac_exeext'
50283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50284 (eval $ac_try) 2>&5
50285 ac_status=$?
50286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50287 (exit $ac_status); }; }; then
50288 eval "$as_ac_var=yes"
50289 else
50290 echo "$as_me: failed program was:" >&5
50291 sed 's/^/| /' conftest.$ac_ext >&5
50293 eval "$as_ac_var=no"
50295 rm -f conftest.err conftest.$ac_objext \
50296 conftest$ac_exeext conftest.$ac_ext
50298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50300 if test `eval echo '${'$as_ac_var'}'` = yes; then
50301 cat >>confdefs.h <<_ACEOF
50302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50303 _ACEOF
50305 else
50306 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50308 done
50311 if test x$ac_cv_func_copysignl = x"yes"; then
50313 for ac_func in __signbitl
50315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50316 echo "$as_me:$LINENO: checking for $ac_func" >&5
50317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50318 if eval "test \"\${$as_ac_var+set}\" = set"; then
50319 echo $ECHO_N "(cached) $ECHO_C" >&6
50320 else
50321 if test x$gcc_no_link = xyes; then
50322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50324 { (exit 1); exit 1; }; }
50326 cat >conftest.$ac_ext <<_ACEOF
50327 /* confdefs.h. */
50328 _ACEOF
50329 cat confdefs.h >>conftest.$ac_ext
50330 cat >>conftest.$ac_ext <<_ACEOF
50331 /* end confdefs.h. */
50332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50334 #define $ac_func innocuous_$ac_func
50336 /* System header to define __stub macros and hopefully few prototypes,
50337 which can conflict with char $ac_func (); below.
50338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50339 <limits.h> exists even on freestanding compilers. */
50341 #ifdef __STDC__
50342 # include <limits.h>
50343 #else
50344 # include <assert.h>
50345 #endif
50347 #undef $ac_func
50349 /* Override any gcc2 internal prototype to avoid an error. */
50350 #ifdef __cplusplus
50351 extern "C"
50353 #endif
50354 /* We use char because int might match the return type of a gcc2
50355 builtin and then its argument prototype would still apply. */
50356 char $ac_func ();
50357 /* The GNU C library defines this for functions which it implements
50358 to always fail with ENOSYS. Some functions are actually named
50359 something starting with __ and the normal name is an alias. */
50360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50361 choke me
50362 #else
50363 char (*f) () = $ac_func;
50364 #endif
50365 #ifdef __cplusplus
50367 #endif
50370 main ()
50372 return f != $ac_func;
50374 return 0;
50376 _ACEOF
50377 rm -f conftest.$ac_objext conftest$ac_exeext
50378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50379 (eval $ac_link) 2>conftest.er1
50380 ac_status=$?
50381 grep -v '^ *+' conftest.er1 >conftest.err
50382 rm -f conftest.er1
50383 cat conftest.err >&5
50384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50385 (exit $ac_status); } &&
50386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50388 (eval $ac_try) 2>&5
50389 ac_status=$?
50390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50391 (exit $ac_status); }; } &&
50392 { ac_try='test -s conftest$ac_exeext'
50393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50394 (eval $ac_try) 2>&5
50395 ac_status=$?
50396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50397 (exit $ac_status); }; }; then
50398 eval "$as_ac_var=yes"
50399 else
50400 echo "$as_me: failed program was:" >&5
50401 sed 's/^/| /' conftest.$ac_ext >&5
50403 eval "$as_ac_var=no"
50405 rm -f conftest.err conftest.$ac_objext \
50406 conftest$ac_exeext conftest.$ac_ext
50408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50410 if test `eval echo '${'$as_ac_var'}'` = yes; then
50411 cat >>confdefs.h <<_ACEOF
50412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50413 _ACEOF
50415 else
50416 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
50418 done
50422 # XXX Review this. Nothing uses it.
50423 if test -n "$LIBMATHOBJS"; then
50424 need_libmath=yes
50429 # Test wchar.h for mbstate_t, which is needed for char_traits and
50430 # others even if wchar_t support is not on.
50431 echo "$as_me:$LINENO: checking for mbstate_t" >&5
50432 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
50433 cat >conftest.$ac_ext <<_ACEOF
50434 /* confdefs.h. */
50435 _ACEOF
50436 cat confdefs.h >>conftest.$ac_ext
50437 cat >>conftest.$ac_ext <<_ACEOF
50438 /* end confdefs.h. */
50439 #include <wchar.h>
50441 main ()
50443 mbstate_t teststate;
50445 return 0;
50447 _ACEOF
50448 rm -f conftest.$ac_objext
50449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50450 (eval $ac_compile) 2>conftest.er1
50451 ac_status=$?
50452 grep -v '^ *+' conftest.er1 >conftest.err
50453 rm -f conftest.er1
50454 cat conftest.err >&5
50455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50456 (exit $ac_status); } &&
50457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50459 (eval $ac_try) 2>&5
50460 ac_status=$?
50461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50462 (exit $ac_status); }; } &&
50463 { ac_try='test -s conftest.$ac_objext'
50464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50465 (eval $ac_try) 2>&5
50466 ac_status=$?
50467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50468 (exit $ac_status); }; }; then
50469 have_mbstate_t=yes
50470 else
50471 echo "$as_me: failed program was:" >&5
50472 sed 's/^/| /' conftest.$ac_ext >&5
50474 have_mbstate_t=no
50476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50477 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
50478 echo "${ECHO_T}$have_mbstate_t" >&6
50479 if test x"$have_mbstate_t" = xyes; then
50480 cat >>confdefs.h <<\_ACEOF
50481 #define HAVE_MBSTATE_T 1
50482 _ACEOF
50486 # Sanity check for existence of ISO C99 headers for extended encoding.
50488 for ac_header in wchar.h
50490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50492 echo "$as_me:$LINENO: checking for $ac_header" >&5
50493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50495 echo $ECHO_N "(cached) $ECHO_C" >&6
50497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50499 else
50500 # Is the header compilable?
50501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50503 cat >conftest.$ac_ext <<_ACEOF
50504 /* confdefs.h. */
50505 _ACEOF
50506 cat confdefs.h >>conftest.$ac_ext
50507 cat >>conftest.$ac_ext <<_ACEOF
50508 /* end confdefs.h. */
50509 $ac_includes_default
50510 #include <$ac_header>
50511 _ACEOF
50512 rm -f conftest.$ac_objext
50513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50514 (eval $ac_compile) 2>conftest.er1
50515 ac_status=$?
50516 grep -v '^ *+' conftest.er1 >conftest.err
50517 rm -f conftest.er1
50518 cat conftest.err >&5
50519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50520 (exit $ac_status); } &&
50521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50523 (eval $ac_try) 2>&5
50524 ac_status=$?
50525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50526 (exit $ac_status); }; } &&
50527 { ac_try='test -s conftest.$ac_objext'
50528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50529 (eval $ac_try) 2>&5
50530 ac_status=$?
50531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50532 (exit $ac_status); }; }; then
50533 ac_header_compiler=yes
50534 else
50535 echo "$as_me: failed program was:" >&5
50536 sed 's/^/| /' conftest.$ac_ext >&5
50538 ac_header_compiler=no
50540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50542 echo "${ECHO_T}$ac_header_compiler" >&6
50544 # Is the header present?
50545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50547 cat >conftest.$ac_ext <<_ACEOF
50548 /* confdefs.h. */
50549 _ACEOF
50550 cat confdefs.h >>conftest.$ac_ext
50551 cat >>conftest.$ac_ext <<_ACEOF
50552 /* end confdefs.h. */
50553 #include <$ac_header>
50554 _ACEOF
50555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50557 ac_status=$?
50558 grep -v '^ *+' conftest.er1 >conftest.err
50559 rm -f conftest.er1
50560 cat conftest.err >&5
50561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50562 (exit $ac_status); } >/dev/null; then
50563 if test -s conftest.err; then
50564 ac_cpp_err=$ac_c_preproc_warn_flag
50565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50566 else
50567 ac_cpp_err=
50569 else
50570 ac_cpp_err=yes
50572 if test -z "$ac_cpp_err"; then
50573 ac_header_preproc=yes
50574 else
50575 echo "$as_me: failed program was:" >&5
50576 sed 's/^/| /' conftest.$ac_ext >&5
50578 ac_header_preproc=no
50580 rm -f conftest.err conftest.$ac_ext
50581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50582 echo "${ECHO_T}$ac_header_preproc" >&6
50584 # So? What about this header?
50585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50586 yes:no: )
50587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50591 ac_header_preproc=yes
50593 no:yes:* )
50594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50607 cat <<\_ASBOX
50608 ## ----------------------------------------- ##
50609 ## Report this to the package-unused lists. ##
50610 ## ----------------------------------------- ##
50611 _ASBOX
50613 sed "s/^/$as_me: WARNING: /" >&2
50615 esac
50616 echo "$as_me:$LINENO: checking for $ac_header" >&5
50617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50619 echo $ECHO_N "(cached) $ECHO_C" >&6
50620 else
50621 eval "$as_ac_Header=\$ac_header_preproc"
50623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50628 cat >>confdefs.h <<_ACEOF
50629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50630 _ACEOF
50631 ac_has_wchar_h=yes
50632 else
50633 ac_has_wchar_h=no
50636 done
50639 for ac_header in wctype.h
50641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50643 echo "$as_me:$LINENO: checking for $ac_header" >&5
50644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50646 echo $ECHO_N "(cached) $ECHO_C" >&6
50648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50650 else
50651 # Is the header compilable?
50652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50654 cat >conftest.$ac_ext <<_ACEOF
50655 /* confdefs.h. */
50656 _ACEOF
50657 cat confdefs.h >>conftest.$ac_ext
50658 cat >>conftest.$ac_ext <<_ACEOF
50659 /* end confdefs.h. */
50660 $ac_includes_default
50661 #include <$ac_header>
50662 _ACEOF
50663 rm -f conftest.$ac_objext
50664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50665 (eval $ac_compile) 2>conftest.er1
50666 ac_status=$?
50667 grep -v '^ *+' conftest.er1 >conftest.err
50668 rm -f conftest.er1
50669 cat conftest.err >&5
50670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50671 (exit $ac_status); } &&
50672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50674 (eval $ac_try) 2>&5
50675 ac_status=$?
50676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50677 (exit $ac_status); }; } &&
50678 { ac_try='test -s conftest.$ac_objext'
50679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50680 (eval $ac_try) 2>&5
50681 ac_status=$?
50682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50683 (exit $ac_status); }; }; then
50684 ac_header_compiler=yes
50685 else
50686 echo "$as_me: failed program was:" >&5
50687 sed 's/^/| /' conftest.$ac_ext >&5
50689 ac_header_compiler=no
50691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50693 echo "${ECHO_T}$ac_header_compiler" >&6
50695 # Is the header present?
50696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50698 cat >conftest.$ac_ext <<_ACEOF
50699 /* confdefs.h. */
50700 _ACEOF
50701 cat confdefs.h >>conftest.$ac_ext
50702 cat >>conftest.$ac_ext <<_ACEOF
50703 /* end confdefs.h. */
50704 #include <$ac_header>
50705 _ACEOF
50706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50708 ac_status=$?
50709 grep -v '^ *+' conftest.er1 >conftest.err
50710 rm -f conftest.er1
50711 cat conftest.err >&5
50712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50713 (exit $ac_status); } >/dev/null; then
50714 if test -s conftest.err; then
50715 ac_cpp_err=$ac_c_preproc_warn_flag
50716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50717 else
50718 ac_cpp_err=
50720 else
50721 ac_cpp_err=yes
50723 if test -z "$ac_cpp_err"; then
50724 ac_header_preproc=yes
50725 else
50726 echo "$as_me: failed program was:" >&5
50727 sed 's/^/| /' conftest.$ac_ext >&5
50729 ac_header_preproc=no
50731 rm -f conftest.err conftest.$ac_ext
50732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50733 echo "${ECHO_T}$ac_header_preproc" >&6
50735 # So? What about this header?
50736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50737 yes:no: )
50738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50742 ac_header_preproc=yes
50744 no:yes:* )
50745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50758 cat <<\_ASBOX
50759 ## ----------------------------------------- ##
50760 ## Report this to the package-unused lists. ##
50761 ## ----------------------------------------- ##
50762 _ASBOX
50764 sed "s/^/$as_me: WARNING: /" >&2
50766 esac
50767 echo "$as_me:$LINENO: checking for $ac_header" >&5
50768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50770 echo $ECHO_N "(cached) $ECHO_C" >&6
50771 else
50772 eval "$as_ac_Header=\$ac_header_preproc"
50774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50779 cat >>confdefs.h <<_ACEOF
50780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50781 _ACEOF
50782 ac_has_wctype_h=yes
50783 else
50784 ac_has_wctype_h=no
50787 done
50790 # Only continue checking if the ISO C99 headers exist and support is on.
50791 if test x"$ac_has_wchar_h" = xyes &&
50792 test x"$ac_has_wctype_h" = xyes &&
50793 test x"$enable_c_mbchar" != xno; then
50795 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
50796 # numeric_limits can instantiate type_traits<wchar_t>
50797 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
50798 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
50799 cat >conftest.$ac_ext <<_ACEOF
50800 /* confdefs.h. */
50801 _ACEOF
50802 cat confdefs.h >>conftest.$ac_ext
50803 cat >>conftest.$ac_ext <<_ACEOF
50804 /* end confdefs.h. */
50805 #include <wchar.h>
50807 main ()
50809 int i = WCHAR_MIN; int j = WCHAR_MAX;
50811 return 0;
50813 _ACEOF
50814 rm -f conftest.$ac_objext
50815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50816 (eval $ac_compile) 2>conftest.er1
50817 ac_status=$?
50818 grep -v '^ *+' conftest.er1 >conftest.err
50819 rm -f conftest.er1
50820 cat conftest.err >&5
50821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50822 (exit $ac_status); } &&
50823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50825 (eval $ac_try) 2>&5
50826 ac_status=$?
50827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50828 (exit $ac_status); }; } &&
50829 { ac_try='test -s conftest.$ac_objext'
50830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50831 (eval $ac_try) 2>&5
50832 ac_status=$?
50833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50834 (exit $ac_status); }; }; then
50835 has_wchar_minmax=yes
50836 else
50837 echo "$as_me: failed program was:" >&5
50838 sed 's/^/| /' conftest.$ac_ext >&5
50840 has_wchar_minmax=no
50842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50843 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
50844 echo "${ECHO_T}$has_wchar_minmax" >&6
50846 # Test wchar.h for WEOF, which is what we use to determine whether
50847 # to specialize for char_traits<wchar_t> or not.
50848 echo "$as_me:$LINENO: checking for WEOF" >&5
50849 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
50850 cat >conftest.$ac_ext <<_ACEOF
50851 /* confdefs.h. */
50852 _ACEOF
50853 cat confdefs.h >>conftest.$ac_ext
50854 cat >>conftest.$ac_ext <<_ACEOF
50855 /* end confdefs.h. */
50857 #include <wchar.h>
50858 #include <stddef.h>
50860 main ()
50862 wint_t i = WEOF;
50864 return 0;
50866 _ACEOF
50867 rm -f conftest.$ac_objext
50868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50869 (eval $ac_compile) 2>conftest.er1
50870 ac_status=$?
50871 grep -v '^ *+' conftest.er1 >conftest.err
50872 rm -f conftest.er1
50873 cat conftest.err >&5
50874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50875 (exit $ac_status); } &&
50876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50878 (eval $ac_try) 2>&5
50879 ac_status=$?
50880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50881 (exit $ac_status); }; } &&
50882 { ac_try='test -s conftest.$ac_objext'
50883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50884 (eval $ac_try) 2>&5
50885 ac_status=$?
50886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50887 (exit $ac_status); }; }; then
50888 has_weof=yes
50889 else
50890 echo "$as_me: failed program was:" >&5
50891 sed 's/^/| /' conftest.$ac_ext >&5
50893 has_weof=no
50895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50896 echo "$as_me:$LINENO: result: $has_weof" >&5
50897 echo "${ECHO_T}$has_weof" >&6
50899 # Tests for wide character functions used in char_traits<wchar_t>.
50900 ac_wfuncs=yes
50907 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
50909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50910 echo "$as_me:$LINENO: checking for $ac_func" >&5
50911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50912 if eval "test \"\${$as_ac_var+set}\" = set"; then
50913 echo $ECHO_N "(cached) $ECHO_C" >&6
50914 else
50915 if test x$gcc_no_link = xyes; then
50916 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50918 { (exit 1); exit 1; }; }
50920 cat >conftest.$ac_ext <<_ACEOF
50921 /* confdefs.h. */
50922 _ACEOF
50923 cat confdefs.h >>conftest.$ac_ext
50924 cat >>conftest.$ac_ext <<_ACEOF
50925 /* end confdefs.h. */
50926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50928 #define $ac_func innocuous_$ac_func
50930 /* System header to define __stub macros and hopefully few prototypes,
50931 which can conflict with char $ac_func (); below.
50932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50933 <limits.h> exists even on freestanding compilers. */
50935 #ifdef __STDC__
50936 # include <limits.h>
50937 #else
50938 # include <assert.h>
50939 #endif
50941 #undef $ac_func
50943 /* Override any gcc2 internal prototype to avoid an error. */
50944 #ifdef __cplusplus
50945 extern "C"
50947 #endif
50948 /* We use char because int might match the return type of a gcc2
50949 builtin and then its argument prototype would still apply. */
50950 char $ac_func ();
50951 /* The GNU C library defines this for functions which it implements
50952 to always fail with ENOSYS. Some functions are actually named
50953 something starting with __ and the normal name is an alias. */
50954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50955 choke me
50956 #else
50957 char (*f) () = $ac_func;
50958 #endif
50959 #ifdef __cplusplus
50961 #endif
50964 main ()
50966 return f != $ac_func;
50968 return 0;
50970 _ACEOF
50971 rm -f conftest.$ac_objext conftest$ac_exeext
50972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50973 (eval $ac_link) 2>conftest.er1
50974 ac_status=$?
50975 grep -v '^ *+' conftest.er1 >conftest.err
50976 rm -f conftest.er1
50977 cat conftest.err >&5
50978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50979 (exit $ac_status); } &&
50980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50982 (eval $ac_try) 2>&5
50983 ac_status=$?
50984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50985 (exit $ac_status); }; } &&
50986 { ac_try='test -s conftest$ac_exeext'
50987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50988 (eval $ac_try) 2>&5
50989 ac_status=$?
50990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50991 (exit $ac_status); }; }; then
50992 eval "$as_ac_var=yes"
50993 else
50994 echo "$as_me: failed program was:" >&5
50995 sed 's/^/| /' conftest.$ac_ext >&5
50997 eval "$as_ac_var=no"
50999 rm -f conftest.err conftest.$ac_objext \
51000 conftest$ac_exeext conftest.$ac_ext
51002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51004 if test `eval echo '${'$as_ac_var'}'` = yes; then
51005 cat >>confdefs.h <<_ACEOF
51006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51007 _ACEOF
51009 else
51010 ac_wfuncs=no
51012 done
51015 # Checks for names injected into std:: by the c_std headers.
51062 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51063 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51064 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51065 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51066 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51067 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51070 echo "$as_me:$LINENO: checking for $ac_func" >&5
51071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51072 if eval "test \"\${$as_ac_var+set}\" = set"; then
51073 echo $ECHO_N "(cached) $ECHO_C" >&6
51074 else
51075 if test x$gcc_no_link = xyes; then
51076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51078 { (exit 1); exit 1; }; }
51080 cat >conftest.$ac_ext <<_ACEOF
51081 /* confdefs.h. */
51082 _ACEOF
51083 cat confdefs.h >>conftest.$ac_ext
51084 cat >>conftest.$ac_ext <<_ACEOF
51085 /* end confdefs.h. */
51086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51088 #define $ac_func innocuous_$ac_func
51090 /* System header to define __stub macros and hopefully few prototypes,
51091 which can conflict with char $ac_func (); below.
51092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51093 <limits.h> exists even on freestanding compilers. */
51095 #ifdef __STDC__
51096 # include <limits.h>
51097 #else
51098 # include <assert.h>
51099 #endif
51101 #undef $ac_func
51103 /* Override any gcc2 internal prototype to avoid an error. */
51104 #ifdef __cplusplus
51105 extern "C"
51107 #endif
51108 /* We use char because int might match the return type of a gcc2
51109 builtin and then its argument prototype would still apply. */
51110 char $ac_func ();
51111 /* The GNU C library defines this for functions which it implements
51112 to always fail with ENOSYS. Some functions are actually named
51113 something starting with __ and the normal name is an alias. */
51114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51115 choke me
51116 #else
51117 char (*f) () = $ac_func;
51118 #endif
51119 #ifdef __cplusplus
51121 #endif
51124 main ()
51126 return f != $ac_func;
51128 return 0;
51130 _ACEOF
51131 rm -f conftest.$ac_objext conftest$ac_exeext
51132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51133 (eval $ac_link) 2>conftest.er1
51134 ac_status=$?
51135 grep -v '^ *+' conftest.er1 >conftest.err
51136 rm -f conftest.er1
51137 cat conftest.err >&5
51138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51139 (exit $ac_status); } &&
51140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51142 (eval $ac_try) 2>&5
51143 ac_status=$?
51144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51145 (exit $ac_status); }; } &&
51146 { ac_try='test -s conftest$ac_exeext'
51147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51148 (eval $ac_try) 2>&5
51149 ac_status=$?
51150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51151 (exit $ac_status); }; }; then
51152 eval "$as_ac_var=yes"
51153 else
51154 echo "$as_me: failed program was:" >&5
51155 sed 's/^/| /' conftest.$ac_ext >&5
51157 eval "$as_ac_var=no"
51159 rm -f conftest.err conftest.$ac_objext \
51160 conftest$ac_exeext conftest.$ac_ext
51162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51164 if test `eval echo '${'$as_ac_var'}'` = yes; then
51165 cat >>confdefs.h <<_ACEOF
51166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51167 _ACEOF
51169 else
51170 ac_wfuncs=no
51172 done
51175 # Checks for wide character functions that are not required
51176 # for basic wchar_t support. Don't disable support if they are missing.
51177 # Injection of these is wrapped with guard macros.
51183 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51186 echo "$as_me:$LINENO: checking for $ac_func" >&5
51187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51188 if eval "test \"\${$as_ac_var+set}\" = set"; then
51189 echo $ECHO_N "(cached) $ECHO_C" >&6
51190 else
51191 if test x$gcc_no_link = xyes; then
51192 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51194 { (exit 1); exit 1; }; }
51196 cat >conftest.$ac_ext <<_ACEOF
51197 /* confdefs.h. */
51198 _ACEOF
51199 cat confdefs.h >>conftest.$ac_ext
51200 cat >>conftest.$ac_ext <<_ACEOF
51201 /* end confdefs.h. */
51202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51204 #define $ac_func innocuous_$ac_func
51206 /* System header to define __stub macros and hopefully few prototypes,
51207 which can conflict with char $ac_func (); below.
51208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51209 <limits.h> exists even on freestanding compilers. */
51211 #ifdef __STDC__
51212 # include <limits.h>
51213 #else
51214 # include <assert.h>
51215 #endif
51217 #undef $ac_func
51219 /* Override any gcc2 internal prototype to avoid an error. */
51220 #ifdef __cplusplus
51221 extern "C"
51223 #endif
51224 /* We use char because int might match the return type of a gcc2
51225 builtin and then its argument prototype would still apply. */
51226 char $ac_func ();
51227 /* The GNU C library defines this for functions which it implements
51228 to always fail with ENOSYS. Some functions are actually named
51229 something starting with __ and the normal name is an alias. */
51230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51231 choke me
51232 #else
51233 char (*f) () = $ac_func;
51234 #endif
51235 #ifdef __cplusplus
51237 #endif
51240 main ()
51242 return f != $ac_func;
51244 return 0;
51246 _ACEOF
51247 rm -f conftest.$ac_objext conftest$ac_exeext
51248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51249 (eval $ac_link) 2>conftest.er1
51250 ac_status=$?
51251 grep -v '^ *+' conftest.er1 >conftest.err
51252 rm -f conftest.er1
51253 cat conftest.err >&5
51254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51255 (exit $ac_status); } &&
51256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51258 (eval $ac_try) 2>&5
51259 ac_status=$?
51260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51261 (exit $ac_status); }; } &&
51262 { ac_try='test -s conftest$ac_exeext'
51263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51264 (eval $ac_try) 2>&5
51265 ac_status=$?
51266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51267 (exit $ac_status); }; }; then
51268 eval "$as_ac_var=yes"
51269 else
51270 echo "$as_me: failed program was:" >&5
51271 sed 's/^/| /' conftest.$ac_ext >&5
51273 eval "$as_ac_var=no"
51275 rm -f conftest.err conftest.$ac_objext \
51276 conftest$ac_exeext conftest.$ac_ext
51278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51280 if test `eval echo '${'$as_ac_var'}'` = yes; then
51281 cat >>confdefs.h <<_ACEOF
51282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51283 _ACEOF
51286 done
51289 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51290 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51291 if test x"$has_weof" = xyes &&
51292 test x"$has_wchar_minmax" = xyes &&
51293 test x"$ac_wfuncs" = xyes;
51294 then
51295 ac_isoC99_wchar_t=yes
51296 else
51297 ac_isoC99_wchar_t=no
51299 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51300 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51302 # Use iconv for wchar_t to char conversions. As such, check for
51303 # X/Open Portability Guide, version 2 features (XPG2).
51304 if test "${ac_cv_header_iconv_h+set}" = set; then
51305 echo "$as_me:$LINENO: checking for iconv.h" >&5
51306 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51307 if test "${ac_cv_header_iconv_h+set}" = set; then
51308 echo $ECHO_N "(cached) $ECHO_C" >&6
51310 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51311 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51312 else
51313 # Is the header compilable?
51314 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51315 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51316 cat >conftest.$ac_ext <<_ACEOF
51317 /* confdefs.h. */
51318 _ACEOF
51319 cat confdefs.h >>conftest.$ac_ext
51320 cat >>conftest.$ac_ext <<_ACEOF
51321 /* end confdefs.h. */
51322 $ac_includes_default
51323 #include <iconv.h>
51324 _ACEOF
51325 rm -f conftest.$ac_objext
51326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51327 (eval $ac_compile) 2>conftest.er1
51328 ac_status=$?
51329 grep -v '^ *+' conftest.er1 >conftest.err
51330 rm -f conftest.er1
51331 cat conftest.err >&5
51332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51333 (exit $ac_status); } &&
51334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51336 (eval $ac_try) 2>&5
51337 ac_status=$?
51338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51339 (exit $ac_status); }; } &&
51340 { ac_try='test -s conftest.$ac_objext'
51341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51342 (eval $ac_try) 2>&5
51343 ac_status=$?
51344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51345 (exit $ac_status); }; }; then
51346 ac_header_compiler=yes
51347 else
51348 echo "$as_me: failed program was:" >&5
51349 sed 's/^/| /' conftest.$ac_ext >&5
51351 ac_header_compiler=no
51353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51355 echo "${ECHO_T}$ac_header_compiler" >&6
51357 # Is the header present?
51358 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51359 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51360 cat >conftest.$ac_ext <<_ACEOF
51361 /* confdefs.h. */
51362 _ACEOF
51363 cat confdefs.h >>conftest.$ac_ext
51364 cat >>conftest.$ac_ext <<_ACEOF
51365 /* end confdefs.h. */
51366 #include <iconv.h>
51367 _ACEOF
51368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51370 ac_status=$?
51371 grep -v '^ *+' conftest.er1 >conftest.err
51372 rm -f conftest.er1
51373 cat conftest.err >&5
51374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51375 (exit $ac_status); } >/dev/null; then
51376 if test -s conftest.err; then
51377 ac_cpp_err=$ac_c_preproc_warn_flag
51378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51379 else
51380 ac_cpp_err=
51382 else
51383 ac_cpp_err=yes
51385 if test -z "$ac_cpp_err"; then
51386 ac_header_preproc=yes
51387 else
51388 echo "$as_me: failed program was:" >&5
51389 sed 's/^/| /' conftest.$ac_ext >&5
51391 ac_header_preproc=no
51393 rm -f conftest.err conftest.$ac_ext
51394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51395 echo "${ECHO_T}$ac_header_preproc" >&6
51397 # So? What about this header?
51398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51399 yes:no: )
51400 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
51401 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
51402 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
51403 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
51404 ac_header_preproc=yes
51406 no:yes:* )
51407 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
51408 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
51409 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
51410 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
51411 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
51412 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
51413 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
51414 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
51415 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
51416 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
51417 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
51418 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
51420 cat <<\_ASBOX
51421 ## ----------------------------------------- ##
51422 ## Report this to the package-unused lists. ##
51423 ## ----------------------------------------- ##
51424 _ASBOX
51426 sed "s/^/$as_me: WARNING: /" >&2
51428 esac
51429 echo "$as_me:$LINENO: checking for iconv.h" >&5
51430 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51431 if test "${ac_cv_header_iconv_h+set}" = set; then
51432 echo $ECHO_N "(cached) $ECHO_C" >&6
51433 else
51434 ac_cv_header_iconv_h=$ac_header_preproc
51436 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51437 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51440 if test $ac_cv_header_iconv_h = yes; then
51441 ac_has_iconv_h=yes
51442 else
51443 ac_has_iconv_h=no
51447 if test "${ac_cv_header_langinfo_h+set}" = set; then
51448 echo "$as_me:$LINENO: checking for langinfo.h" >&5
51449 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
51450 if test "${ac_cv_header_langinfo_h+set}" = set; then
51451 echo $ECHO_N "(cached) $ECHO_C" >&6
51453 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
51454 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
51455 else
51456 # Is the header compilable?
51457 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
51458 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
51459 cat >conftest.$ac_ext <<_ACEOF
51460 /* confdefs.h. */
51461 _ACEOF
51462 cat confdefs.h >>conftest.$ac_ext
51463 cat >>conftest.$ac_ext <<_ACEOF
51464 /* end confdefs.h. */
51465 $ac_includes_default
51466 #include <langinfo.h>
51467 _ACEOF
51468 rm -f conftest.$ac_objext
51469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51470 (eval $ac_compile) 2>conftest.er1
51471 ac_status=$?
51472 grep -v '^ *+' conftest.er1 >conftest.err
51473 rm -f conftest.er1
51474 cat conftest.err >&5
51475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51476 (exit $ac_status); } &&
51477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51479 (eval $ac_try) 2>&5
51480 ac_status=$?
51481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51482 (exit $ac_status); }; } &&
51483 { ac_try='test -s conftest.$ac_objext'
51484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51485 (eval $ac_try) 2>&5
51486 ac_status=$?
51487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51488 (exit $ac_status); }; }; then
51489 ac_header_compiler=yes
51490 else
51491 echo "$as_me: failed program was:" >&5
51492 sed 's/^/| /' conftest.$ac_ext >&5
51494 ac_header_compiler=no
51496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51498 echo "${ECHO_T}$ac_header_compiler" >&6
51500 # Is the header present?
51501 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
51502 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
51503 cat >conftest.$ac_ext <<_ACEOF
51504 /* confdefs.h. */
51505 _ACEOF
51506 cat confdefs.h >>conftest.$ac_ext
51507 cat >>conftest.$ac_ext <<_ACEOF
51508 /* end confdefs.h. */
51509 #include <langinfo.h>
51510 _ACEOF
51511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51513 ac_status=$?
51514 grep -v '^ *+' conftest.er1 >conftest.err
51515 rm -f conftest.er1
51516 cat conftest.err >&5
51517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51518 (exit $ac_status); } >/dev/null; then
51519 if test -s conftest.err; then
51520 ac_cpp_err=$ac_c_preproc_warn_flag
51521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51522 else
51523 ac_cpp_err=
51525 else
51526 ac_cpp_err=yes
51528 if test -z "$ac_cpp_err"; then
51529 ac_header_preproc=yes
51530 else
51531 echo "$as_me: failed program was:" >&5
51532 sed 's/^/| /' conftest.$ac_ext >&5
51534 ac_header_preproc=no
51536 rm -f conftest.err conftest.$ac_ext
51537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51538 echo "${ECHO_T}$ac_header_preproc" >&6
51540 # So? What about this header?
51541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51542 yes:no: )
51543 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
51544 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
51545 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
51546 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
51547 ac_header_preproc=yes
51549 no:yes:* )
51550 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
51551 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
51552 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
51553 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
51554 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
51555 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
51556 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
51557 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
51558 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
51559 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
51560 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
51561 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
51563 cat <<\_ASBOX
51564 ## ----------------------------------------- ##
51565 ## Report this to the package-unused lists. ##
51566 ## ----------------------------------------- ##
51567 _ASBOX
51569 sed "s/^/$as_me: WARNING: /" >&2
51571 esac
51572 echo "$as_me:$LINENO: checking for langinfo.h" >&5
51573 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
51574 if test "${ac_cv_header_langinfo_h+set}" = set; then
51575 echo $ECHO_N "(cached) $ECHO_C" >&6
51576 else
51577 ac_cv_header_langinfo_h=$ac_header_preproc
51579 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
51580 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
51583 if test $ac_cv_header_langinfo_h = yes; then
51584 ac_has_langinfo_h=yes
51585 else
51586 ac_has_langinfo_h=no
51591 # Check for existence of libiconv.a providing XPG2 wchar_t support.
51592 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
51593 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
51594 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
51595 echo $ECHO_N "(cached) $ECHO_C" >&6
51596 else
51597 ac_check_lib_save_LIBS=$LIBS
51598 LIBS="-liconv $LIBS"
51599 if test x$gcc_no_link = xyes; then
51600 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51601 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51602 { (exit 1); exit 1; }; }
51604 cat >conftest.$ac_ext <<_ACEOF
51605 /* confdefs.h. */
51606 _ACEOF
51607 cat confdefs.h >>conftest.$ac_ext
51608 cat >>conftest.$ac_ext <<_ACEOF
51609 /* end confdefs.h. */
51611 /* Override any gcc2 internal prototype to avoid an error. */
51612 #ifdef __cplusplus
51613 extern "C"
51614 #endif
51615 /* We use char because int might match the return type of a gcc2
51616 builtin and then its argument prototype would still apply. */
51617 char iconv ();
51619 main ()
51621 iconv ();
51623 return 0;
51625 _ACEOF
51626 rm -f conftest.$ac_objext conftest$ac_exeext
51627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51628 (eval $ac_link) 2>conftest.er1
51629 ac_status=$?
51630 grep -v '^ *+' conftest.er1 >conftest.err
51631 rm -f conftest.er1
51632 cat conftest.err >&5
51633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51634 (exit $ac_status); } &&
51635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51637 (eval $ac_try) 2>&5
51638 ac_status=$?
51639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51640 (exit $ac_status); }; } &&
51641 { ac_try='test -s conftest$ac_exeext'
51642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51643 (eval $ac_try) 2>&5
51644 ac_status=$?
51645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51646 (exit $ac_status); }; }; then
51647 ac_cv_lib_iconv_iconv=yes
51648 else
51649 echo "$as_me: failed program was:" >&5
51650 sed 's/^/| /' conftest.$ac_ext >&5
51652 ac_cv_lib_iconv_iconv=no
51654 rm -f conftest.err conftest.$ac_objext \
51655 conftest$ac_exeext conftest.$ac_ext
51656 LIBS=$ac_check_lib_save_LIBS
51658 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
51659 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
51660 if test $ac_cv_lib_iconv_iconv = yes; then
51661 libiconv="-liconv"
51664 ac_save_LIBS="$LIBS"
51665 LIBS="$LIBS $libiconv"
51671 for ac_func in iconv_open iconv_close iconv nl_langinfo
51673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51674 echo "$as_me:$LINENO: checking for $ac_func" >&5
51675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51676 if eval "test \"\${$as_ac_var+set}\" = set"; then
51677 echo $ECHO_N "(cached) $ECHO_C" >&6
51678 else
51679 if test x$gcc_no_link = xyes; then
51680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51682 { (exit 1); exit 1; }; }
51684 cat >conftest.$ac_ext <<_ACEOF
51685 /* confdefs.h. */
51686 _ACEOF
51687 cat confdefs.h >>conftest.$ac_ext
51688 cat >>conftest.$ac_ext <<_ACEOF
51689 /* end confdefs.h. */
51690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51692 #define $ac_func innocuous_$ac_func
51694 /* System header to define __stub macros and hopefully few prototypes,
51695 which can conflict with char $ac_func (); below.
51696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51697 <limits.h> exists even on freestanding compilers. */
51699 #ifdef __STDC__
51700 # include <limits.h>
51701 #else
51702 # include <assert.h>
51703 #endif
51705 #undef $ac_func
51707 /* Override any gcc2 internal prototype to avoid an error. */
51708 #ifdef __cplusplus
51709 extern "C"
51711 #endif
51712 /* We use char because int might match the return type of a gcc2
51713 builtin and then its argument prototype would still apply. */
51714 char $ac_func ();
51715 /* The GNU C library defines this for functions which it implements
51716 to always fail with ENOSYS. Some functions are actually named
51717 something starting with __ and the normal name is an alias. */
51718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51719 choke me
51720 #else
51721 char (*f) () = $ac_func;
51722 #endif
51723 #ifdef __cplusplus
51725 #endif
51728 main ()
51730 return f != $ac_func;
51732 return 0;
51734 _ACEOF
51735 rm -f conftest.$ac_objext conftest$ac_exeext
51736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51737 (eval $ac_link) 2>conftest.er1
51738 ac_status=$?
51739 grep -v '^ *+' conftest.er1 >conftest.err
51740 rm -f conftest.er1
51741 cat conftest.err >&5
51742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51743 (exit $ac_status); } &&
51744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51746 (eval $ac_try) 2>&5
51747 ac_status=$?
51748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51749 (exit $ac_status); }; } &&
51750 { ac_try='test -s conftest$ac_exeext'
51751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51752 (eval $ac_try) 2>&5
51753 ac_status=$?
51754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51755 (exit $ac_status); }; }; then
51756 eval "$as_ac_var=yes"
51757 else
51758 echo "$as_me: failed program was:" >&5
51759 sed 's/^/| /' conftest.$ac_ext >&5
51761 eval "$as_ac_var=no"
51763 rm -f conftest.err conftest.$ac_objext \
51764 conftest$ac_exeext conftest.$ac_ext
51766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51768 if test `eval echo '${'$as_ac_var'}'` = yes; then
51769 cat >>confdefs.h <<_ACEOF
51770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51771 _ACEOF
51772 ac_XPG2funcs=yes
51773 else
51774 ac_XPG2funcs=no
51776 done
51779 LIBS="$ac_save_LIBS"
51781 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
51782 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
51783 if test x"$ac_has_iconv_h" = xyes &&
51784 test x"$ac_has_langinfo_h" = xyes &&
51785 test x"$ac_XPG2funcs" = xyes;
51786 then
51787 ac_XPG2_wchar_t=yes
51788 else
51789 ac_XPG2_wchar_t=no
51791 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
51792 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
51794 # At the moment, only enable wchar_t specializations if all the
51795 # above support is present.
51796 if test x"$ac_isoC99_wchar_t" = xyes &&
51797 test x"$ac_XPG2_wchar_t" = xyes;
51798 then
51799 cat >>confdefs.h <<\_ACEOF
51800 #define _GLIBCXX_USE_WCHAR_T 1
51801 _ACEOF
51803 enable_wchar_t=yes
51806 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
51807 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
51808 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
51809 echo "${ECHO_T}$enable_wchar_t" >&6
51812 ac_test_CXXFLAGS="${CXXFLAGS+set}"
51813 ac_save_CXXFLAGS="$CXXFLAGS"
51814 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
51817 echo "$as_me:$LINENO: checking for strtold declaration" >&5
51818 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
51819 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
51820 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
51821 echo $ECHO_N "(cached) $ECHO_C" >&6
51822 else
51826 ac_ext=cc
51827 ac_cpp='$CXXCPP $CPPFLAGS'
51828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51832 cat >conftest.$ac_ext <<_ACEOF
51833 /* confdefs.h. */
51834 _ACEOF
51835 cat confdefs.h >>conftest.$ac_ext
51836 cat >>conftest.$ac_ext <<_ACEOF
51837 /* end confdefs.h. */
51838 #include <stdlib.h>
51840 main ()
51842 strtold(0, 0);
51844 return 0;
51846 _ACEOF
51847 rm -f conftest.$ac_objext
51848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51849 (eval $ac_compile) 2>conftest.er1
51850 ac_status=$?
51851 grep -v '^ *+' conftest.er1 >conftest.err
51852 rm -f conftest.er1
51853 cat conftest.err >&5
51854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51855 (exit $ac_status); } &&
51856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51858 (eval $ac_try) 2>&5
51859 ac_status=$?
51860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51861 (exit $ac_status); }; } &&
51862 { ac_try='test -s conftest.$ac_objext'
51863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51864 (eval $ac_try) 2>&5
51865 ac_status=$?
51866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51867 (exit $ac_status); }; }; then
51868 glibcxx_cv_func_strtold_use=yes
51869 else
51870 echo "$as_me: failed program was:" >&5
51871 sed 's/^/| /' conftest.$ac_ext >&5
51873 glibcxx_cv_func_strtold_use=no
51875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51876 ac_ext=c
51877 ac_cpp='$CPP $CPPFLAGS'
51878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51886 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
51887 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
51888 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
51890 for ac_func in strtold
51892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51893 echo "$as_me:$LINENO: checking for $ac_func" >&5
51894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51895 if eval "test \"\${$as_ac_var+set}\" = set"; then
51896 echo $ECHO_N "(cached) $ECHO_C" >&6
51897 else
51898 if test x$gcc_no_link = xyes; then
51899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51901 { (exit 1); exit 1; }; }
51903 cat >conftest.$ac_ext <<_ACEOF
51904 /* confdefs.h. */
51905 _ACEOF
51906 cat confdefs.h >>conftest.$ac_ext
51907 cat >>conftest.$ac_ext <<_ACEOF
51908 /* end confdefs.h. */
51909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51911 #define $ac_func innocuous_$ac_func
51913 /* System header to define __stub macros and hopefully few prototypes,
51914 which can conflict with char $ac_func (); below.
51915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51916 <limits.h> exists even on freestanding compilers. */
51918 #ifdef __STDC__
51919 # include <limits.h>
51920 #else
51921 # include <assert.h>
51922 #endif
51924 #undef $ac_func
51926 /* Override any gcc2 internal prototype to avoid an error. */
51927 #ifdef __cplusplus
51928 extern "C"
51930 #endif
51931 /* We use char because int might match the return type of a gcc2
51932 builtin and then its argument prototype would still apply. */
51933 char $ac_func ();
51934 /* The GNU C library defines this for functions which it implements
51935 to always fail with ENOSYS. Some functions are actually named
51936 something starting with __ and the normal name is an alias. */
51937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51938 choke me
51939 #else
51940 char (*f) () = $ac_func;
51941 #endif
51942 #ifdef __cplusplus
51944 #endif
51947 main ()
51949 return f != $ac_func;
51951 return 0;
51953 _ACEOF
51954 rm -f conftest.$ac_objext conftest$ac_exeext
51955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51956 (eval $ac_link) 2>conftest.er1
51957 ac_status=$?
51958 grep -v '^ *+' conftest.er1 >conftest.err
51959 rm -f conftest.er1
51960 cat conftest.err >&5
51961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51962 (exit $ac_status); } &&
51963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51965 (eval $ac_try) 2>&5
51966 ac_status=$?
51967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51968 (exit $ac_status); }; } &&
51969 { ac_try='test -s conftest$ac_exeext'
51970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51971 (eval $ac_try) 2>&5
51972 ac_status=$?
51973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51974 (exit $ac_status); }; }; then
51975 eval "$as_ac_var=yes"
51976 else
51977 echo "$as_me: failed program was:" >&5
51978 sed 's/^/| /' conftest.$ac_ext >&5
51980 eval "$as_ac_var=no"
51982 rm -f conftest.err conftest.$ac_objext \
51983 conftest$ac_exeext conftest.$ac_ext
51985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51987 if test `eval echo '${'$as_ac_var'}'` = yes; then
51988 cat >>confdefs.h <<_ACEOF
51989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51990 _ACEOF
51993 done
51998 echo "$as_me:$LINENO: checking for strtof declaration" >&5
51999 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52000 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52001 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52002 echo $ECHO_N "(cached) $ECHO_C" >&6
52003 else
52007 ac_ext=cc
52008 ac_cpp='$CXXCPP $CPPFLAGS'
52009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52013 cat >conftest.$ac_ext <<_ACEOF
52014 /* confdefs.h. */
52015 _ACEOF
52016 cat confdefs.h >>conftest.$ac_ext
52017 cat >>conftest.$ac_ext <<_ACEOF
52018 /* end confdefs.h. */
52019 #include <stdlib.h>
52021 main ()
52023 strtof(0, 0);
52025 return 0;
52027 _ACEOF
52028 rm -f conftest.$ac_objext
52029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52030 (eval $ac_compile) 2>conftest.er1
52031 ac_status=$?
52032 grep -v '^ *+' conftest.er1 >conftest.err
52033 rm -f conftest.er1
52034 cat conftest.err >&5
52035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52036 (exit $ac_status); } &&
52037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
52038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52039 (eval $ac_try) 2>&5
52040 ac_status=$?
52041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52042 (exit $ac_status); }; } &&
52043 { ac_try='test -s conftest.$ac_objext'
52044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52045 (eval $ac_try) 2>&5
52046 ac_status=$?
52047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52048 (exit $ac_status); }; }; then
52049 glibcxx_cv_func_strtof_use=yes
52050 else
52051 echo "$as_me: failed program was:" >&5
52052 sed 's/^/| /' conftest.$ac_ext >&5
52054 glibcxx_cv_func_strtof_use=no
52056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52057 ac_ext=c
52058 ac_cpp='$CPP $CPPFLAGS'
52059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52067 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52068 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52069 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52071 for ac_func in strtof
52073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52074 echo "$as_me:$LINENO: checking for $ac_func" >&5
52075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52076 if eval "test \"\${$as_ac_var+set}\" = set"; then
52077 echo $ECHO_N "(cached) $ECHO_C" >&6
52078 else
52079 if test x$gcc_no_link = xyes; then
52080 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52081 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52082 { (exit 1); exit 1; }; }
52084 cat >conftest.$ac_ext <<_ACEOF
52085 /* confdefs.h. */
52086 _ACEOF
52087 cat confdefs.h >>conftest.$ac_ext
52088 cat >>conftest.$ac_ext <<_ACEOF
52089 /* end confdefs.h. */
52090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52092 #define $ac_func innocuous_$ac_func
52094 /* System header to define __stub macros and hopefully few prototypes,
52095 which can conflict with char $ac_func (); below.
52096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52097 <limits.h> exists even on freestanding compilers. */
52099 #ifdef __STDC__
52100 # include <limits.h>
52101 #else
52102 # include <assert.h>
52103 #endif
52105 #undef $ac_func
52107 /* Override any gcc2 internal prototype to avoid an error. */
52108 #ifdef __cplusplus
52109 extern "C"
52111 #endif
52112 /* We use char because int might match the return type of a gcc2
52113 builtin and then its argument prototype would still apply. */
52114 char $ac_func ();
52115 /* The GNU C library defines this for functions which it implements
52116 to always fail with ENOSYS. Some functions are actually named
52117 something starting with __ and the normal name is an alias. */
52118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52119 choke me
52120 #else
52121 char (*f) () = $ac_func;
52122 #endif
52123 #ifdef __cplusplus
52125 #endif
52128 main ()
52130 return f != $ac_func;
52132 return 0;
52134 _ACEOF
52135 rm -f conftest.$ac_objext conftest$ac_exeext
52136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52137 (eval $ac_link) 2>conftest.er1
52138 ac_status=$?
52139 grep -v '^ *+' conftest.er1 >conftest.err
52140 rm -f conftest.er1
52141 cat conftest.err >&5
52142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52143 (exit $ac_status); } &&
52144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52146 (eval $ac_try) 2>&5
52147 ac_status=$?
52148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149 (exit $ac_status); }; } &&
52150 { ac_try='test -s conftest$ac_exeext'
52151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52152 (eval $ac_try) 2>&5
52153 ac_status=$?
52154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155 (exit $ac_status); }; }; then
52156 eval "$as_ac_var=yes"
52157 else
52158 echo "$as_me: failed program was:" >&5
52159 sed 's/^/| /' conftest.$ac_ext >&5
52161 eval "$as_ac_var=no"
52163 rm -f conftest.err conftest.$ac_objext \
52164 conftest$ac_exeext conftest.$ac_ext
52166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52168 if test `eval echo '${'$as_ac_var'}'` = yes; then
52169 cat >>confdefs.h <<_ACEOF
52170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52171 _ACEOF
52174 done
52179 CXXFLAGS="$ac_save_CXXFLAGS"
52182 # For showmanyc_helper().
52185 for ac_header in sys/ioctl.h sys/filio.h
52187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52189 echo "$as_me:$LINENO: checking for $ac_header" >&5
52190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52192 echo $ECHO_N "(cached) $ECHO_C" >&6
52194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52196 else
52197 # Is the header compilable?
52198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52200 cat >conftest.$ac_ext <<_ACEOF
52201 /* confdefs.h. */
52202 _ACEOF
52203 cat confdefs.h >>conftest.$ac_ext
52204 cat >>conftest.$ac_ext <<_ACEOF
52205 /* end confdefs.h. */
52206 $ac_includes_default
52207 #include <$ac_header>
52208 _ACEOF
52209 rm -f conftest.$ac_objext
52210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52211 (eval $ac_compile) 2>conftest.er1
52212 ac_status=$?
52213 grep -v '^ *+' conftest.er1 >conftest.err
52214 rm -f conftest.er1
52215 cat conftest.err >&5
52216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52217 (exit $ac_status); } &&
52218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52220 (eval $ac_try) 2>&5
52221 ac_status=$?
52222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52223 (exit $ac_status); }; } &&
52224 { ac_try='test -s conftest.$ac_objext'
52225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52226 (eval $ac_try) 2>&5
52227 ac_status=$?
52228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52229 (exit $ac_status); }; }; then
52230 ac_header_compiler=yes
52231 else
52232 echo "$as_me: failed program was:" >&5
52233 sed 's/^/| /' conftest.$ac_ext >&5
52235 ac_header_compiler=no
52237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52239 echo "${ECHO_T}$ac_header_compiler" >&6
52241 # Is the header present?
52242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52244 cat >conftest.$ac_ext <<_ACEOF
52245 /* confdefs.h. */
52246 _ACEOF
52247 cat confdefs.h >>conftest.$ac_ext
52248 cat >>conftest.$ac_ext <<_ACEOF
52249 /* end confdefs.h. */
52250 #include <$ac_header>
52251 _ACEOF
52252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52254 ac_status=$?
52255 grep -v '^ *+' conftest.er1 >conftest.err
52256 rm -f conftest.er1
52257 cat conftest.err >&5
52258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52259 (exit $ac_status); } >/dev/null; then
52260 if test -s conftest.err; then
52261 ac_cpp_err=$ac_c_preproc_warn_flag
52262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52263 else
52264 ac_cpp_err=
52266 else
52267 ac_cpp_err=yes
52269 if test -z "$ac_cpp_err"; then
52270 ac_header_preproc=yes
52271 else
52272 echo "$as_me: failed program was:" >&5
52273 sed 's/^/| /' conftest.$ac_ext >&5
52275 ac_header_preproc=no
52277 rm -f conftest.err conftest.$ac_ext
52278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52279 echo "${ECHO_T}$ac_header_preproc" >&6
52281 # So? What about this header?
52282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52283 yes:no: )
52284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52288 ac_header_preproc=yes
52290 no:yes:* )
52291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52304 cat <<\_ASBOX
52305 ## ----------------------------------------- ##
52306 ## Report this to the package-unused lists. ##
52307 ## ----------------------------------------- ##
52308 _ASBOX
52310 sed "s/^/$as_me: WARNING: /" >&2
52312 esac
52313 echo "$as_me:$LINENO: checking for $ac_header" >&5
52314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52316 echo $ECHO_N "(cached) $ECHO_C" >&6
52317 else
52318 eval "$as_ac_Header=\$ac_header_preproc"
52320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52325 cat >>confdefs.h <<_ACEOF
52326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52327 _ACEOF
52331 done
52334 if test "${glibcxx_cv_POLL+set}" = set; then
52335 echo $ECHO_N "(cached) $ECHO_C" >&6
52336 else
52338 if test x$gcc_no_link = xyes; then
52339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52341 { (exit 1); exit 1; }; }
52343 cat >conftest.$ac_ext <<_ACEOF
52344 /* confdefs.h. */
52345 _ACEOF
52346 cat confdefs.h >>conftest.$ac_ext
52347 cat >>conftest.$ac_ext <<_ACEOF
52348 /* end confdefs.h. */
52349 #include <poll.h>
52351 main ()
52353 struct pollfd pfd[1];
52354 pfd[0].events = POLLIN;
52355 poll(pfd, 1, 0);
52357 return 0;
52359 _ACEOF
52360 rm -f conftest.$ac_objext conftest$ac_exeext
52361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52362 (eval $ac_link) 2>conftest.er1
52363 ac_status=$?
52364 grep -v '^ *+' conftest.er1 >conftest.err
52365 rm -f conftest.er1
52366 cat conftest.err >&5
52367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52368 (exit $ac_status); } &&
52369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52371 (eval $ac_try) 2>&5
52372 ac_status=$?
52373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52374 (exit $ac_status); }; } &&
52375 { ac_try='test -s conftest$ac_exeext'
52376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52377 (eval $ac_try) 2>&5
52378 ac_status=$?
52379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52380 (exit $ac_status); }; }; then
52381 glibcxx_cv_POLL=yes
52382 else
52383 echo "$as_me: failed program was:" >&5
52384 sed 's/^/| /' conftest.$ac_ext >&5
52386 glibcxx_cv_POLL=no
52388 rm -f conftest.err conftest.$ac_objext \
52389 conftest$ac_exeext conftest.$ac_ext
52393 if test $glibcxx_cv_POLL = yes; then
52394 cat >>confdefs.h <<\_ACEOF
52395 #define HAVE_POLL 1
52396 _ACEOF
52401 if test "${glibcxx_cv_S_ISREG+set}" = set; then
52402 echo $ECHO_N "(cached) $ECHO_C" >&6
52403 else
52405 if test x$gcc_no_link = xyes; then
52406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52408 { (exit 1); exit 1; }; }
52410 cat >conftest.$ac_ext <<_ACEOF
52411 /* confdefs.h. */
52412 _ACEOF
52413 cat confdefs.h >>conftest.$ac_ext
52414 cat >>conftest.$ac_ext <<_ACEOF
52415 /* end confdefs.h. */
52416 #include <sys/stat.h>
52418 main ()
52420 struct stat buffer;
52421 fstat(0, &buffer);
52422 S_ISREG(buffer.st_mode);
52424 return 0;
52426 _ACEOF
52427 rm -f conftest.$ac_objext conftest$ac_exeext
52428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52429 (eval $ac_link) 2>conftest.er1
52430 ac_status=$?
52431 grep -v '^ *+' conftest.er1 >conftest.err
52432 rm -f conftest.er1
52433 cat conftest.err >&5
52434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52435 (exit $ac_status); } &&
52436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52438 (eval $ac_try) 2>&5
52439 ac_status=$?
52440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52441 (exit $ac_status); }; } &&
52442 { ac_try='test -s conftest$ac_exeext'
52443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52444 (eval $ac_try) 2>&5
52445 ac_status=$?
52446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52447 (exit $ac_status); }; }; then
52448 glibcxx_cv_S_ISREG=yes
52449 else
52450 echo "$as_me: failed program was:" >&5
52451 sed 's/^/| /' conftest.$ac_ext >&5
52453 glibcxx_cv_S_ISREG=no
52455 rm -f conftest.err conftest.$ac_objext \
52456 conftest$ac_exeext conftest.$ac_ext
52460 if test "${glibcxx_cv_S_IFREG+set}" = set; then
52461 echo $ECHO_N "(cached) $ECHO_C" >&6
52462 else
52464 if test x$gcc_no_link = xyes; then
52465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52467 { (exit 1); exit 1; }; }
52469 cat >conftest.$ac_ext <<_ACEOF
52470 /* confdefs.h. */
52471 _ACEOF
52472 cat confdefs.h >>conftest.$ac_ext
52473 cat >>conftest.$ac_ext <<_ACEOF
52474 /* end confdefs.h. */
52475 #include <sys/stat.h>
52477 main ()
52479 struct stat buffer;
52480 fstat(0, &buffer);
52481 S_IFREG & buffer.st_mode;
52483 return 0;
52485 _ACEOF
52486 rm -f conftest.$ac_objext conftest$ac_exeext
52487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52488 (eval $ac_link) 2>conftest.er1
52489 ac_status=$?
52490 grep -v '^ *+' conftest.er1 >conftest.err
52491 rm -f conftest.er1
52492 cat conftest.err >&5
52493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52494 (exit $ac_status); } &&
52495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52497 (eval $ac_try) 2>&5
52498 ac_status=$?
52499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52500 (exit $ac_status); }; } &&
52501 { ac_try='test -s conftest$ac_exeext'
52502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52503 (eval $ac_try) 2>&5
52504 ac_status=$?
52505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52506 (exit $ac_status); }; }; then
52507 glibcxx_cv_S_IFREG=yes
52508 else
52509 echo "$as_me: failed program was:" >&5
52510 sed 's/^/| /' conftest.$ac_ext >&5
52512 glibcxx_cv_S_IFREG=no
52514 rm -f conftest.err conftest.$ac_objext \
52515 conftest$ac_exeext conftest.$ac_ext
52519 if test $glibcxx_cv_S_ISREG = yes; then
52520 cat >>confdefs.h <<\_ACEOF
52521 #define HAVE_S_ISREG 1
52522 _ACEOF
52524 elif test $glibcxx_cv_S_IFREG = yes; then
52525 cat >>confdefs.h <<\_ACEOF
52526 #define HAVE_S_IFREG 1
52527 _ACEOF
52532 # For xsputn_2().
52534 for ac_header in sys/uio.h
52536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52538 echo "$as_me:$LINENO: checking for $ac_header" >&5
52539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52541 echo $ECHO_N "(cached) $ECHO_C" >&6
52543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52545 else
52546 # Is the header compilable?
52547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52549 cat >conftest.$ac_ext <<_ACEOF
52550 /* confdefs.h. */
52551 _ACEOF
52552 cat confdefs.h >>conftest.$ac_ext
52553 cat >>conftest.$ac_ext <<_ACEOF
52554 /* end confdefs.h. */
52555 $ac_includes_default
52556 #include <$ac_header>
52557 _ACEOF
52558 rm -f conftest.$ac_objext
52559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52560 (eval $ac_compile) 2>conftest.er1
52561 ac_status=$?
52562 grep -v '^ *+' conftest.er1 >conftest.err
52563 rm -f conftest.er1
52564 cat conftest.err >&5
52565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52566 (exit $ac_status); } &&
52567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52569 (eval $ac_try) 2>&5
52570 ac_status=$?
52571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52572 (exit $ac_status); }; } &&
52573 { ac_try='test -s conftest.$ac_objext'
52574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52575 (eval $ac_try) 2>&5
52576 ac_status=$?
52577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52578 (exit $ac_status); }; }; then
52579 ac_header_compiler=yes
52580 else
52581 echo "$as_me: failed program was:" >&5
52582 sed 's/^/| /' conftest.$ac_ext >&5
52584 ac_header_compiler=no
52586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52588 echo "${ECHO_T}$ac_header_compiler" >&6
52590 # Is the header present?
52591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52593 cat >conftest.$ac_ext <<_ACEOF
52594 /* confdefs.h. */
52595 _ACEOF
52596 cat confdefs.h >>conftest.$ac_ext
52597 cat >>conftest.$ac_ext <<_ACEOF
52598 /* end confdefs.h. */
52599 #include <$ac_header>
52600 _ACEOF
52601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52603 ac_status=$?
52604 grep -v '^ *+' conftest.er1 >conftest.err
52605 rm -f conftest.er1
52606 cat conftest.err >&5
52607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52608 (exit $ac_status); } >/dev/null; then
52609 if test -s conftest.err; then
52610 ac_cpp_err=$ac_c_preproc_warn_flag
52611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52612 else
52613 ac_cpp_err=
52615 else
52616 ac_cpp_err=yes
52618 if test -z "$ac_cpp_err"; then
52619 ac_header_preproc=yes
52620 else
52621 echo "$as_me: failed program was:" >&5
52622 sed 's/^/| /' conftest.$ac_ext >&5
52624 ac_header_preproc=no
52626 rm -f conftest.err conftest.$ac_ext
52627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52628 echo "${ECHO_T}$ac_header_preproc" >&6
52630 # So? What about this header?
52631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52632 yes:no: )
52633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52637 ac_header_preproc=yes
52639 no:yes:* )
52640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52653 cat <<\_ASBOX
52654 ## ----------------------------------------- ##
52655 ## Report this to the package-unused lists. ##
52656 ## ----------------------------------------- ##
52657 _ASBOX
52659 sed "s/^/$as_me: WARNING: /" >&2
52661 esac
52662 echo "$as_me:$LINENO: checking for $ac_header" >&5
52663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52665 echo $ECHO_N "(cached) $ECHO_C" >&6
52666 else
52667 eval "$as_ac_Header=\$ac_header_preproc"
52669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52674 cat >>confdefs.h <<_ACEOF
52675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52676 _ACEOF
52680 done
52683 if test "${glibcxx_cv_WRITEV+set}" = set; then
52684 echo $ECHO_N "(cached) $ECHO_C" >&6
52685 else
52687 if test x$gcc_no_link = xyes; then
52688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52690 { (exit 1); exit 1; }; }
52692 cat >conftest.$ac_ext <<_ACEOF
52693 /* confdefs.h. */
52694 _ACEOF
52695 cat confdefs.h >>conftest.$ac_ext
52696 cat >>conftest.$ac_ext <<_ACEOF
52697 /* end confdefs.h. */
52698 #include <sys/uio.h>
52700 main ()
52702 struct iovec iov[2];
52703 writev(0, iov, 0);
52705 return 0;
52707 _ACEOF
52708 rm -f conftest.$ac_objext conftest$ac_exeext
52709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52710 (eval $ac_link) 2>conftest.er1
52711 ac_status=$?
52712 grep -v '^ *+' conftest.er1 >conftest.err
52713 rm -f conftest.er1
52714 cat conftest.err >&5
52715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52716 (exit $ac_status); } &&
52717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52719 (eval $ac_try) 2>&5
52720 ac_status=$?
52721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52722 (exit $ac_status); }; } &&
52723 { ac_try='test -s conftest$ac_exeext'
52724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52725 (eval $ac_try) 2>&5
52726 ac_status=$?
52727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52728 (exit $ac_status); }; }; then
52729 glibcxx_cv_WRITEV=yes
52730 else
52731 echo "$as_me: failed program was:" >&5
52732 sed 's/^/| /' conftest.$ac_ext >&5
52734 glibcxx_cv_WRITEV=no
52736 rm -f conftest.err conftest.$ac_objext \
52737 conftest$ac_exeext conftest.$ac_ext
52741 if test $glibcxx_cv_WRITEV = yes; then
52742 cat >>confdefs.h <<\_ACEOF
52743 #define HAVE_WRITEV 1
52744 _ACEOF
52749 cat >>confdefs.h <<\_ACEOF
52750 #define HAVE_LC_MESSAGES 1
52751 _ACEOF
52754 cat >conftest.$ac_ext <<_ACEOF
52755 /* confdefs.h. */
52756 _ACEOF
52757 cat confdefs.h >>conftest.$ac_ext
52758 cat >>conftest.$ac_ext <<_ACEOF
52759 /* end confdefs.h. */
52760 #include <setjmp.h>
52762 main ()
52764 sigjmp_buf env;
52765 while (! sigsetjmp (env, 1))
52766 siglongjmp (env, 1);
52769 return 0;
52771 _ACEOF
52772 rm -f conftest.$ac_objext
52773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52774 (eval $ac_compile) 2>conftest.er1
52775 ac_status=$?
52776 grep -v '^ *+' conftest.er1 >conftest.err
52777 rm -f conftest.er1
52778 cat conftest.err >&5
52779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52780 (exit $ac_status); } &&
52781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52783 (eval $ac_try) 2>&5
52784 ac_status=$?
52785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52786 (exit $ac_status); }; } &&
52787 { ac_try='test -s conftest.$ac_objext'
52788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52789 (eval $ac_try) 2>&5
52790 ac_status=$?
52791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52792 (exit $ac_status); }; }; then
52794 cat >>confdefs.h <<\_ACEOF
52795 #define HAVE_SIGSETJMP 1
52796 _ACEOF
52798 else
52799 echo "$as_me: failed program was:" >&5
52800 sed 's/^/| /' conftest.$ac_ext >&5
52803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52805 cat >>confdefs.h <<\_ACEOF
52806 #define HAVE_MMAP 1
52807 _ACEOF
52811 *-freebsd*)
52828 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
52829 machine/endian.h machine/param.h sys/machine.h sys/types.h \
52830 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
52831 sys/time.h unistd.h
52833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52835 echo "$as_me:$LINENO: checking for $ac_header" >&5
52836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52838 echo $ECHO_N "(cached) $ECHO_C" >&6
52840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52842 else
52843 # Is the header compilable?
52844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52846 cat >conftest.$ac_ext <<_ACEOF
52847 /* confdefs.h. */
52848 _ACEOF
52849 cat confdefs.h >>conftest.$ac_ext
52850 cat >>conftest.$ac_ext <<_ACEOF
52851 /* end confdefs.h. */
52852 $ac_includes_default
52853 #include <$ac_header>
52854 _ACEOF
52855 rm -f conftest.$ac_objext
52856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52857 (eval $ac_compile) 2>conftest.er1
52858 ac_status=$?
52859 grep -v '^ *+' conftest.er1 >conftest.err
52860 rm -f conftest.er1
52861 cat conftest.err >&5
52862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52863 (exit $ac_status); } &&
52864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52866 (eval $ac_try) 2>&5
52867 ac_status=$?
52868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52869 (exit $ac_status); }; } &&
52870 { ac_try='test -s conftest.$ac_objext'
52871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52872 (eval $ac_try) 2>&5
52873 ac_status=$?
52874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52875 (exit $ac_status); }; }; then
52876 ac_header_compiler=yes
52877 else
52878 echo "$as_me: failed program was:" >&5
52879 sed 's/^/| /' conftest.$ac_ext >&5
52881 ac_header_compiler=no
52883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52885 echo "${ECHO_T}$ac_header_compiler" >&6
52887 # Is the header present?
52888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52890 cat >conftest.$ac_ext <<_ACEOF
52891 /* confdefs.h. */
52892 _ACEOF
52893 cat confdefs.h >>conftest.$ac_ext
52894 cat >>conftest.$ac_ext <<_ACEOF
52895 /* end confdefs.h. */
52896 #include <$ac_header>
52897 _ACEOF
52898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52900 ac_status=$?
52901 grep -v '^ *+' conftest.er1 >conftest.err
52902 rm -f conftest.er1
52903 cat conftest.err >&5
52904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52905 (exit $ac_status); } >/dev/null; then
52906 if test -s conftest.err; then
52907 ac_cpp_err=$ac_c_preproc_warn_flag
52908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52909 else
52910 ac_cpp_err=
52912 else
52913 ac_cpp_err=yes
52915 if test -z "$ac_cpp_err"; then
52916 ac_header_preproc=yes
52917 else
52918 echo "$as_me: failed program was:" >&5
52919 sed 's/^/| /' conftest.$ac_ext >&5
52921 ac_header_preproc=no
52923 rm -f conftest.err conftest.$ac_ext
52924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52925 echo "${ECHO_T}$ac_header_preproc" >&6
52927 # So? What about this header?
52928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52929 yes:no: )
52930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52934 ac_header_preproc=yes
52936 no:yes:* )
52937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52950 cat <<\_ASBOX
52951 ## ----------------------------------------- ##
52952 ## Report this to the package-unused lists. ##
52953 ## ----------------------------------------- ##
52954 _ASBOX
52956 sed "s/^/$as_me: WARNING: /" >&2
52958 esac
52959 echo "$as_me:$LINENO: checking for $ac_header" >&5
52960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52962 echo $ECHO_N "(cached) $ECHO_C" >&6
52963 else
52964 eval "$as_ac_Header=\$ac_header_preproc"
52966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52971 cat >>confdefs.h <<_ACEOF
52972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52973 _ACEOF
52977 done
52979 SECTION_FLAGS='-ffunction-sections -fdata-sections'
52982 # If we're not using GNU ld, then there's no point in even trying these
52983 # tests. Check for that first. We should have already tested for gld
52984 # by now (in libtool), but require it now just to be safe...
52985 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
52986 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
52990 # The name set by libtool depends on the version of libtool. Shame on us
52991 # for depending on an impl detail, but c'est la vie. Older versions used
52992 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
52993 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
52994 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
52995 # set (hence we're using an older libtool), then set it.
52996 if test x${with_gnu_ld+set} != xset; then
52997 if test x${ac_cv_prog_gnu_ld+set} != xset; then
52998 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
52999 with_gnu_ld=no
53000 else
53001 with_gnu_ld=$ac_cv_prog_gnu_ld
53005 # Start by getting the version number. I think the libtool test already
53006 # does some of this, but throws away the result.
53008 ldver=`$LD --version 2>/dev/null | head -1 | \
53009 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53011 glibcxx_gnu_ld_version=`echo $ldver | \
53012 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53014 # Set --gc-sections.
53015 if test "$with_gnu_ld" = "notbroken"; then
53016 # GNU ld it is! Joy and bunny rabbits!
53018 # All these tests are for C++; save the language and the compiler flags.
53019 # Need to do this so that g++ won't try to link in libstdc++
53020 ac_test_CFLAGS="${CFLAGS+set}"
53021 ac_save_CFLAGS="$CFLAGS"
53022 CFLAGS='-x c++ -Wl,--gc-sections'
53024 # Check for -Wl,--gc-sections
53025 # XXX This test is broken at the moment, as symbols required for linking
53026 # are now in libsupc++ (not built yet). In addition, this test has
53027 # cored on solaris in the past. In addition, --gc-sections doesn't
53028 # really work at the moment (keeps on discarding used sections, first
53029 # .eh_frame and now some of the glibc sections for iconv).
53030 # Bzzzzt. Thanks for playing, maybe next time.
53031 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53032 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53033 if test "$cross_compiling" = yes; then
53034 ac_sectionLDflags=yes
53035 else
53036 cat >conftest.$ac_ext <<_ACEOF
53037 /* confdefs.h. */
53038 _ACEOF
53039 cat confdefs.h >>conftest.$ac_ext
53040 cat >>conftest.$ac_ext <<_ACEOF
53041 /* end confdefs.h. */
53043 int main(void)
53045 try { throw 1; }
53046 catch (...) { };
53047 return 0;
53050 _ACEOF
53051 rm -f conftest$ac_exeext
53052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53053 (eval $ac_link) 2>&5
53054 ac_status=$?
53055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53058 (eval $ac_try) 2>&5
53059 ac_status=$?
53060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53061 (exit $ac_status); }; }; then
53062 ac_sectionLDflags=yes
53063 else
53064 echo "$as_me: program exited with status $ac_status" >&5
53065 echo "$as_me: failed program was:" >&5
53066 sed 's/^/| /' conftest.$ac_ext >&5
53068 ( exit $ac_status )
53069 ac_sectionLDflags=no
53071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53073 if test "$ac_test_CFLAGS" = set; then
53074 CFLAGS="$ac_save_CFLAGS"
53075 else
53076 # this is the suspicious part
53077 CFLAGS=''
53079 if test "$ac_sectionLDflags" = "yes"; then
53080 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53082 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53083 echo "${ECHO_T}$ac_sectionLDflags" >&6
53086 # Set linker optimization flags.
53087 if test x"$with_gnu_ld" = x"yes"; then
53088 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53096 echo "$as_me:$LINENO: checking for main in -lm" >&5
53097 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53098 if test "${ac_cv_lib_m_main+set}" = set; then
53099 echo $ECHO_N "(cached) $ECHO_C" >&6
53100 else
53101 ac_check_lib_save_LIBS=$LIBS
53102 LIBS="-lm $LIBS"
53103 if test x$gcc_no_link = xyes; then
53104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53106 { (exit 1); exit 1; }; }
53108 cat >conftest.$ac_ext <<_ACEOF
53109 /* confdefs.h. */
53110 _ACEOF
53111 cat confdefs.h >>conftest.$ac_ext
53112 cat >>conftest.$ac_ext <<_ACEOF
53113 /* end confdefs.h. */
53117 main ()
53119 main ();
53121 return 0;
53123 _ACEOF
53124 rm -f conftest.$ac_objext conftest$ac_exeext
53125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53126 (eval $ac_link) 2>conftest.er1
53127 ac_status=$?
53128 grep -v '^ *+' conftest.er1 >conftest.err
53129 rm -f conftest.er1
53130 cat conftest.err >&5
53131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53132 (exit $ac_status); } &&
53133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53135 (eval $ac_try) 2>&5
53136 ac_status=$?
53137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53138 (exit $ac_status); }; } &&
53139 { ac_try='test -s conftest$ac_exeext'
53140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53141 (eval $ac_try) 2>&5
53142 ac_status=$?
53143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53144 (exit $ac_status); }; }; then
53145 ac_cv_lib_m_main=yes
53146 else
53147 echo "$as_me: failed program was:" >&5
53148 sed 's/^/| /' conftest.$ac_ext >&5
53150 ac_cv_lib_m_main=no
53152 rm -f conftest.err conftest.$ac_objext \
53153 conftest$ac_exeext conftest.$ac_ext
53154 LIBS=$ac_check_lib_save_LIBS
53156 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53157 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53158 if test $ac_cv_lib_m_main = yes; then
53159 cat >>confdefs.h <<_ACEOF
53160 #define HAVE_LIBM 1
53161 _ACEOF
53163 LIBS="-lm $LIBS"
53169 for ac_func in nan copysignf
53171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53172 echo "$as_me:$LINENO: checking for $ac_func" >&5
53173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53174 if eval "test \"\${$as_ac_var+set}\" = set"; then
53175 echo $ECHO_N "(cached) $ECHO_C" >&6
53176 else
53177 if test x$gcc_no_link = xyes; then
53178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53180 { (exit 1); exit 1; }; }
53182 cat >conftest.$ac_ext <<_ACEOF
53183 /* confdefs.h. */
53184 _ACEOF
53185 cat confdefs.h >>conftest.$ac_ext
53186 cat >>conftest.$ac_ext <<_ACEOF
53187 /* end confdefs.h. */
53188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53190 #define $ac_func innocuous_$ac_func
53192 /* System header to define __stub macros and hopefully few prototypes,
53193 which can conflict with char $ac_func (); below.
53194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53195 <limits.h> exists even on freestanding compilers. */
53197 #ifdef __STDC__
53198 # include <limits.h>
53199 #else
53200 # include <assert.h>
53201 #endif
53203 #undef $ac_func
53205 /* Override any gcc2 internal prototype to avoid an error. */
53206 #ifdef __cplusplus
53207 extern "C"
53209 #endif
53210 /* We use char because int might match the return type of a gcc2
53211 builtin and then its argument prototype would still apply. */
53212 char $ac_func ();
53213 /* The GNU C library defines this for functions which it implements
53214 to always fail with ENOSYS. Some functions are actually named
53215 something starting with __ and the normal name is an alias. */
53216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53217 choke me
53218 #else
53219 char (*f) () = $ac_func;
53220 #endif
53221 #ifdef __cplusplus
53223 #endif
53226 main ()
53228 return f != $ac_func;
53230 return 0;
53232 _ACEOF
53233 rm -f conftest.$ac_objext conftest$ac_exeext
53234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53235 (eval $ac_link) 2>conftest.er1
53236 ac_status=$?
53237 grep -v '^ *+' conftest.er1 >conftest.err
53238 rm -f conftest.er1
53239 cat conftest.err >&5
53240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53241 (exit $ac_status); } &&
53242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53244 (eval $ac_try) 2>&5
53245 ac_status=$?
53246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53247 (exit $ac_status); }; } &&
53248 { ac_try='test -s conftest$ac_exeext'
53249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53250 (eval $ac_try) 2>&5
53251 ac_status=$?
53252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53253 (exit $ac_status); }; }; then
53254 eval "$as_ac_var=yes"
53255 else
53256 echo "$as_me: failed program was:" >&5
53257 sed 's/^/| /' conftest.$ac_ext >&5
53259 eval "$as_ac_var=no"
53261 rm -f conftest.err conftest.$ac_objext \
53262 conftest$ac_exeext conftest.$ac_ext
53264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53266 if test `eval echo '${'$as_ac_var'}'` = yes; then
53267 cat >>confdefs.h <<_ACEOF
53268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53269 _ACEOF
53271 else
53272 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53274 done
53278 for ac_func in __signbit
53280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53281 echo "$as_me:$LINENO: checking for $ac_func" >&5
53282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53283 if eval "test \"\${$as_ac_var+set}\" = set"; then
53284 echo $ECHO_N "(cached) $ECHO_C" >&6
53285 else
53286 if test x$gcc_no_link = xyes; then
53287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53289 { (exit 1); exit 1; }; }
53291 cat >conftest.$ac_ext <<_ACEOF
53292 /* confdefs.h. */
53293 _ACEOF
53294 cat confdefs.h >>conftest.$ac_ext
53295 cat >>conftest.$ac_ext <<_ACEOF
53296 /* end confdefs.h. */
53297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53299 #define $ac_func innocuous_$ac_func
53301 /* System header to define __stub macros and hopefully few prototypes,
53302 which can conflict with char $ac_func (); below.
53303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53304 <limits.h> exists even on freestanding compilers. */
53306 #ifdef __STDC__
53307 # include <limits.h>
53308 #else
53309 # include <assert.h>
53310 #endif
53312 #undef $ac_func
53314 /* Override any gcc2 internal prototype to avoid an error. */
53315 #ifdef __cplusplus
53316 extern "C"
53318 #endif
53319 /* We use char because int might match the return type of a gcc2
53320 builtin and then its argument prototype would still apply. */
53321 char $ac_func ();
53322 /* The GNU C library defines this for functions which it implements
53323 to always fail with ENOSYS. Some functions are actually named
53324 something starting with __ and the normal name is an alias. */
53325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53326 choke me
53327 #else
53328 char (*f) () = $ac_func;
53329 #endif
53330 #ifdef __cplusplus
53332 #endif
53335 main ()
53337 return f != $ac_func;
53339 return 0;
53341 _ACEOF
53342 rm -f conftest.$ac_objext conftest$ac_exeext
53343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53344 (eval $ac_link) 2>conftest.er1
53345 ac_status=$?
53346 grep -v '^ *+' conftest.er1 >conftest.err
53347 rm -f conftest.er1
53348 cat conftest.err >&5
53349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53350 (exit $ac_status); } &&
53351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53353 (eval $ac_try) 2>&5
53354 ac_status=$?
53355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53356 (exit $ac_status); }; } &&
53357 { ac_try='test -s conftest$ac_exeext'
53358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53359 (eval $ac_try) 2>&5
53360 ac_status=$?
53361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53362 (exit $ac_status); }; }; then
53363 eval "$as_ac_var=yes"
53364 else
53365 echo "$as_me: failed program was:" >&5
53366 sed 's/^/| /' conftest.$ac_ext >&5
53368 eval "$as_ac_var=no"
53370 rm -f conftest.err conftest.$ac_objext \
53371 conftest$ac_exeext conftest.$ac_ext
53373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53375 if test `eval echo '${'$as_ac_var'}'` = yes; then
53376 cat >>confdefs.h <<_ACEOF
53377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53378 _ACEOF
53380 else
53381 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53383 done
53386 for ac_func in __signbitf
53388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53389 echo "$as_me:$LINENO: checking for $ac_func" >&5
53390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53391 if eval "test \"\${$as_ac_var+set}\" = set"; then
53392 echo $ECHO_N "(cached) $ECHO_C" >&6
53393 else
53394 if test x$gcc_no_link = xyes; then
53395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53397 { (exit 1); exit 1; }; }
53399 cat >conftest.$ac_ext <<_ACEOF
53400 /* confdefs.h. */
53401 _ACEOF
53402 cat confdefs.h >>conftest.$ac_ext
53403 cat >>conftest.$ac_ext <<_ACEOF
53404 /* end confdefs.h. */
53405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53407 #define $ac_func innocuous_$ac_func
53409 /* System header to define __stub macros and hopefully few prototypes,
53410 which can conflict with char $ac_func (); below.
53411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53412 <limits.h> exists even on freestanding compilers. */
53414 #ifdef __STDC__
53415 # include <limits.h>
53416 #else
53417 # include <assert.h>
53418 #endif
53420 #undef $ac_func
53422 /* Override any gcc2 internal prototype to avoid an error. */
53423 #ifdef __cplusplus
53424 extern "C"
53426 #endif
53427 /* We use char because int might match the return type of a gcc2
53428 builtin and then its argument prototype would still apply. */
53429 char $ac_func ();
53430 /* The GNU C library defines this for functions which it implements
53431 to always fail with ENOSYS. Some functions are actually named
53432 something starting with __ and the normal name is an alias. */
53433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53434 choke me
53435 #else
53436 char (*f) () = $ac_func;
53437 #endif
53438 #ifdef __cplusplus
53440 #endif
53443 main ()
53445 return f != $ac_func;
53447 return 0;
53449 _ACEOF
53450 rm -f conftest.$ac_objext conftest$ac_exeext
53451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53452 (eval $ac_link) 2>conftest.er1
53453 ac_status=$?
53454 grep -v '^ *+' conftest.er1 >conftest.err
53455 rm -f conftest.er1
53456 cat conftest.err >&5
53457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53458 (exit $ac_status); } &&
53459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53461 (eval $ac_try) 2>&5
53462 ac_status=$?
53463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53464 (exit $ac_status); }; } &&
53465 { ac_try='test -s conftest$ac_exeext'
53466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53467 (eval $ac_try) 2>&5
53468 ac_status=$?
53469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53470 (exit $ac_status); }; }; then
53471 eval "$as_ac_var=yes"
53472 else
53473 echo "$as_me: failed program was:" >&5
53474 sed 's/^/| /' conftest.$ac_ext >&5
53476 eval "$as_ac_var=no"
53478 rm -f conftest.err conftest.$ac_objext \
53479 conftest$ac_exeext conftest.$ac_ext
53481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53483 if test `eval echo '${'$as_ac_var'}'` = yes; then
53484 cat >>confdefs.h <<_ACEOF
53485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53486 _ACEOF
53488 else
53489 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53491 done
53494 if test x$ac_cv_func_copysignl = x"yes"; then
53496 for ac_func in __signbitl
53498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53499 echo "$as_me:$LINENO: checking for $ac_func" >&5
53500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53501 if eval "test \"\${$as_ac_var+set}\" = set"; then
53502 echo $ECHO_N "(cached) $ECHO_C" >&6
53503 else
53504 if test x$gcc_no_link = xyes; then
53505 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53506 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53507 { (exit 1); exit 1; }; }
53509 cat >conftest.$ac_ext <<_ACEOF
53510 /* confdefs.h. */
53511 _ACEOF
53512 cat confdefs.h >>conftest.$ac_ext
53513 cat >>conftest.$ac_ext <<_ACEOF
53514 /* end confdefs.h. */
53515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53517 #define $ac_func innocuous_$ac_func
53519 /* System header to define __stub macros and hopefully few prototypes,
53520 which can conflict with char $ac_func (); below.
53521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53522 <limits.h> exists even on freestanding compilers. */
53524 #ifdef __STDC__
53525 # include <limits.h>
53526 #else
53527 # include <assert.h>
53528 #endif
53530 #undef $ac_func
53532 /* Override any gcc2 internal prototype to avoid an error. */
53533 #ifdef __cplusplus
53534 extern "C"
53536 #endif
53537 /* We use char because int might match the return type of a gcc2
53538 builtin and then its argument prototype would still apply. */
53539 char $ac_func ();
53540 /* The GNU C library defines this for functions which it implements
53541 to always fail with ENOSYS. Some functions are actually named
53542 something starting with __ and the normal name is an alias. */
53543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53544 choke me
53545 #else
53546 char (*f) () = $ac_func;
53547 #endif
53548 #ifdef __cplusplus
53550 #endif
53553 main ()
53555 return f != $ac_func;
53557 return 0;
53559 _ACEOF
53560 rm -f conftest.$ac_objext conftest$ac_exeext
53561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53562 (eval $ac_link) 2>conftest.er1
53563 ac_status=$?
53564 grep -v '^ *+' conftest.er1 >conftest.err
53565 rm -f conftest.er1
53566 cat conftest.err >&5
53567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53568 (exit $ac_status); } &&
53569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53571 (eval $ac_try) 2>&5
53572 ac_status=$?
53573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53574 (exit $ac_status); }; } &&
53575 { ac_try='test -s conftest$ac_exeext'
53576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53577 (eval $ac_try) 2>&5
53578 ac_status=$?
53579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53580 (exit $ac_status); }; }; then
53581 eval "$as_ac_var=yes"
53582 else
53583 echo "$as_me: failed program was:" >&5
53584 sed 's/^/| /' conftest.$ac_ext >&5
53586 eval "$as_ac_var=no"
53588 rm -f conftest.err conftest.$ac_objext \
53589 conftest$ac_exeext conftest.$ac_ext
53591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53593 if test `eval echo '${'$as_ac_var'}'` = yes; then
53594 cat >>confdefs.h <<_ACEOF
53595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53596 _ACEOF
53598 else
53599 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53601 done
53605 # XXX Review this. Nothing uses it.
53606 if test -n "$LIBMATHOBJS"; then
53607 need_libmath=yes
53612 # Test wchar.h for mbstate_t, which is needed for char_traits and
53613 # others even if wchar_t support is not on.
53614 echo "$as_me:$LINENO: checking for mbstate_t" >&5
53615 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53616 cat >conftest.$ac_ext <<_ACEOF
53617 /* confdefs.h. */
53618 _ACEOF
53619 cat confdefs.h >>conftest.$ac_ext
53620 cat >>conftest.$ac_ext <<_ACEOF
53621 /* end confdefs.h. */
53622 #include <wchar.h>
53624 main ()
53626 mbstate_t teststate;
53628 return 0;
53630 _ACEOF
53631 rm -f conftest.$ac_objext
53632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53633 (eval $ac_compile) 2>conftest.er1
53634 ac_status=$?
53635 grep -v '^ *+' conftest.er1 >conftest.err
53636 rm -f conftest.er1
53637 cat conftest.err >&5
53638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53639 (exit $ac_status); } &&
53640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53642 (eval $ac_try) 2>&5
53643 ac_status=$?
53644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53645 (exit $ac_status); }; } &&
53646 { ac_try='test -s conftest.$ac_objext'
53647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53648 (eval $ac_try) 2>&5
53649 ac_status=$?
53650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53651 (exit $ac_status); }; }; then
53652 have_mbstate_t=yes
53653 else
53654 echo "$as_me: failed program was:" >&5
53655 sed 's/^/| /' conftest.$ac_ext >&5
53657 have_mbstate_t=no
53659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53660 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53661 echo "${ECHO_T}$have_mbstate_t" >&6
53662 if test x"$have_mbstate_t" = xyes; then
53663 cat >>confdefs.h <<\_ACEOF
53664 #define HAVE_MBSTATE_T 1
53665 _ACEOF
53669 # Sanity check for existence of ISO C99 headers for extended encoding.
53671 for ac_header in wchar.h
53673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53675 echo "$as_me:$LINENO: checking for $ac_header" >&5
53676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53678 echo $ECHO_N "(cached) $ECHO_C" >&6
53680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53682 else
53683 # Is the header compilable?
53684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53686 cat >conftest.$ac_ext <<_ACEOF
53687 /* confdefs.h. */
53688 _ACEOF
53689 cat confdefs.h >>conftest.$ac_ext
53690 cat >>conftest.$ac_ext <<_ACEOF
53691 /* end confdefs.h. */
53692 $ac_includes_default
53693 #include <$ac_header>
53694 _ACEOF
53695 rm -f conftest.$ac_objext
53696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53697 (eval $ac_compile) 2>conftest.er1
53698 ac_status=$?
53699 grep -v '^ *+' conftest.er1 >conftest.err
53700 rm -f conftest.er1
53701 cat conftest.err >&5
53702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53703 (exit $ac_status); } &&
53704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53706 (eval $ac_try) 2>&5
53707 ac_status=$?
53708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53709 (exit $ac_status); }; } &&
53710 { ac_try='test -s conftest.$ac_objext'
53711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53712 (eval $ac_try) 2>&5
53713 ac_status=$?
53714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53715 (exit $ac_status); }; }; then
53716 ac_header_compiler=yes
53717 else
53718 echo "$as_me: failed program was:" >&5
53719 sed 's/^/| /' conftest.$ac_ext >&5
53721 ac_header_compiler=no
53723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53725 echo "${ECHO_T}$ac_header_compiler" >&6
53727 # Is the header present?
53728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53730 cat >conftest.$ac_ext <<_ACEOF
53731 /* confdefs.h. */
53732 _ACEOF
53733 cat confdefs.h >>conftest.$ac_ext
53734 cat >>conftest.$ac_ext <<_ACEOF
53735 /* end confdefs.h. */
53736 #include <$ac_header>
53737 _ACEOF
53738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53740 ac_status=$?
53741 grep -v '^ *+' conftest.er1 >conftest.err
53742 rm -f conftest.er1
53743 cat conftest.err >&5
53744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53745 (exit $ac_status); } >/dev/null; then
53746 if test -s conftest.err; then
53747 ac_cpp_err=$ac_c_preproc_warn_flag
53748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53749 else
53750 ac_cpp_err=
53752 else
53753 ac_cpp_err=yes
53755 if test -z "$ac_cpp_err"; then
53756 ac_header_preproc=yes
53757 else
53758 echo "$as_me: failed program was:" >&5
53759 sed 's/^/| /' conftest.$ac_ext >&5
53761 ac_header_preproc=no
53763 rm -f conftest.err conftest.$ac_ext
53764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53765 echo "${ECHO_T}$ac_header_preproc" >&6
53767 # So? What about this header?
53768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53769 yes:no: )
53770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53774 ac_header_preproc=yes
53776 no:yes:* )
53777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53790 cat <<\_ASBOX
53791 ## ----------------------------------------- ##
53792 ## Report this to the package-unused lists. ##
53793 ## ----------------------------------------- ##
53794 _ASBOX
53796 sed "s/^/$as_me: WARNING: /" >&2
53798 esac
53799 echo "$as_me:$LINENO: checking for $ac_header" >&5
53800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53802 echo $ECHO_N "(cached) $ECHO_C" >&6
53803 else
53804 eval "$as_ac_Header=\$ac_header_preproc"
53806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53811 cat >>confdefs.h <<_ACEOF
53812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53813 _ACEOF
53814 ac_has_wchar_h=yes
53815 else
53816 ac_has_wchar_h=no
53819 done
53822 for ac_header in wctype.h
53824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53826 echo "$as_me:$LINENO: checking for $ac_header" >&5
53827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53829 echo $ECHO_N "(cached) $ECHO_C" >&6
53831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53833 else
53834 # Is the header compilable?
53835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53837 cat >conftest.$ac_ext <<_ACEOF
53838 /* confdefs.h. */
53839 _ACEOF
53840 cat confdefs.h >>conftest.$ac_ext
53841 cat >>conftest.$ac_ext <<_ACEOF
53842 /* end confdefs.h. */
53843 $ac_includes_default
53844 #include <$ac_header>
53845 _ACEOF
53846 rm -f conftest.$ac_objext
53847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53848 (eval $ac_compile) 2>conftest.er1
53849 ac_status=$?
53850 grep -v '^ *+' conftest.er1 >conftest.err
53851 rm -f conftest.er1
53852 cat conftest.err >&5
53853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53854 (exit $ac_status); } &&
53855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
53856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53857 (eval $ac_try) 2>&5
53858 ac_status=$?
53859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53860 (exit $ac_status); }; } &&
53861 { ac_try='test -s conftest.$ac_objext'
53862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53863 (eval $ac_try) 2>&5
53864 ac_status=$?
53865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53866 (exit $ac_status); }; }; then
53867 ac_header_compiler=yes
53868 else
53869 echo "$as_me: failed program was:" >&5
53870 sed 's/^/| /' conftest.$ac_ext >&5
53872 ac_header_compiler=no
53874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53876 echo "${ECHO_T}$ac_header_compiler" >&6
53878 # Is the header present?
53879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53881 cat >conftest.$ac_ext <<_ACEOF
53882 /* confdefs.h. */
53883 _ACEOF
53884 cat confdefs.h >>conftest.$ac_ext
53885 cat >>conftest.$ac_ext <<_ACEOF
53886 /* end confdefs.h. */
53887 #include <$ac_header>
53888 _ACEOF
53889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53891 ac_status=$?
53892 grep -v '^ *+' conftest.er1 >conftest.err
53893 rm -f conftest.er1
53894 cat conftest.err >&5
53895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53896 (exit $ac_status); } >/dev/null; then
53897 if test -s conftest.err; then
53898 ac_cpp_err=$ac_c_preproc_warn_flag
53899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53900 else
53901 ac_cpp_err=
53903 else
53904 ac_cpp_err=yes
53906 if test -z "$ac_cpp_err"; then
53907 ac_header_preproc=yes
53908 else
53909 echo "$as_me: failed program was:" >&5
53910 sed 's/^/| /' conftest.$ac_ext >&5
53912 ac_header_preproc=no
53914 rm -f conftest.err conftest.$ac_ext
53915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53916 echo "${ECHO_T}$ac_header_preproc" >&6
53918 # So? What about this header?
53919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53920 yes:no: )
53921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53925 ac_header_preproc=yes
53927 no:yes:* )
53928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53941 cat <<\_ASBOX
53942 ## ----------------------------------------- ##
53943 ## Report this to the package-unused lists. ##
53944 ## ----------------------------------------- ##
53945 _ASBOX
53947 sed "s/^/$as_me: WARNING: /" >&2
53949 esac
53950 echo "$as_me:$LINENO: checking for $ac_header" >&5
53951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53953 echo $ECHO_N "(cached) $ECHO_C" >&6
53954 else
53955 eval "$as_ac_Header=\$ac_header_preproc"
53957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53962 cat >>confdefs.h <<_ACEOF
53963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53964 _ACEOF
53965 ac_has_wctype_h=yes
53966 else
53967 ac_has_wctype_h=no
53970 done
53973 # Only continue checking if the ISO C99 headers exist and support is on.
53974 if test x"$ac_has_wchar_h" = xyes &&
53975 test x"$ac_has_wctype_h" = xyes &&
53976 test x"$enable_c_mbchar" != xno; then
53978 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
53979 # numeric_limits can instantiate type_traits<wchar_t>
53980 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
53981 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
53982 cat >conftest.$ac_ext <<_ACEOF
53983 /* confdefs.h. */
53984 _ACEOF
53985 cat confdefs.h >>conftest.$ac_ext
53986 cat >>conftest.$ac_ext <<_ACEOF
53987 /* end confdefs.h. */
53988 #include <wchar.h>
53990 main ()
53992 int i = WCHAR_MIN; int j = WCHAR_MAX;
53994 return 0;
53996 _ACEOF
53997 rm -f conftest.$ac_objext
53998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53999 (eval $ac_compile) 2>conftest.er1
54000 ac_status=$?
54001 grep -v '^ *+' conftest.er1 >conftest.err
54002 rm -f conftest.er1
54003 cat conftest.err >&5
54004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54005 (exit $ac_status); } &&
54006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54008 (eval $ac_try) 2>&5
54009 ac_status=$?
54010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54011 (exit $ac_status); }; } &&
54012 { ac_try='test -s conftest.$ac_objext'
54013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54014 (eval $ac_try) 2>&5
54015 ac_status=$?
54016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54017 (exit $ac_status); }; }; then
54018 has_wchar_minmax=yes
54019 else
54020 echo "$as_me: failed program was:" >&5
54021 sed 's/^/| /' conftest.$ac_ext >&5
54023 has_wchar_minmax=no
54025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54026 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54027 echo "${ECHO_T}$has_wchar_minmax" >&6
54029 # Test wchar.h for WEOF, which is what we use to determine whether
54030 # to specialize for char_traits<wchar_t> or not.
54031 echo "$as_me:$LINENO: checking for WEOF" >&5
54032 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54033 cat >conftest.$ac_ext <<_ACEOF
54034 /* confdefs.h. */
54035 _ACEOF
54036 cat confdefs.h >>conftest.$ac_ext
54037 cat >>conftest.$ac_ext <<_ACEOF
54038 /* end confdefs.h. */
54040 #include <wchar.h>
54041 #include <stddef.h>
54043 main ()
54045 wint_t i = WEOF;
54047 return 0;
54049 _ACEOF
54050 rm -f conftest.$ac_objext
54051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54052 (eval $ac_compile) 2>conftest.er1
54053 ac_status=$?
54054 grep -v '^ *+' conftest.er1 >conftest.err
54055 rm -f conftest.er1
54056 cat conftest.err >&5
54057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54058 (exit $ac_status); } &&
54059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54061 (eval $ac_try) 2>&5
54062 ac_status=$?
54063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54064 (exit $ac_status); }; } &&
54065 { ac_try='test -s conftest.$ac_objext'
54066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54067 (eval $ac_try) 2>&5
54068 ac_status=$?
54069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54070 (exit $ac_status); }; }; then
54071 has_weof=yes
54072 else
54073 echo "$as_me: failed program was:" >&5
54074 sed 's/^/| /' conftest.$ac_ext >&5
54076 has_weof=no
54078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54079 echo "$as_me:$LINENO: result: $has_weof" >&5
54080 echo "${ECHO_T}$has_weof" >&6
54082 # Tests for wide character functions used in char_traits<wchar_t>.
54083 ac_wfuncs=yes
54090 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54093 echo "$as_me:$LINENO: checking for $ac_func" >&5
54094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54095 if eval "test \"\${$as_ac_var+set}\" = set"; then
54096 echo $ECHO_N "(cached) $ECHO_C" >&6
54097 else
54098 if test x$gcc_no_link = xyes; then
54099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54101 { (exit 1); exit 1; }; }
54103 cat >conftest.$ac_ext <<_ACEOF
54104 /* confdefs.h. */
54105 _ACEOF
54106 cat confdefs.h >>conftest.$ac_ext
54107 cat >>conftest.$ac_ext <<_ACEOF
54108 /* end confdefs.h. */
54109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54111 #define $ac_func innocuous_$ac_func
54113 /* System header to define __stub macros and hopefully few prototypes,
54114 which can conflict with char $ac_func (); below.
54115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54116 <limits.h> exists even on freestanding compilers. */
54118 #ifdef __STDC__
54119 # include <limits.h>
54120 #else
54121 # include <assert.h>
54122 #endif
54124 #undef $ac_func
54126 /* Override any gcc2 internal prototype to avoid an error. */
54127 #ifdef __cplusplus
54128 extern "C"
54130 #endif
54131 /* We use char because int might match the return type of a gcc2
54132 builtin and then its argument prototype would still apply. */
54133 char $ac_func ();
54134 /* The GNU C library defines this for functions which it implements
54135 to always fail with ENOSYS. Some functions are actually named
54136 something starting with __ and the normal name is an alias. */
54137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54138 choke me
54139 #else
54140 char (*f) () = $ac_func;
54141 #endif
54142 #ifdef __cplusplus
54144 #endif
54147 main ()
54149 return f != $ac_func;
54151 return 0;
54153 _ACEOF
54154 rm -f conftest.$ac_objext conftest$ac_exeext
54155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54156 (eval $ac_link) 2>conftest.er1
54157 ac_status=$?
54158 grep -v '^ *+' conftest.er1 >conftest.err
54159 rm -f conftest.er1
54160 cat conftest.err >&5
54161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54162 (exit $ac_status); } &&
54163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54165 (eval $ac_try) 2>&5
54166 ac_status=$?
54167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54168 (exit $ac_status); }; } &&
54169 { ac_try='test -s conftest$ac_exeext'
54170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54171 (eval $ac_try) 2>&5
54172 ac_status=$?
54173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54174 (exit $ac_status); }; }; then
54175 eval "$as_ac_var=yes"
54176 else
54177 echo "$as_me: failed program was:" >&5
54178 sed 's/^/| /' conftest.$ac_ext >&5
54180 eval "$as_ac_var=no"
54182 rm -f conftest.err conftest.$ac_objext \
54183 conftest$ac_exeext conftest.$ac_ext
54185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54187 if test `eval echo '${'$as_ac_var'}'` = yes; then
54188 cat >>confdefs.h <<_ACEOF
54189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54190 _ACEOF
54192 else
54193 ac_wfuncs=no
54195 done
54198 # Checks for names injected into std:: by the c_std headers.
54245 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54246 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54247 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54248 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54249 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54250 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54253 echo "$as_me:$LINENO: checking for $ac_func" >&5
54254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54255 if eval "test \"\${$as_ac_var+set}\" = set"; then
54256 echo $ECHO_N "(cached) $ECHO_C" >&6
54257 else
54258 if test x$gcc_no_link = xyes; then
54259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54261 { (exit 1); exit 1; }; }
54263 cat >conftest.$ac_ext <<_ACEOF
54264 /* confdefs.h. */
54265 _ACEOF
54266 cat confdefs.h >>conftest.$ac_ext
54267 cat >>conftest.$ac_ext <<_ACEOF
54268 /* end confdefs.h. */
54269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54271 #define $ac_func innocuous_$ac_func
54273 /* System header to define __stub macros and hopefully few prototypes,
54274 which can conflict with char $ac_func (); below.
54275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54276 <limits.h> exists even on freestanding compilers. */
54278 #ifdef __STDC__
54279 # include <limits.h>
54280 #else
54281 # include <assert.h>
54282 #endif
54284 #undef $ac_func
54286 /* Override any gcc2 internal prototype to avoid an error. */
54287 #ifdef __cplusplus
54288 extern "C"
54290 #endif
54291 /* We use char because int might match the return type of a gcc2
54292 builtin and then its argument prototype would still apply. */
54293 char $ac_func ();
54294 /* The GNU C library defines this for functions which it implements
54295 to always fail with ENOSYS. Some functions are actually named
54296 something starting with __ and the normal name is an alias. */
54297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54298 choke me
54299 #else
54300 char (*f) () = $ac_func;
54301 #endif
54302 #ifdef __cplusplus
54304 #endif
54307 main ()
54309 return f != $ac_func;
54311 return 0;
54313 _ACEOF
54314 rm -f conftest.$ac_objext conftest$ac_exeext
54315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54316 (eval $ac_link) 2>conftest.er1
54317 ac_status=$?
54318 grep -v '^ *+' conftest.er1 >conftest.err
54319 rm -f conftest.er1
54320 cat conftest.err >&5
54321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54322 (exit $ac_status); } &&
54323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54325 (eval $ac_try) 2>&5
54326 ac_status=$?
54327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54328 (exit $ac_status); }; } &&
54329 { ac_try='test -s conftest$ac_exeext'
54330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54331 (eval $ac_try) 2>&5
54332 ac_status=$?
54333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54334 (exit $ac_status); }; }; then
54335 eval "$as_ac_var=yes"
54336 else
54337 echo "$as_me: failed program was:" >&5
54338 sed 's/^/| /' conftest.$ac_ext >&5
54340 eval "$as_ac_var=no"
54342 rm -f conftest.err conftest.$ac_objext \
54343 conftest$ac_exeext conftest.$ac_ext
54345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54347 if test `eval echo '${'$as_ac_var'}'` = yes; then
54348 cat >>confdefs.h <<_ACEOF
54349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54350 _ACEOF
54352 else
54353 ac_wfuncs=no
54355 done
54358 # Checks for wide character functions that are not required
54359 # for basic wchar_t support. Don't disable support if they are missing.
54360 # Injection of these is wrapped with guard macros.
54366 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
54368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54369 echo "$as_me:$LINENO: checking for $ac_func" >&5
54370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54371 if eval "test \"\${$as_ac_var+set}\" = set"; then
54372 echo $ECHO_N "(cached) $ECHO_C" >&6
54373 else
54374 if test x$gcc_no_link = xyes; then
54375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54377 { (exit 1); exit 1; }; }
54379 cat >conftest.$ac_ext <<_ACEOF
54380 /* confdefs.h. */
54381 _ACEOF
54382 cat confdefs.h >>conftest.$ac_ext
54383 cat >>conftest.$ac_ext <<_ACEOF
54384 /* end confdefs.h. */
54385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54387 #define $ac_func innocuous_$ac_func
54389 /* System header to define __stub macros and hopefully few prototypes,
54390 which can conflict with char $ac_func (); below.
54391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54392 <limits.h> exists even on freestanding compilers. */
54394 #ifdef __STDC__
54395 # include <limits.h>
54396 #else
54397 # include <assert.h>
54398 #endif
54400 #undef $ac_func
54402 /* Override any gcc2 internal prototype to avoid an error. */
54403 #ifdef __cplusplus
54404 extern "C"
54406 #endif
54407 /* We use char because int might match the return type of a gcc2
54408 builtin and then its argument prototype would still apply. */
54409 char $ac_func ();
54410 /* The GNU C library defines this for functions which it implements
54411 to always fail with ENOSYS. Some functions are actually named
54412 something starting with __ and the normal name is an alias. */
54413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54414 choke me
54415 #else
54416 char (*f) () = $ac_func;
54417 #endif
54418 #ifdef __cplusplus
54420 #endif
54423 main ()
54425 return f != $ac_func;
54427 return 0;
54429 _ACEOF
54430 rm -f conftest.$ac_objext conftest$ac_exeext
54431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54432 (eval $ac_link) 2>conftest.er1
54433 ac_status=$?
54434 grep -v '^ *+' conftest.er1 >conftest.err
54435 rm -f conftest.er1
54436 cat conftest.err >&5
54437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54438 (exit $ac_status); } &&
54439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54441 (eval $ac_try) 2>&5
54442 ac_status=$?
54443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54444 (exit $ac_status); }; } &&
54445 { ac_try='test -s conftest$ac_exeext'
54446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54447 (eval $ac_try) 2>&5
54448 ac_status=$?
54449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54450 (exit $ac_status); }; }; then
54451 eval "$as_ac_var=yes"
54452 else
54453 echo "$as_me: failed program was:" >&5
54454 sed 's/^/| /' conftest.$ac_ext >&5
54456 eval "$as_ac_var=no"
54458 rm -f conftest.err conftest.$ac_objext \
54459 conftest$ac_exeext conftest.$ac_ext
54461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54463 if test `eval echo '${'$as_ac_var'}'` = yes; then
54464 cat >>confdefs.h <<_ACEOF
54465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54466 _ACEOF
54469 done
54472 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
54473 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
54474 if test x"$has_weof" = xyes &&
54475 test x"$has_wchar_minmax" = xyes &&
54476 test x"$ac_wfuncs" = xyes;
54477 then
54478 ac_isoC99_wchar_t=yes
54479 else
54480 ac_isoC99_wchar_t=no
54482 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
54483 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
54485 # Use iconv for wchar_t to char conversions. As such, check for
54486 # X/Open Portability Guide, version 2 features (XPG2).
54487 if test "${ac_cv_header_iconv_h+set}" = set; then
54488 echo "$as_me:$LINENO: checking for iconv.h" >&5
54489 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54490 if test "${ac_cv_header_iconv_h+set}" = set; then
54491 echo $ECHO_N "(cached) $ECHO_C" >&6
54493 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54494 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54495 else
54496 # Is the header compilable?
54497 echo "$as_me:$LINENO: checking iconv.h usability" >&5
54498 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
54499 cat >conftest.$ac_ext <<_ACEOF
54500 /* confdefs.h. */
54501 _ACEOF
54502 cat confdefs.h >>conftest.$ac_ext
54503 cat >>conftest.$ac_ext <<_ACEOF
54504 /* end confdefs.h. */
54505 $ac_includes_default
54506 #include <iconv.h>
54507 _ACEOF
54508 rm -f conftest.$ac_objext
54509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54510 (eval $ac_compile) 2>conftest.er1
54511 ac_status=$?
54512 grep -v '^ *+' conftest.er1 >conftest.err
54513 rm -f conftest.er1
54514 cat conftest.err >&5
54515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54516 (exit $ac_status); } &&
54517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54519 (eval $ac_try) 2>&5
54520 ac_status=$?
54521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54522 (exit $ac_status); }; } &&
54523 { ac_try='test -s conftest.$ac_objext'
54524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54525 (eval $ac_try) 2>&5
54526 ac_status=$?
54527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54528 (exit $ac_status); }; }; then
54529 ac_header_compiler=yes
54530 else
54531 echo "$as_me: failed program was:" >&5
54532 sed 's/^/| /' conftest.$ac_ext >&5
54534 ac_header_compiler=no
54536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54538 echo "${ECHO_T}$ac_header_compiler" >&6
54540 # Is the header present?
54541 echo "$as_me:$LINENO: checking iconv.h presence" >&5
54542 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
54543 cat >conftest.$ac_ext <<_ACEOF
54544 /* confdefs.h. */
54545 _ACEOF
54546 cat confdefs.h >>conftest.$ac_ext
54547 cat >>conftest.$ac_ext <<_ACEOF
54548 /* end confdefs.h. */
54549 #include <iconv.h>
54550 _ACEOF
54551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54553 ac_status=$?
54554 grep -v '^ *+' conftest.er1 >conftest.err
54555 rm -f conftest.er1
54556 cat conftest.err >&5
54557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54558 (exit $ac_status); } >/dev/null; then
54559 if test -s conftest.err; then
54560 ac_cpp_err=$ac_c_preproc_warn_flag
54561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54562 else
54563 ac_cpp_err=
54565 else
54566 ac_cpp_err=yes
54568 if test -z "$ac_cpp_err"; then
54569 ac_header_preproc=yes
54570 else
54571 echo "$as_me: failed program was:" >&5
54572 sed 's/^/| /' conftest.$ac_ext >&5
54574 ac_header_preproc=no
54576 rm -f conftest.err conftest.$ac_ext
54577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54578 echo "${ECHO_T}$ac_header_preproc" >&6
54580 # So? What about this header?
54581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54582 yes:no: )
54583 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
54584 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54585 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
54586 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
54587 ac_header_preproc=yes
54589 no:yes:* )
54590 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
54591 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
54592 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
54593 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
54594 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
54595 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
54596 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
54597 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
54598 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54599 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54600 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
54601 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
54603 cat <<\_ASBOX
54604 ## ----------------------------------------- ##
54605 ## Report this to the package-unused lists. ##
54606 ## ----------------------------------------- ##
54607 _ASBOX
54609 sed "s/^/$as_me: WARNING: /" >&2
54611 esac
54612 echo "$as_me:$LINENO: checking for iconv.h" >&5
54613 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54614 if test "${ac_cv_header_iconv_h+set}" = set; then
54615 echo $ECHO_N "(cached) $ECHO_C" >&6
54616 else
54617 ac_cv_header_iconv_h=$ac_header_preproc
54619 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54620 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54623 if test $ac_cv_header_iconv_h = yes; then
54624 ac_has_iconv_h=yes
54625 else
54626 ac_has_iconv_h=no
54630 if test "${ac_cv_header_langinfo_h+set}" = set; then
54631 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54632 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54633 if test "${ac_cv_header_langinfo_h+set}" = set; then
54634 echo $ECHO_N "(cached) $ECHO_C" >&6
54636 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54637 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54638 else
54639 # Is the header compilable?
54640 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54641 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54642 cat >conftest.$ac_ext <<_ACEOF
54643 /* confdefs.h. */
54644 _ACEOF
54645 cat confdefs.h >>conftest.$ac_ext
54646 cat >>conftest.$ac_ext <<_ACEOF
54647 /* end confdefs.h. */
54648 $ac_includes_default
54649 #include <langinfo.h>
54650 _ACEOF
54651 rm -f conftest.$ac_objext
54652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54653 (eval $ac_compile) 2>conftest.er1
54654 ac_status=$?
54655 grep -v '^ *+' conftest.er1 >conftest.err
54656 rm -f conftest.er1
54657 cat conftest.err >&5
54658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54659 (exit $ac_status); } &&
54660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54662 (eval $ac_try) 2>&5
54663 ac_status=$?
54664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54665 (exit $ac_status); }; } &&
54666 { ac_try='test -s conftest.$ac_objext'
54667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54668 (eval $ac_try) 2>&5
54669 ac_status=$?
54670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54671 (exit $ac_status); }; }; then
54672 ac_header_compiler=yes
54673 else
54674 echo "$as_me: failed program was:" >&5
54675 sed 's/^/| /' conftest.$ac_ext >&5
54677 ac_header_compiler=no
54679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54681 echo "${ECHO_T}$ac_header_compiler" >&6
54683 # Is the header present?
54684 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54685 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54686 cat >conftest.$ac_ext <<_ACEOF
54687 /* confdefs.h. */
54688 _ACEOF
54689 cat confdefs.h >>conftest.$ac_ext
54690 cat >>conftest.$ac_ext <<_ACEOF
54691 /* end confdefs.h. */
54692 #include <langinfo.h>
54693 _ACEOF
54694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54696 ac_status=$?
54697 grep -v '^ *+' conftest.er1 >conftest.err
54698 rm -f conftest.er1
54699 cat conftest.err >&5
54700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54701 (exit $ac_status); } >/dev/null; then
54702 if test -s conftest.err; then
54703 ac_cpp_err=$ac_c_preproc_warn_flag
54704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54705 else
54706 ac_cpp_err=
54708 else
54709 ac_cpp_err=yes
54711 if test -z "$ac_cpp_err"; then
54712 ac_header_preproc=yes
54713 else
54714 echo "$as_me: failed program was:" >&5
54715 sed 's/^/| /' conftest.$ac_ext >&5
54717 ac_header_preproc=no
54719 rm -f conftest.err conftest.$ac_ext
54720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54721 echo "${ECHO_T}$ac_header_preproc" >&6
54723 # So? What about this header?
54724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54725 yes:no: )
54726 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54727 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54728 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
54729 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
54730 ac_header_preproc=yes
54732 no:yes:* )
54733 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54734 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54735 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54736 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54737 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
54738 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
54739 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
54740 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
54741 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54742 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54743 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
54744 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
54746 cat <<\_ASBOX
54747 ## ----------------------------------------- ##
54748 ## Report this to the package-unused lists. ##
54749 ## ----------------------------------------- ##
54750 _ASBOX
54752 sed "s/^/$as_me: WARNING: /" >&2
54754 esac
54755 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54756 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54757 if test "${ac_cv_header_langinfo_h+set}" = set; then
54758 echo $ECHO_N "(cached) $ECHO_C" >&6
54759 else
54760 ac_cv_header_langinfo_h=$ac_header_preproc
54762 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54763 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54766 if test $ac_cv_header_langinfo_h = yes; then
54767 ac_has_langinfo_h=yes
54768 else
54769 ac_has_langinfo_h=no
54774 # Check for existence of libiconv.a providing XPG2 wchar_t support.
54775 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54776 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54777 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54778 echo $ECHO_N "(cached) $ECHO_C" >&6
54779 else
54780 ac_check_lib_save_LIBS=$LIBS
54781 LIBS="-liconv $LIBS"
54782 if test x$gcc_no_link = xyes; then
54783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54785 { (exit 1); exit 1; }; }
54787 cat >conftest.$ac_ext <<_ACEOF
54788 /* confdefs.h. */
54789 _ACEOF
54790 cat confdefs.h >>conftest.$ac_ext
54791 cat >>conftest.$ac_ext <<_ACEOF
54792 /* end confdefs.h. */
54794 /* Override any gcc2 internal prototype to avoid an error. */
54795 #ifdef __cplusplus
54796 extern "C"
54797 #endif
54798 /* We use char because int might match the return type of a gcc2
54799 builtin and then its argument prototype would still apply. */
54800 char iconv ();
54802 main ()
54804 iconv ();
54806 return 0;
54808 _ACEOF
54809 rm -f conftest.$ac_objext conftest$ac_exeext
54810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54811 (eval $ac_link) 2>conftest.er1
54812 ac_status=$?
54813 grep -v '^ *+' conftest.er1 >conftest.err
54814 rm -f conftest.er1
54815 cat conftest.err >&5
54816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54817 (exit $ac_status); } &&
54818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54820 (eval $ac_try) 2>&5
54821 ac_status=$?
54822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54823 (exit $ac_status); }; } &&
54824 { ac_try='test -s conftest$ac_exeext'
54825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54826 (eval $ac_try) 2>&5
54827 ac_status=$?
54828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54829 (exit $ac_status); }; }; then
54830 ac_cv_lib_iconv_iconv=yes
54831 else
54832 echo "$as_me: failed program was:" >&5
54833 sed 's/^/| /' conftest.$ac_ext >&5
54835 ac_cv_lib_iconv_iconv=no
54837 rm -f conftest.err conftest.$ac_objext \
54838 conftest$ac_exeext conftest.$ac_ext
54839 LIBS=$ac_check_lib_save_LIBS
54841 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
54842 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
54843 if test $ac_cv_lib_iconv_iconv = yes; then
54844 libiconv="-liconv"
54847 ac_save_LIBS="$LIBS"
54848 LIBS="$LIBS $libiconv"
54854 for ac_func in iconv_open iconv_close iconv nl_langinfo
54856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54857 echo "$as_me:$LINENO: checking for $ac_func" >&5
54858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54859 if eval "test \"\${$as_ac_var+set}\" = set"; then
54860 echo $ECHO_N "(cached) $ECHO_C" >&6
54861 else
54862 if test x$gcc_no_link = xyes; then
54863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54865 { (exit 1); exit 1; }; }
54867 cat >conftest.$ac_ext <<_ACEOF
54868 /* confdefs.h. */
54869 _ACEOF
54870 cat confdefs.h >>conftest.$ac_ext
54871 cat >>conftest.$ac_ext <<_ACEOF
54872 /* end confdefs.h. */
54873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54875 #define $ac_func innocuous_$ac_func
54877 /* System header to define __stub macros and hopefully few prototypes,
54878 which can conflict with char $ac_func (); below.
54879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54880 <limits.h> exists even on freestanding compilers. */
54882 #ifdef __STDC__
54883 # include <limits.h>
54884 #else
54885 # include <assert.h>
54886 #endif
54888 #undef $ac_func
54890 /* Override any gcc2 internal prototype to avoid an error. */
54891 #ifdef __cplusplus
54892 extern "C"
54894 #endif
54895 /* We use char because int might match the return type of a gcc2
54896 builtin and then its argument prototype would still apply. */
54897 char $ac_func ();
54898 /* The GNU C library defines this for functions which it implements
54899 to always fail with ENOSYS. Some functions are actually named
54900 something starting with __ and the normal name is an alias. */
54901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54902 choke me
54903 #else
54904 char (*f) () = $ac_func;
54905 #endif
54906 #ifdef __cplusplus
54908 #endif
54911 main ()
54913 return f != $ac_func;
54915 return 0;
54917 _ACEOF
54918 rm -f conftest.$ac_objext conftest$ac_exeext
54919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54920 (eval $ac_link) 2>conftest.er1
54921 ac_status=$?
54922 grep -v '^ *+' conftest.er1 >conftest.err
54923 rm -f conftest.er1
54924 cat conftest.err >&5
54925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54926 (exit $ac_status); } &&
54927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54929 (eval $ac_try) 2>&5
54930 ac_status=$?
54931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54932 (exit $ac_status); }; } &&
54933 { ac_try='test -s conftest$ac_exeext'
54934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54935 (eval $ac_try) 2>&5
54936 ac_status=$?
54937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54938 (exit $ac_status); }; }; then
54939 eval "$as_ac_var=yes"
54940 else
54941 echo "$as_me: failed program was:" >&5
54942 sed 's/^/| /' conftest.$ac_ext >&5
54944 eval "$as_ac_var=no"
54946 rm -f conftest.err conftest.$ac_objext \
54947 conftest$ac_exeext conftest.$ac_ext
54949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54951 if test `eval echo '${'$as_ac_var'}'` = yes; then
54952 cat >>confdefs.h <<_ACEOF
54953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54954 _ACEOF
54955 ac_XPG2funcs=yes
54956 else
54957 ac_XPG2funcs=no
54959 done
54962 LIBS="$ac_save_LIBS"
54964 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
54965 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
54966 if test x"$ac_has_iconv_h" = xyes &&
54967 test x"$ac_has_langinfo_h" = xyes &&
54968 test x"$ac_XPG2funcs" = xyes;
54969 then
54970 ac_XPG2_wchar_t=yes
54971 else
54972 ac_XPG2_wchar_t=no
54974 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
54975 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
54977 # At the moment, only enable wchar_t specializations if all the
54978 # above support is present.
54979 if test x"$ac_isoC99_wchar_t" = xyes &&
54980 test x"$ac_XPG2_wchar_t" = xyes;
54981 then
54982 cat >>confdefs.h <<\_ACEOF
54983 #define _GLIBCXX_USE_WCHAR_T 1
54984 _ACEOF
54986 enable_wchar_t=yes
54989 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
54990 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
54991 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
54992 echo "${ECHO_T}$enable_wchar_t" >&6
54994 cat >>confdefs.h <<\_ACEOF
54995 #define HAVE_LC_MESSAGES 1
54996 _ACEOF
54998 cat >>confdefs.h <<\_ACEOF
54999 #define HAVE_GETPAGESIZE 1
55000 _ACEOF
55002 cat >>confdefs.h <<\_ACEOF
55003 #define HAVE_SETENV 1
55004 _ACEOF
55006 cat >>confdefs.h <<\_ACEOF
55007 #define HAVE_SIGSETJMP 1
55008 _ACEOF
55010 cat >>confdefs.h <<\_ACEOF
55011 #define HAVE_COPYSIGN 1
55012 _ACEOF
55014 cat >>confdefs.h <<\_ACEOF
55015 #define HAVE_COPYSIGNF 1
55016 _ACEOF
55018 cat >>confdefs.h <<\_ACEOF
55019 #define HAVE_FINITEF 1
55020 _ACEOF
55022 cat >>confdefs.h <<\_ACEOF
55023 #define HAVE_FINITE 1
55024 _ACEOF
55026 cat >>confdefs.h <<\_ACEOF
55027 #define HAVE_FREXPF 1
55028 _ACEOF
55030 cat >>confdefs.h <<\_ACEOF
55031 #define HAVE_HYPOT 1
55032 _ACEOF
55034 cat >>confdefs.h <<\_ACEOF
55035 #define HAVE_HYPOTF 1
55036 _ACEOF
55038 cat >>confdefs.h <<\_ACEOF
55039 #define HAVE_ISINF 1
55040 _ACEOF
55042 cat >>confdefs.h <<\_ACEOF
55043 #define HAVE_ISNAN 1
55044 _ACEOF
55046 cat >>confdefs.h <<\_ACEOF
55047 #define HAVE_ISNANF 1
55048 _ACEOF
55051 cat >>confdefs.h <<\_ACEOF
55052 #define HAVE_MMAP 1
55053 _ACEOF
55055 cat >>confdefs.h <<\_ACEOF
55056 #define HAVE_ACOSF 1
55057 _ACEOF
55059 cat >>confdefs.h <<\_ACEOF
55060 #define HAVE_ASINF 1
55061 _ACEOF
55063 cat >>confdefs.h <<\_ACEOF
55064 #define HAVE_ATAN2F 1
55065 _ACEOF
55067 cat >>confdefs.h <<\_ACEOF
55068 #define HAVE_ATANF 1
55069 _ACEOF
55071 cat >>confdefs.h <<\_ACEOF
55072 #define HAVE_CEILF 1
55073 _ACEOF
55075 cat >>confdefs.h <<\_ACEOF
55076 #define HAVE_COPYSIGN 1
55077 _ACEOF
55079 cat >>confdefs.h <<\_ACEOF
55080 #define HAVE_COPYSIGNF 1
55081 _ACEOF
55083 cat >>confdefs.h <<\_ACEOF
55084 #define HAVE_COSF 1
55085 _ACEOF
55087 cat >>confdefs.h <<\_ACEOF
55088 #define HAVE_COSHF 1
55089 _ACEOF
55091 cat >>confdefs.h <<\_ACEOF
55092 #define HAVE_EXPF 1
55093 _ACEOF
55095 cat >>confdefs.h <<\_ACEOF
55096 #define HAVE_FABSF 1
55097 _ACEOF
55099 cat >>confdefs.h <<\_ACEOF
55100 #define HAVE_FLOORF 1
55101 _ACEOF
55103 cat >>confdefs.h <<\_ACEOF
55104 #define HAVE_FMODF 1
55105 _ACEOF
55107 cat >>confdefs.h <<\_ACEOF
55108 #define HAVE_FREXPF 1
55109 _ACEOF
55111 cat >>confdefs.h <<\_ACEOF
55112 #define HAVE_LDEXPF 1
55113 _ACEOF
55115 cat >>confdefs.h <<\_ACEOF
55116 #define HAVE_LOG10F 1
55117 _ACEOF
55119 cat >>confdefs.h <<\_ACEOF
55120 #define HAVE_LOGF 1
55121 _ACEOF
55123 cat >>confdefs.h <<\_ACEOF
55124 #define HAVE_MODFF 1
55125 _ACEOF
55127 cat >>confdefs.h <<\_ACEOF
55128 #define HAVE_POWF 1
55129 _ACEOF
55131 cat >>confdefs.h <<\_ACEOF
55132 #define HAVE_SINF 1
55133 _ACEOF
55135 cat >>confdefs.h <<\_ACEOF
55136 #define HAVE_SINHF 1
55137 _ACEOF
55139 cat >>confdefs.h <<\_ACEOF
55140 #define HAVE_SQRTF 1
55141 _ACEOF
55143 cat >>confdefs.h <<\_ACEOF
55144 #define HAVE_TANF 1
55145 _ACEOF
55147 cat >>confdefs.h <<\_ACEOF
55148 #define HAVE_TANHF 1
55149 _ACEOF
55151 if test x"long_double_math_on_this_cpu" = x"yes"; then
55152 cat >>confdefs.h <<\_ACEOF
55153 #define HAVE_FINITEL 1
55154 _ACEOF
55156 cat >>confdefs.h <<\_ACEOF
55157 #define HAVE_ISINFL 1
55158 _ACEOF
55160 cat >>confdefs.h <<\_ACEOF
55161 #define HAVE_ISNANL 1
55162 _ACEOF
55166 *-hpux*)
55179 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55180 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55181 fp.h locale.h float.h inttypes.h
55183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55185 echo "$as_me:$LINENO: checking for $ac_header" >&5
55186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55188 echo $ECHO_N "(cached) $ECHO_C" >&6
55190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55192 else
55193 # Is the header compilable?
55194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55196 cat >conftest.$ac_ext <<_ACEOF
55197 /* confdefs.h. */
55198 _ACEOF
55199 cat confdefs.h >>conftest.$ac_ext
55200 cat >>conftest.$ac_ext <<_ACEOF
55201 /* end confdefs.h. */
55202 $ac_includes_default
55203 #include <$ac_header>
55204 _ACEOF
55205 rm -f conftest.$ac_objext
55206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55207 (eval $ac_compile) 2>conftest.er1
55208 ac_status=$?
55209 grep -v '^ *+' conftest.er1 >conftest.err
55210 rm -f conftest.er1
55211 cat conftest.err >&5
55212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55213 (exit $ac_status); } &&
55214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55216 (eval $ac_try) 2>&5
55217 ac_status=$?
55218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55219 (exit $ac_status); }; } &&
55220 { ac_try='test -s conftest.$ac_objext'
55221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55222 (eval $ac_try) 2>&5
55223 ac_status=$?
55224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55225 (exit $ac_status); }; }; then
55226 ac_header_compiler=yes
55227 else
55228 echo "$as_me: failed program was:" >&5
55229 sed 's/^/| /' conftest.$ac_ext >&5
55231 ac_header_compiler=no
55233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55235 echo "${ECHO_T}$ac_header_compiler" >&6
55237 # Is the header present?
55238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55240 cat >conftest.$ac_ext <<_ACEOF
55241 /* confdefs.h. */
55242 _ACEOF
55243 cat confdefs.h >>conftest.$ac_ext
55244 cat >>conftest.$ac_ext <<_ACEOF
55245 /* end confdefs.h. */
55246 #include <$ac_header>
55247 _ACEOF
55248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55250 ac_status=$?
55251 grep -v '^ *+' conftest.er1 >conftest.err
55252 rm -f conftest.er1
55253 cat conftest.err >&5
55254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55255 (exit $ac_status); } >/dev/null; then
55256 if test -s conftest.err; then
55257 ac_cpp_err=$ac_c_preproc_warn_flag
55258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55259 else
55260 ac_cpp_err=
55262 else
55263 ac_cpp_err=yes
55265 if test -z "$ac_cpp_err"; then
55266 ac_header_preproc=yes
55267 else
55268 echo "$as_me: failed program was:" >&5
55269 sed 's/^/| /' conftest.$ac_ext >&5
55271 ac_header_preproc=no
55273 rm -f conftest.err conftest.$ac_ext
55274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55275 echo "${ECHO_T}$ac_header_preproc" >&6
55277 # So? What about this header?
55278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55279 yes:no: )
55280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55284 ac_header_preproc=yes
55286 no:yes:* )
55287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55300 cat <<\_ASBOX
55301 ## ----------------------------------------- ##
55302 ## Report this to the package-unused lists. ##
55303 ## ----------------------------------------- ##
55304 _ASBOX
55306 sed "s/^/$as_me: WARNING: /" >&2
55308 esac
55309 echo "$as_me:$LINENO: checking for $ac_header" >&5
55310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55312 echo $ECHO_N "(cached) $ECHO_C" >&6
55313 else
55314 eval "$as_ac_Header=\$ac_header_preproc"
55316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55321 cat >>confdefs.h <<_ACEOF
55322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55323 _ACEOF
55327 done
55329 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55332 # If we're not using GNU ld, then there's no point in even trying these
55333 # tests. Check for that first. We should have already tested for gld
55334 # by now (in libtool), but require it now just to be safe...
55335 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55336 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55340 # The name set by libtool depends on the version of libtool. Shame on us
55341 # for depending on an impl detail, but c'est la vie. Older versions used
55342 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55343 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55344 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
55345 # set (hence we're using an older libtool), then set it.
55346 if test x${with_gnu_ld+set} != xset; then
55347 if test x${ac_cv_prog_gnu_ld+set} != xset; then
55348 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
55349 with_gnu_ld=no
55350 else
55351 with_gnu_ld=$ac_cv_prog_gnu_ld
55355 # Start by getting the version number. I think the libtool test already
55356 # does some of this, but throws away the result.
55358 ldver=`$LD --version 2>/dev/null | head -1 | \
55359 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
55361 glibcxx_gnu_ld_version=`echo $ldver | \
55362 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
55364 # Set --gc-sections.
55365 if test "$with_gnu_ld" = "notbroken"; then
55366 # GNU ld it is! Joy and bunny rabbits!
55368 # All these tests are for C++; save the language and the compiler flags.
55369 # Need to do this so that g++ won't try to link in libstdc++
55370 ac_test_CFLAGS="${CFLAGS+set}"
55371 ac_save_CFLAGS="$CFLAGS"
55372 CFLAGS='-x c++ -Wl,--gc-sections'
55374 # Check for -Wl,--gc-sections
55375 # XXX This test is broken at the moment, as symbols required for linking
55376 # are now in libsupc++ (not built yet). In addition, this test has
55377 # cored on solaris in the past. In addition, --gc-sections doesn't
55378 # really work at the moment (keeps on discarding used sections, first
55379 # .eh_frame and now some of the glibc sections for iconv).
55380 # Bzzzzt. Thanks for playing, maybe next time.
55381 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
55382 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
55383 if test "$cross_compiling" = yes; then
55384 ac_sectionLDflags=yes
55385 else
55386 cat >conftest.$ac_ext <<_ACEOF
55387 /* confdefs.h. */
55388 _ACEOF
55389 cat confdefs.h >>conftest.$ac_ext
55390 cat >>conftest.$ac_ext <<_ACEOF
55391 /* end confdefs.h. */
55393 int main(void)
55395 try { throw 1; }
55396 catch (...) { };
55397 return 0;
55400 _ACEOF
55401 rm -f conftest$ac_exeext
55402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55403 (eval $ac_link) 2>&5
55404 ac_status=$?
55405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55408 (eval $ac_try) 2>&5
55409 ac_status=$?
55410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55411 (exit $ac_status); }; }; then
55412 ac_sectionLDflags=yes
55413 else
55414 echo "$as_me: program exited with status $ac_status" >&5
55415 echo "$as_me: failed program was:" >&5
55416 sed 's/^/| /' conftest.$ac_ext >&5
55418 ( exit $ac_status )
55419 ac_sectionLDflags=no
55421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55423 if test "$ac_test_CFLAGS" = set; then
55424 CFLAGS="$ac_save_CFLAGS"
55425 else
55426 # this is the suspicious part
55427 CFLAGS=''
55429 if test "$ac_sectionLDflags" = "yes"; then
55430 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
55432 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
55433 echo "${ECHO_T}$ac_sectionLDflags" >&6
55436 # Set linker optimization flags.
55437 if test x"$with_gnu_ld" = x"yes"; then
55438 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
55446 echo "$as_me:$LINENO: checking for main in -lm" >&5
55447 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
55448 if test "${ac_cv_lib_m_main+set}" = set; then
55449 echo $ECHO_N "(cached) $ECHO_C" >&6
55450 else
55451 ac_check_lib_save_LIBS=$LIBS
55452 LIBS="-lm $LIBS"
55453 if test x$gcc_no_link = xyes; then
55454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55456 { (exit 1); exit 1; }; }
55458 cat >conftest.$ac_ext <<_ACEOF
55459 /* confdefs.h. */
55460 _ACEOF
55461 cat confdefs.h >>conftest.$ac_ext
55462 cat >>conftest.$ac_ext <<_ACEOF
55463 /* end confdefs.h. */
55467 main ()
55469 main ();
55471 return 0;
55473 _ACEOF
55474 rm -f conftest.$ac_objext conftest$ac_exeext
55475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55476 (eval $ac_link) 2>conftest.er1
55477 ac_status=$?
55478 grep -v '^ *+' conftest.er1 >conftest.err
55479 rm -f conftest.er1
55480 cat conftest.err >&5
55481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55482 (exit $ac_status); } &&
55483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55485 (eval $ac_try) 2>&5
55486 ac_status=$?
55487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55488 (exit $ac_status); }; } &&
55489 { ac_try='test -s conftest$ac_exeext'
55490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55491 (eval $ac_try) 2>&5
55492 ac_status=$?
55493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55494 (exit $ac_status); }; }; then
55495 ac_cv_lib_m_main=yes
55496 else
55497 echo "$as_me: failed program was:" >&5
55498 sed 's/^/| /' conftest.$ac_ext >&5
55500 ac_cv_lib_m_main=no
55502 rm -f conftest.err conftest.$ac_objext \
55503 conftest$ac_exeext conftest.$ac_ext
55504 LIBS=$ac_check_lib_save_LIBS
55506 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
55507 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
55508 if test $ac_cv_lib_m_main = yes; then
55509 cat >>confdefs.h <<_ACEOF
55510 #define HAVE_LIBM 1
55511 _ACEOF
55513 LIBS="-lm $LIBS"
55519 for ac_func in nan copysignf
55521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55522 echo "$as_me:$LINENO: checking for $ac_func" >&5
55523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55524 if eval "test \"\${$as_ac_var+set}\" = set"; then
55525 echo $ECHO_N "(cached) $ECHO_C" >&6
55526 else
55527 if test x$gcc_no_link = xyes; then
55528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55530 { (exit 1); exit 1; }; }
55532 cat >conftest.$ac_ext <<_ACEOF
55533 /* confdefs.h. */
55534 _ACEOF
55535 cat confdefs.h >>conftest.$ac_ext
55536 cat >>conftest.$ac_ext <<_ACEOF
55537 /* end confdefs.h. */
55538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55540 #define $ac_func innocuous_$ac_func
55542 /* System header to define __stub macros and hopefully few prototypes,
55543 which can conflict with char $ac_func (); below.
55544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55545 <limits.h> exists even on freestanding compilers. */
55547 #ifdef __STDC__
55548 # include <limits.h>
55549 #else
55550 # include <assert.h>
55551 #endif
55553 #undef $ac_func
55555 /* Override any gcc2 internal prototype to avoid an error. */
55556 #ifdef __cplusplus
55557 extern "C"
55559 #endif
55560 /* We use char because int might match the return type of a gcc2
55561 builtin and then its argument prototype would still apply. */
55562 char $ac_func ();
55563 /* The GNU C library defines this for functions which it implements
55564 to always fail with ENOSYS. Some functions are actually named
55565 something starting with __ and the normal name is an alias. */
55566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55567 choke me
55568 #else
55569 char (*f) () = $ac_func;
55570 #endif
55571 #ifdef __cplusplus
55573 #endif
55576 main ()
55578 return f != $ac_func;
55580 return 0;
55582 _ACEOF
55583 rm -f conftest.$ac_objext conftest$ac_exeext
55584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55585 (eval $ac_link) 2>conftest.er1
55586 ac_status=$?
55587 grep -v '^ *+' conftest.er1 >conftest.err
55588 rm -f conftest.er1
55589 cat conftest.err >&5
55590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55591 (exit $ac_status); } &&
55592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55594 (eval $ac_try) 2>&5
55595 ac_status=$?
55596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55597 (exit $ac_status); }; } &&
55598 { ac_try='test -s conftest$ac_exeext'
55599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55600 (eval $ac_try) 2>&5
55601 ac_status=$?
55602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55603 (exit $ac_status); }; }; then
55604 eval "$as_ac_var=yes"
55605 else
55606 echo "$as_me: failed program was:" >&5
55607 sed 's/^/| /' conftest.$ac_ext >&5
55609 eval "$as_ac_var=no"
55611 rm -f conftest.err conftest.$ac_objext \
55612 conftest$ac_exeext conftest.$ac_ext
55614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55616 if test `eval echo '${'$as_ac_var'}'` = yes; then
55617 cat >>confdefs.h <<_ACEOF
55618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55619 _ACEOF
55621 else
55622 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
55624 done
55628 for ac_func in __signbit
55630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55631 echo "$as_me:$LINENO: checking for $ac_func" >&5
55632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55633 if eval "test \"\${$as_ac_var+set}\" = set"; then
55634 echo $ECHO_N "(cached) $ECHO_C" >&6
55635 else
55636 if test x$gcc_no_link = xyes; then
55637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55639 { (exit 1); exit 1; }; }
55641 cat >conftest.$ac_ext <<_ACEOF
55642 /* confdefs.h. */
55643 _ACEOF
55644 cat confdefs.h >>conftest.$ac_ext
55645 cat >>conftest.$ac_ext <<_ACEOF
55646 /* end confdefs.h. */
55647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55649 #define $ac_func innocuous_$ac_func
55651 /* System header to define __stub macros and hopefully few prototypes,
55652 which can conflict with char $ac_func (); below.
55653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55654 <limits.h> exists even on freestanding compilers. */
55656 #ifdef __STDC__
55657 # include <limits.h>
55658 #else
55659 # include <assert.h>
55660 #endif
55662 #undef $ac_func
55664 /* Override any gcc2 internal prototype to avoid an error. */
55665 #ifdef __cplusplus
55666 extern "C"
55668 #endif
55669 /* We use char because int might match the return type of a gcc2
55670 builtin and then its argument prototype would still apply. */
55671 char $ac_func ();
55672 /* The GNU C library defines this for functions which it implements
55673 to always fail with ENOSYS. Some functions are actually named
55674 something starting with __ and the normal name is an alias. */
55675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55676 choke me
55677 #else
55678 char (*f) () = $ac_func;
55679 #endif
55680 #ifdef __cplusplus
55682 #endif
55685 main ()
55687 return f != $ac_func;
55689 return 0;
55691 _ACEOF
55692 rm -f conftest.$ac_objext conftest$ac_exeext
55693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55694 (eval $ac_link) 2>conftest.er1
55695 ac_status=$?
55696 grep -v '^ *+' conftest.er1 >conftest.err
55697 rm -f conftest.er1
55698 cat conftest.err >&5
55699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55700 (exit $ac_status); } &&
55701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55703 (eval $ac_try) 2>&5
55704 ac_status=$?
55705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55706 (exit $ac_status); }; } &&
55707 { ac_try='test -s conftest$ac_exeext'
55708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55709 (eval $ac_try) 2>&5
55710 ac_status=$?
55711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55712 (exit $ac_status); }; }; then
55713 eval "$as_ac_var=yes"
55714 else
55715 echo "$as_me: failed program was:" >&5
55716 sed 's/^/| /' conftest.$ac_ext >&5
55718 eval "$as_ac_var=no"
55720 rm -f conftest.err conftest.$ac_objext \
55721 conftest$ac_exeext conftest.$ac_ext
55723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55725 if test `eval echo '${'$as_ac_var'}'` = yes; then
55726 cat >>confdefs.h <<_ACEOF
55727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55728 _ACEOF
55730 else
55731 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
55733 done
55736 for ac_func in __signbitf
55738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55739 echo "$as_me:$LINENO: checking for $ac_func" >&5
55740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55741 if eval "test \"\${$as_ac_var+set}\" = set"; then
55742 echo $ECHO_N "(cached) $ECHO_C" >&6
55743 else
55744 if test x$gcc_no_link = xyes; then
55745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55746 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55747 { (exit 1); exit 1; }; }
55749 cat >conftest.$ac_ext <<_ACEOF
55750 /* confdefs.h. */
55751 _ACEOF
55752 cat confdefs.h >>conftest.$ac_ext
55753 cat >>conftest.$ac_ext <<_ACEOF
55754 /* end confdefs.h. */
55755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55757 #define $ac_func innocuous_$ac_func
55759 /* System header to define __stub macros and hopefully few prototypes,
55760 which can conflict with char $ac_func (); below.
55761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55762 <limits.h> exists even on freestanding compilers. */
55764 #ifdef __STDC__
55765 # include <limits.h>
55766 #else
55767 # include <assert.h>
55768 #endif
55770 #undef $ac_func
55772 /* Override any gcc2 internal prototype to avoid an error. */
55773 #ifdef __cplusplus
55774 extern "C"
55776 #endif
55777 /* We use char because int might match the return type of a gcc2
55778 builtin and then its argument prototype would still apply. */
55779 char $ac_func ();
55780 /* The GNU C library defines this for functions which it implements
55781 to always fail with ENOSYS. Some functions are actually named
55782 something starting with __ and the normal name is an alias. */
55783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55784 choke me
55785 #else
55786 char (*f) () = $ac_func;
55787 #endif
55788 #ifdef __cplusplus
55790 #endif
55793 main ()
55795 return f != $ac_func;
55797 return 0;
55799 _ACEOF
55800 rm -f conftest.$ac_objext conftest$ac_exeext
55801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55802 (eval $ac_link) 2>conftest.er1
55803 ac_status=$?
55804 grep -v '^ *+' conftest.er1 >conftest.err
55805 rm -f conftest.er1
55806 cat conftest.err >&5
55807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55808 (exit $ac_status); } &&
55809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55811 (eval $ac_try) 2>&5
55812 ac_status=$?
55813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55814 (exit $ac_status); }; } &&
55815 { ac_try='test -s conftest$ac_exeext'
55816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55817 (eval $ac_try) 2>&5
55818 ac_status=$?
55819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55820 (exit $ac_status); }; }; then
55821 eval "$as_ac_var=yes"
55822 else
55823 echo "$as_me: failed program was:" >&5
55824 sed 's/^/| /' conftest.$ac_ext >&5
55826 eval "$as_ac_var=no"
55828 rm -f conftest.err conftest.$ac_objext \
55829 conftest$ac_exeext conftest.$ac_ext
55831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55833 if test `eval echo '${'$as_ac_var'}'` = yes; then
55834 cat >>confdefs.h <<_ACEOF
55835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55836 _ACEOF
55838 else
55839 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
55841 done
55844 if test x$ac_cv_func_copysignl = x"yes"; then
55846 for ac_func in __signbitl
55848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55849 echo "$as_me:$LINENO: checking for $ac_func" >&5
55850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55851 if eval "test \"\${$as_ac_var+set}\" = set"; then
55852 echo $ECHO_N "(cached) $ECHO_C" >&6
55853 else
55854 if test x$gcc_no_link = xyes; then
55855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55857 { (exit 1); exit 1; }; }
55859 cat >conftest.$ac_ext <<_ACEOF
55860 /* confdefs.h. */
55861 _ACEOF
55862 cat confdefs.h >>conftest.$ac_ext
55863 cat >>conftest.$ac_ext <<_ACEOF
55864 /* end confdefs.h. */
55865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55867 #define $ac_func innocuous_$ac_func
55869 /* System header to define __stub macros and hopefully few prototypes,
55870 which can conflict with char $ac_func (); below.
55871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55872 <limits.h> exists even on freestanding compilers. */
55874 #ifdef __STDC__
55875 # include <limits.h>
55876 #else
55877 # include <assert.h>
55878 #endif
55880 #undef $ac_func
55882 /* Override any gcc2 internal prototype to avoid an error. */
55883 #ifdef __cplusplus
55884 extern "C"
55886 #endif
55887 /* We use char because int might match the return type of a gcc2
55888 builtin and then its argument prototype would still apply. */
55889 char $ac_func ();
55890 /* The GNU C library defines this for functions which it implements
55891 to always fail with ENOSYS. Some functions are actually named
55892 something starting with __ and the normal name is an alias. */
55893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55894 choke me
55895 #else
55896 char (*f) () = $ac_func;
55897 #endif
55898 #ifdef __cplusplus
55900 #endif
55903 main ()
55905 return f != $ac_func;
55907 return 0;
55909 _ACEOF
55910 rm -f conftest.$ac_objext conftest$ac_exeext
55911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55912 (eval $ac_link) 2>conftest.er1
55913 ac_status=$?
55914 grep -v '^ *+' conftest.er1 >conftest.err
55915 rm -f conftest.er1
55916 cat conftest.err >&5
55917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55918 (exit $ac_status); } &&
55919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55921 (eval $ac_try) 2>&5
55922 ac_status=$?
55923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55924 (exit $ac_status); }; } &&
55925 { ac_try='test -s conftest$ac_exeext'
55926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55927 (eval $ac_try) 2>&5
55928 ac_status=$?
55929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55930 (exit $ac_status); }; }; then
55931 eval "$as_ac_var=yes"
55932 else
55933 echo "$as_me: failed program was:" >&5
55934 sed 's/^/| /' conftest.$ac_ext >&5
55936 eval "$as_ac_var=no"
55938 rm -f conftest.err conftest.$ac_objext \
55939 conftest$ac_exeext conftest.$ac_ext
55941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55943 if test `eval echo '${'$as_ac_var'}'` = yes; then
55944 cat >>confdefs.h <<_ACEOF
55945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55946 _ACEOF
55948 else
55949 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55951 done
55955 # XXX Review this. Nothing uses it.
55956 if test -n "$LIBMATHOBJS"; then
55957 need_libmath=yes
55962 # Test wchar.h for mbstate_t, which is needed for char_traits and
55963 # others even if wchar_t support is not on.
55964 echo "$as_me:$LINENO: checking for mbstate_t" >&5
55965 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55966 cat >conftest.$ac_ext <<_ACEOF
55967 /* confdefs.h. */
55968 _ACEOF
55969 cat confdefs.h >>conftest.$ac_ext
55970 cat >>conftest.$ac_ext <<_ACEOF
55971 /* end confdefs.h. */
55972 #include <wchar.h>
55974 main ()
55976 mbstate_t teststate;
55978 return 0;
55980 _ACEOF
55981 rm -f conftest.$ac_objext
55982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55983 (eval $ac_compile) 2>conftest.er1
55984 ac_status=$?
55985 grep -v '^ *+' conftest.er1 >conftest.err
55986 rm -f conftest.er1
55987 cat conftest.err >&5
55988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55989 (exit $ac_status); } &&
55990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
55991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55992 (eval $ac_try) 2>&5
55993 ac_status=$?
55994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55995 (exit $ac_status); }; } &&
55996 { ac_try='test -s conftest.$ac_objext'
55997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55998 (eval $ac_try) 2>&5
55999 ac_status=$?
56000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56001 (exit $ac_status); }; }; then
56002 have_mbstate_t=yes
56003 else
56004 echo "$as_me: failed program was:" >&5
56005 sed 's/^/| /' conftest.$ac_ext >&5
56007 have_mbstate_t=no
56009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56010 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56011 echo "${ECHO_T}$have_mbstate_t" >&6
56012 if test x"$have_mbstate_t" = xyes; then
56013 cat >>confdefs.h <<\_ACEOF
56014 #define HAVE_MBSTATE_T 1
56015 _ACEOF
56019 # Sanity check for existence of ISO C99 headers for extended encoding.
56021 for ac_header in wchar.h
56023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56025 echo "$as_me:$LINENO: checking for $ac_header" >&5
56026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56028 echo $ECHO_N "(cached) $ECHO_C" >&6
56030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56032 else
56033 # Is the header compilable?
56034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56036 cat >conftest.$ac_ext <<_ACEOF
56037 /* confdefs.h. */
56038 _ACEOF
56039 cat confdefs.h >>conftest.$ac_ext
56040 cat >>conftest.$ac_ext <<_ACEOF
56041 /* end confdefs.h. */
56042 $ac_includes_default
56043 #include <$ac_header>
56044 _ACEOF
56045 rm -f conftest.$ac_objext
56046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56047 (eval $ac_compile) 2>conftest.er1
56048 ac_status=$?
56049 grep -v '^ *+' conftest.er1 >conftest.err
56050 rm -f conftest.er1
56051 cat conftest.err >&5
56052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56053 (exit $ac_status); } &&
56054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56056 (eval $ac_try) 2>&5
56057 ac_status=$?
56058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56059 (exit $ac_status); }; } &&
56060 { ac_try='test -s conftest.$ac_objext'
56061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56062 (eval $ac_try) 2>&5
56063 ac_status=$?
56064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56065 (exit $ac_status); }; }; then
56066 ac_header_compiler=yes
56067 else
56068 echo "$as_me: failed program was:" >&5
56069 sed 's/^/| /' conftest.$ac_ext >&5
56071 ac_header_compiler=no
56073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56075 echo "${ECHO_T}$ac_header_compiler" >&6
56077 # Is the header present?
56078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56080 cat >conftest.$ac_ext <<_ACEOF
56081 /* confdefs.h. */
56082 _ACEOF
56083 cat confdefs.h >>conftest.$ac_ext
56084 cat >>conftest.$ac_ext <<_ACEOF
56085 /* end confdefs.h. */
56086 #include <$ac_header>
56087 _ACEOF
56088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56090 ac_status=$?
56091 grep -v '^ *+' conftest.er1 >conftest.err
56092 rm -f conftest.er1
56093 cat conftest.err >&5
56094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56095 (exit $ac_status); } >/dev/null; then
56096 if test -s conftest.err; then
56097 ac_cpp_err=$ac_c_preproc_warn_flag
56098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56099 else
56100 ac_cpp_err=
56102 else
56103 ac_cpp_err=yes
56105 if test -z "$ac_cpp_err"; then
56106 ac_header_preproc=yes
56107 else
56108 echo "$as_me: failed program was:" >&5
56109 sed 's/^/| /' conftest.$ac_ext >&5
56111 ac_header_preproc=no
56113 rm -f conftest.err conftest.$ac_ext
56114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56115 echo "${ECHO_T}$ac_header_preproc" >&6
56117 # So? What about this header?
56118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56119 yes:no: )
56120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56124 ac_header_preproc=yes
56126 no:yes:* )
56127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56140 cat <<\_ASBOX
56141 ## ----------------------------------------- ##
56142 ## Report this to the package-unused lists. ##
56143 ## ----------------------------------------- ##
56144 _ASBOX
56146 sed "s/^/$as_me: WARNING: /" >&2
56148 esac
56149 echo "$as_me:$LINENO: checking for $ac_header" >&5
56150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56152 echo $ECHO_N "(cached) $ECHO_C" >&6
56153 else
56154 eval "$as_ac_Header=\$ac_header_preproc"
56156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56161 cat >>confdefs.h <<_ACEOF
56162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56163 _ACEOF
56164 ac_has_wchar_h=yes
56165 else
56166 ac_has_wchar_h=no
56169 done
56172 for ac_header in wctype.h
56174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56176 echo "$as_me:$LINENO: checking for $ac_header" >&5
56177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56179 echo $ECHO_N "(cached) $ECHO_C" >&6
56181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56183 else
56184 # Is the header compilable?
56185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56187 cat >conftest.$ac_ext <<_ACEOF
56188 /* confdefs.h. */
56189 _ACEOF
56190 cat confdefs.h >>conftest.$ac_ext
56191 cat >>conftest.$ac_ext <<_ACEOF
56192 /* end confdefs.h. */
56193 $ac_includes_default
56194 #include <$ac_header>
56195 _ACEOF
56196 rm -f conftest.$ac_objext
56197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56198 (eval $ac_compile) 2>conftest.er1
56199 ac_status=$?
56200 grep -v '^ *+' conftest.er1 >conftest.err
56201 rm -f conftest.er1
56202 cat conftest.err >&5
56203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56204 (exit $ac_status); } &&
56205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56207 (eval $ac_try) 2>&5
56208 ac_status=$?
56209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56210 (exit $ac_status); }; } &&
56211 { ac_try='test -s conftest.$ac_objext'
56212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56213 (eval $ac_try) 2>&5
56214 ac_status=$?
56215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56216 (exit $ac_status); }; }; then
56217 ac_header_compiler=yes
56218 else
56219 echo "$as_me: failed program was:" >&5
56220 sed 's/^/| /' conftest.$ac_ext >&5
56222 ac_header_compiler=no
56224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56226 echo "${ECHO_T}$ac_header_compiler" >&6
56228 # Is the header present?
56229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56231 cat >conftest.$ac_ext <<_ACEOF
56232 /* confdefs.h. */
56233 _ACEOF
56234 cat confdefs.h >>conftest.$ac_ext
56235 cat >>conftest.$ac_ext <<_ACEOF
56236 /* end confdefs.h. */
56237 #include <$ac_header>
56238 _ACEOF
56239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56241 ac_status=$?
56242 grep -v '^ *+' conftest.er1 >conftest.err
56243 rm -f conftest.er1
56244 cat conftest.err >&5
56245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56246 (exit $ac_status); } >/dev/null; then
56247 if test -s conftest.err; then
56248 ac_cpp_err=$ac_c_preproc_warn_flag
56249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56250 else
56251 ac_cpp_err=
56253 else
56254 ac_cpp_err=yes
56256 if test -z "$ac_cpp_err"; then
56257 ac_header_preproc=yes
56258 else
56259 echo "$as_me: failed program was:" >&5
56260 sed 's/^/| /' conftest.$ac_ext >&5
56262 ac_header_preproc=no
56264 rm -f conftest.err conftest.$ac_ext
56265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56266 echo "${ECHO_T}$ac_header_preproc" >&6
56268 # So? What about this header?
56269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56270 yes:no: )
56271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56275 ac_header_preproc=yes
56277 no:yes:* )
56278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56291 cat <<\_ASBOX
56292 ## ----------------------------------------- ##
56293 ## Report this to the package-unused lists. ##
56294 ## ----------------------------------------- ##
56295 _ASBOX
56297 sed "s/^/$as_me: WARNING: /" >&2
56299 esac
56300 echo "$as_me:$LINENO: checking for $ac_header" >&5
56301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56303 echo $ECHO_N "(cached) $ECHO_C" >&6
56304 else
56305 eval "$as_ac_Header=\$ac_header_preproc"
56307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56312 cat >>confdefs.h <<_ACEOF
56313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56314 _ACEOF
56315 ac_has_wctype_h=yes
56316 else
56317 ac_has_wctype_h=no
56320 done
56323 # Only continue checking if the ISO C99 headers exist and support is on.
56324 if test x"$ac_has_wchar_h" = xyes &&
56325 test x"$ac_has_wctype_h" = xyes &&
56326 test x"$enable_c_mbchar" != xno; then
56328 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56329 # numeric_limits can instantiate type_traits<wchar_t>
56330 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56331 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56332 cat >conftest.$ac_ext <<_ACEOF
56333 /* confdefs.h. */
56334 _ACEOF
56335 cat confdefs.h >>conftest.$ac_ext
56336 cat >>conftest.$ac_ext <<_ACEOF
56337 /* end confdefs.h. */
56338 #include <wchar.h>
56340 main ()
56342 int i = WCHAR_MIN; int j = WCHAR_MAX;
56344 return 0;
56346 _ACEOF
56347 rm -f conftest.$ac_objext
56348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56349 (eval $ac_compile) 2>conftest.er1
56350 ac_status=$?
56351 grep -v '^ *+' conftest.er1 >conftest.err
56352 rm -f conftest.er1
56353 cat conftest.err >&5
56354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56355 (exit $ac_status); } &&
56356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56358 (eval $ac_try) 2>&5
56359 ac_status=$?
56360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56361 (exit $ac_status); }; } &&
56362 { ac_try='test -s conftest.$ac_objext'
56363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56364 (eval $ac_try) 2>&5
56365 ac_status=$?
56366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56367 (exit $ac_status); }; }; then
56368 has_wchar_minmax=yes
56369 else
56370 echo "$as_me: failed program was:" >&5
56371 sed 's/^/| /' conftest.$ac_ext >&5
56373 has_wchar_minmax=no
56375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56376 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
56377 echo "${ECHO_T}$has_wchar_minmax" >&6
56379 # Test wchar.h for WEOF, which is what we use to determine whether
56380 # to specialize for char_traits<wchar_t> or not.
56381 echo "$as_me:$LINENO: checking for WEOF" >&5
56382 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
56383 cat >conftest.$ac_ext <<_ACEOF
56384 /* confdefs.h. */
56385 _ACEOF
56386 cat confdefs.h >>conftest.$ac_ext
56387 cat >>conftest.$ac_ext <<_ACEOF
56388 /* end confdefs.h. */
56390 #include <wchar.h>
56391 #include <stddef.h>
56393 main ()
56395 wint_t i = WEOF;
56397 return 0;
56399 _ACEOF
56400 rm -f conftest.$ac_objext
56401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56402 (eval $ac_compile) 2>conftest.er1
56403 ac_status=$?
56404 grep -v '^ *+' conftest.er1 >conftest.err
56405 rm -f conftest.er1
56406 cat conftest.err >&5
56407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56408 (exit $ac_status); } &&
56409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56411 (eval $ac_try) 2>&5
56412 ac_status=$?
56413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56414 (exit $ac_status); }; } &&
56415 { ac_try='test -s conftest.$ac_objext'
56416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56417 (eval $ac_try) 2>&5
56418 ac_status=$?
56419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56420 (exit $ac_status); }; }; then
56421 has_weof=yes
56422 else
56423 echo "$as_me: failed program was:" >&5
56424 sed 's/^/| /' conftest.$ac_ext >&5
56426 has_weof=no
56428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56429 echo "$as_me:$LINENO: result: $has_weof" >&5
56430 echo "${ECHO_T}$has_weof" >&6
56432 # Tests for wide character functions used in char_traits<wchar_t>.
56433 ac_wfuncs=yes
56440 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
56442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56443 echo "$as_me:$LINENO: checking for $ac_func" >&5
56444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56445 if eval "test \"\${$as_ac_var+set}\" = set"; then
56446 echo $ECHO_N "(cached) $ECHO_C" >&6
56447 else
56448 if test x$gcc_no_link = xyes; then
56449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56451 { (exit 1); exit 1; }; }
56453 cat >conftest.$ac_ext <<_ACEOF
56454 /* confdefs.h. */
56455 _ACEOF
56456 cat confdefs.h >>conftest.$ac_ext
56457 cat >>conftest.$ac_ext <<_ACEOF
56458 /* end confdefs.h. */
56459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56461 #define $ac_func innocuous_$ac_func
56463 /* System header to define __stub macros and hopefully few prototypes,
56464 which can conflict with char $ac_func (); below.
56465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56466 <limits.h> exists even on freestanding compilers. */
56468 #ifdef __STDC__
56469 # include <limits.h>
56470 #else
56471 # include <assert.h>
56472 #endif
56474 #undef $ac_func
56476 /* Override any gcc2 internal prototype to avoid an error. */
56477 #ifdef __cplusplus
56478 extern "C"
56480 #endif
56481 /* We use char because int might match the return type of a gcc2
56482 builtin and then its argument prototype would still apply. */
56483 char $ac_func ();
56484 /* The GNU C library defines this for functions which it implements
56485 to always fail with ENOSYS. Some functions are actually named
56486 something starting with __ and the normal name is an alias. */
56487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56488 choke me
56489 #else
56490 char (*f) () = $ac_func;
56491 #endif
56492 #ifdef __cplusplus
56494 #endif
56497 main ()
56499 return f != $ac_func;
56501 return 0;
56503 _ACEOF
56504 rm -f conftest.$ac_objext conftest$ac_exeext
56505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56506 (eval $ac_link) 2>conftest.er1
56507 ac_status=$?
56508 grep -v '^ *+' conftest.er1 >conftest.err
56509 rm -f conftest.er1
56510 cat conftest.err >&5
56511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56512 (exit $ac_status); } &&
56513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56515 (eval $ac_try) 2>&5
56516 ac_status=$?
56517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56518 (exit $ac_status); }; } &&
56519 { ac_try='test -s conftest$ac_exeext'
56520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56521 (eval $ac_try) 2>&5
56522 ac_status=$?
56523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56524 (exit $ac_status); }; }; then
56525 eval "$as_ac_var=yes"
56526 else
56527 echo "$as_me: failed program was:" >&5
56528 sed 's/^/| /' conftest.$ac_ext >&5
56530 eval "$as_ac_var=no"
56532 rm -f conftest.err conftest.$ac_objext \
56533 conftest$ac_exeext conftest.$ac_ext
56535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56537 if test `eval echo '${'$as_ac_var'}'` = yes; then
56538 cat >>confdefs.h <<_ACEOF
56539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56540 _ACEOF
56542 else
56543 ac_wfuncs=no
56545 done
56548 # Checks for names injected into std:: by the c_std headers.
56595 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
56596 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
56597 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
56598 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
56599 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
56600 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
56602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56603 echo "$as_me:$LINENO: checking for $ac_func" >&5
56604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56605 if eval "test \"\${$as_ac_var+set}\" = set"; then
56606 echo $ECHO_N "(cached) $ECHO_C" >&6
56607 else
56608 if test x$gcc_no_link = xyes; then
56609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56611 { (exit 1); exit 1; }; }
56613 cat >conftest.$ac_ext <<_ACEOF
56614 /* confdefs.h. */
56615 _ACEOF
56616 cat confdefs.h >>conftest.$ac_ext
56617 cat >>conftest.$ac_ext <<_ACEOF
56618 /* end confdefs.h. */
56619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56621 #define $ac_func innocuous_$ac_func
56623 /* System header to define __stub macros and hopefully few prototypes,
56624 which can conflict with char $ac_func (); below.
56625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56626 <limits.h> exists even on freestanding compilers. */
56628 #ifdef __STDC__
56629 # include <limits.h>
56630 #else
56631 # include <assert.h>
56632 #endif
56634 #undef $ac_func
56636 /* Override any gcc2 internal prototype to avoid an error. */
56637 #ifdef __cplusplus
56638 extern "C"
56640 #endif
56641 /* We use char because int might match the return type of a gcc2
56642 builtin and then its argument prototype would still apply. */
56643 char $ac_func ();
56644 /* The GNU C library defines this for functions which it implements
56645 to always fail with ENOSYS. Some functions are actually named
56646 something starting with __ and the normal name is an alias. */
56647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56648 choke me
56649 #else
56650 char (*f) () = $ac_func;
56651 #endif
56652 #ifdef __cplusplus
56654 #endif
56657 main ()
56659 return f != $ac_func;
56661 return 0;
56663 _ACEOF
56664 rm -f conftest.$ac_objext conftest$ac_exeext
56665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56666 (eval $ac_link) 2>conftest.er1
56667 ac_status=$?
56668 grep -v '^ *+' conftest.er1 >conftest.err
56669 rm -f conftest.er1
56670 cat conftest.err >&5
56671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56672 (exit $ac_status); } &&
56673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56675 (eval $ac_try) 2>&5
56676 ac_status=$?
56677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56678 (exit $ac_status); }; } &&
56679 { ac_try='test -s conftest$ac_exeext'
56680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56681 (eval $ac_try) 2>&5
56682 ac_status=$?
56683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56684 (exit $ac_status); }; }; then
56685 eval "$as_ac_var=yes"
56686 else
56687 echo "$as_me: failed program was:" >&5
56688 sed 's/^/| /' conftest.$ac_ext >&5
56690 eval "$as_ac_var=no"
56692 rm -f conftest.err conftest.$ac_objext \
56693 conftest$ac_exeext conftest.$ac_ext
56695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56697 if test `eval echo '${'$as_ac_var'}'` = yes; then
56698 cat >>confdefs.h <<_ACEOF
56699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56700 _ACEOF
56702 else
56703 ac_wfuncs=no
56705 done
56708 # Checks for wide character functions that are not required
56709 # for basic wchar_t support. Don't disable support if they are missing.
56710 # Injection of these is wrapped with guard macros.
56716 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
56718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56719 echo "$as_me:$LINENO: checking for $ac_func" >&5
56720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56721 if eval "test \"\${$as_ac_var+set}\" = set"; then
56722 echo $ECHO_N "(cached) $ECHO_C" >&6
56723 else
56724 if test x$gcc_no_link = xyes; then
56725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56727 { (exit 1); exit 1; }; }
56729 cat >conftest.$ac_ext <<_ACEOF
56730 /* confdefs.h. */
56731 _ACEOF
56732 cat confdefs.h >>conftest.$ac_ext
56733 cat >>conftest.$ac_ext <<_ACEOF
56734 /* end confdefs.h. */
56735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56737 #define $ac_func innocuous_$ac_func
56739 /* System header to define __stub macros and hopefully few prototypes,
56740 which can conflict with char $ac_func (); below.
56741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56742 <limits.h> exists even on freestanding compilers. */
56744 #ifdef __STDC__
56745 # include <limits.h>
56746 #else
56747 # include <assert.h>
56748 #endif
56750 #undef $ac_func
56752 /* Override any gcc2 internal prototype to avoid an error. */
56753 #ifdef __cplusplus
56754 extern "C"
56756 #endif
56757 /* We use char because int might match the return type of a gcc2
56758 builtin and then its argument prototype would still apply. */
56759 char $ac_func ();
56760 /* The GNU C library defines this for functions which it implements
56761 to always fail with ENOSYS. Some functions are actually named
56762 something starting with __ and the normal name is an alias. */
56763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56764 choke me
56765 #else
56766 char (*f) () = $ac_func;
56767 #endif
56768 #ifdef __cplusplus
56770 #endif
56773 main ()
56775 return f != $ac_func;
56777 return 0;
56779 _ACEOF
56780 rm -f conftest.$ac_objext conftest$ac_exeext
56781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56782 (eval $ac_link) 2>conftest.er1
56783 ac_status=$?
56784 grep -v '^ *+' conftest.er1 >conftest.err
56785 rm -f conftest.er1
56786 cat conftest.err >&5
56787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56788 (exit $ac_status); } &&
56789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56791 (eval $ac_try) 2>&5
56792 ac_status=$?
56793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56794 (exit $ac_status); }; } &&
56795 { ac_try='test -s conftest$ac_exeext'
56796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56797 (eval $ac_try) 2>&5
56798 ac_status=$?
56799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56800 (exit $ac_status); }; }; then
56801 eval "$as_ac_var=yes"
56802 else
56803 echo "$as_me: failed program was:" >&5
56804 sed 's/^/| /' conftest.$ac_ext >&5
56806 eval "$as_ac_var=no"
56808 rm -f conftest.err conftest.$ac_objext \
56809 conftest$ac_exeext conftest.$ac_ext
56811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56813 if test `eval echo '${'$as_ac_var'}'` = yes; then
56814 cat >>confdefs.h <<_ACEOF
56815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56816 _ACEOF
56819 done
56822 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
56823 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
56824 if test x"$has_weof" = xyes &&
56825 test x"$has_wchar_minmax" = xyes &&
56826 test x"$ac_wfuncs" = xyes;
56827 then
56828 ac_isoC99_wchar_t=yes
56829 else
56830 ac_isoC99_wchar_t=no
56832 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
56833 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
56835 # Use iconv for wchar_t to char conversions. As such, check for
56836 # X/Open Portability Guide, version 2 features (XPG2).
56837 if test "${ac_cv_header_iconv_h+set}" = set; then
56838 echo "$as_me:$LINENO: checking for iconv.h" >&5
56839 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56840 if test "${ac_cv_header_iconv_h+set}" = set; then
56841 echo $ECHO_N "(cached) $ECHO_C" >&6
56843 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56844 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56845 else
56846 # Is the header compilable?
56847 echo "$as_me:$LINENO: checking iconv.h usability" >&5
56848 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
56849 cat >conftest.$ac_ext <<_ACEOF
56850 /* confdefs.h. */
56851 _ACEOF
56852 cat confdefs.h >>conftest.$ac_ext
56853 cat >>conftest.$ac_ext <<_ACEOF
56854 /* end confdefs.h. */
56855 $ac_includes_default
56856 #include <iconv.h>
56857 _ACEOF
56858 rm -f conftest.$ac_objext
56859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56860 (eval $ac_compile) 2>conftest.er1
56861 ac_status=$?
56862 grep -v '^ *+' conftest.er1 >conftest.err
56863 rm -f conftest.er1
56864 cat conftest.err >&5
56865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56866 (exit $ac_status); } &&
56867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56869 (eval $ac_try) 2>&5
56870 ac_status=$?
56871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56872 (exit $ac_status); }; } &&
56873 { ac_try='test -s conftest.$ac_objext'
56874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56875 (eval $ac_try) 2>&5
56876 ac_status=$?
56877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56878 (exit $ac_status); }; }; then
56879 ac_header_compiler=yes
56880 else
56881 echo "$as_me: failed program was:" >&5
56882 sed 's/^/| /' conftest.$ac_ext >&5
56884 ac_header_compiler=no
56886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56887 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56888 echo "${ECHO_T}$ac_header_compiler" >&6
56890 # Is the header present?
56891 echo "$as_me:$LINENO: checking iconv.h presence" >&5
56892 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
56893 cat >conftest.$ac_ext <<_ACEOF
56894 /* confdefs.h. */
56895 _ACEOF
56896 cat confdefs.h >>conftest.$ac_ext
56897 cat >>conftest.$ac_ext <<_ACEOF
56898 /* end confdefs.h. */
56899 #include <iconv.h>
56900 _ACEOF
56901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56903 ac_status=$?
56904 grep -v '^ *+' conftest.er1 >conftest.err
56905 rm -f conftest.er1
56906 cat conftest.err >&5
56907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56908 (exit $ac_status); } >/dev/null; then
56909 if test -s conftest.err; then
56910 ac_cpp_err=$ac_c_preproc_warn_flag
56911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56912 else
56913 ac_cpp_err=
56915 else
56916 ac_cpp_err=yes
56918 if test -z "$ac_cpp_err"; then
56919 ac_header_preproc=yes
56920 else
56921 echo "$as_me: failed program was:" >&5
56922 sed 's/^/| /' conftest.$ac_ext >&5
56924 ac_header_preproc=no
56926 rm -f conftest.err conftest.$ac_ext
56927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56928 echo "${ECHO_T}$ac_header_preproc" >&6
56930 # So? What about this header?
56931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56932 yes:no: )
56933 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
56934 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56935 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
56936 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
56937 ac_header_preproc=yes
56939 no:yes:* )
56940 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
56941 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
56942 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
56943 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
56944 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
56945 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
56946 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
56947 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
56948 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56949 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56950 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
56951 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
56953 cat <<\_ASBOX
56954 ## ----------------------------------------- ##
56955 ## Report this to the package-unused lists. ##
56956 ## ----------------------------------------- ##
56957 _ASBOX
56959 sed "s/^/$as_me: WARNING: /" >&2
56961 esac
56962 echo "$as_me:$LINENO: checking for iconv.h" >&5
56963 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56964 if test "${ac_cv_header_iconv_h+set}" = set; then
56965 echo $ECHO_N "(cached) $ECHO_C" >&6
56966 else
56967 ac_cv_header_iconv_h=$ac_header_preproc
56969 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56970 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56973 if test $ac_cv_header_iconv_h = yes; then
56974 ac_has_iconv_h=yes
56975 else
56976 ac_has_iconv_h=no
56980 if test "${ac_cv_header_langinfo_h+set}" = set; then
56981 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56982 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56983 if test "${ac_cv_header_langinfo_h+set}" = set; then
56984 echo $ECHO_N "(cached) $ECHO_C" >&6
56986 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56987 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56988 else
56989 # Is the header compilable?
56990 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
56991 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
56992 cat >conftest.$ac_ext <<_ACEOF
56993 /* confdefs.h. */
56994 _ACEOF
56995 cat confdefs.h >>conftest.$ac_ext
56996 cat >>conftest.$ac_ext <<_ACEOF
56997 /* end confdefs.h. */
56998 $ac_includes_default
56999 #include <langinfo.h>
57000 _ACEOF
57001 rm -f conftest.$ac_objext
57002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57003 (eval $ac_compile) 2>conftest.er1
57004 ac_status=$?
57005 grep -v '^ *+' conftest.er1 >conftest.err
57006 rm -f conftest.er1
57007 cat conftest.err >&5
57008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57009 (exit $ac_status); } &&
57010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57012 (eval $ac_try) 2>&5
57013 ac_status=$?
57014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57015 (exit $ac_status); }; } &&
57016 { ac_try='test -s conftest.$ac_objext'
57017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57018 (eval $ac_try) 2>&5
57019 ac_status=$?
57020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57021 (exit $ac_status); }; }; then
57022 ac_header_compiler=yes
57023 else
57024 echo "$as_me: failed program was:" >&5
57025 sed 's/^/| /' conftest.$ac_ext >&5
57027 ac_header_compiler=no
57029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57031 echo "${ECHO_T}$ac_header_compiler" >&6
57033 # Is the header present?
57034 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57035 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57036 cat >conftest.$ac_ext <<_ACEOF
57037 /* confdefs.h. */
57038 _ACEOF
57039 cat confdefs.h >>conftest.$ac_ext
57040 cat >>conftest.$ac_ext <<_ACEOF
57041 /* end confdefs.h. */
57042 #include <langinfo.h>
57043 _ACEOF
57044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57046 ac_status=$?
57047 grep -v '^ *+' conftest.er1 >conftest.err
57048 rm -f conftest.er1
57049 cat conftest.err >&5
57050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57051 (exit $ac_status); } >/dev/null; then
57052 if test -s conftest.err; then
57053 ac_cpp_err=$ac_c_preproc_warn_flag
57054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57055 else
57056 ac_cpp_err=
57058 else
57059 ac_cpp_err=yes
57061 if test -z "$ac_cpp_err"; then
57062 ac_header_preproc=yes
57063 else
57064 echo "$as_me: failed program was:" >&5
57065 sed 's/^/| /' conftest.$ac_ext >&5
57067 ac_header_preproc=no
57069 rm -f conftest.err conftest.$ac_ext
57070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57071 echo "${ECHO_T}$ac_header_preproc" >&6
57073 # So? What about this header?
57074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57075 yes:no: )
57076 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57077 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57078 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57079 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57080 ac_header_preproc=yes
57082 no:yes:* )
57083 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57084 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57085 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57086 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57087 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57088 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57089 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57090 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57091 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57092 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57093 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57094 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57096 cat <<\_ASBOX
57097 ## ----------------------------------------- ##
57098 ## Report this to the package-unused lists. ##
57099 ## ----------------------------------------- ##
57100 _ASBOX
57102 sed "s/^/$as_me: WARNING: /" >&2
57104 esac
57105 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57106 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57107 if test "${ac_cv_header_langinfo_h+set}" = set; then
57108 echo $ECHO_N "(cached) $ECHO_C" >&6
57109 else
57110 ac_cv_header_langinfo_h=$ac_header_preproc
57112 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57113 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57116 if test $ac_cv_header_langinfo_h = yes; then
57117 ac_has_langinfo_h=yes
57118 else
57119 ac_has_langinfo_h=no
57124 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57125 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57126 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57127 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57128 echo $ECHO_N "(cached) $ECHO_C" >&6
57129 else
57130 ac_check_lib_save_LIBS=$LIBS
57131 LIBS="-liconv $LIBS"
57132 if test x$gcc_no_link = xyes; then
57133 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57134 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57135 { (exit 1); exit 1; }; }
57137 cat >conftest.$ac_ext <<_ACEOF
57138 /* confdefs.h. */
57139 _ACEOF
57140 cat confdefs.h >>conftest.$ac_ext
57141 cat >>conftest.$ac_ext <<_ACEOF
57142 /* end confdefs.h. */
57144 /* Override any gcc2 internal prototype to avoid an error. */
57145 #ifdef __cplusplus
57146 extern "C"
57147 #endif
57148 /* We use char because int might match the return type of a gcc2
57149 builtin and then its argument prototype would still apply. */
57150 char iconv ();
57152 main ()
57154 iconv ();
57156 return 0;
57158 _ACEOF
57159 rm -f conftest.$ac_objext conftest$ac_exeext
57160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57161 (eval $ac_link) 2>conftest.er1
57162 ac_status=$?
57163 grep -v '^ *+' conftest.er1 >conftest.err
57164 rm -f conftest.er1
57165 cat conftest.err >&5
57166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57167 (exit $ac_status); } &&
57168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57170 (eval $ac_try) 2>&5
57171 ac_status=$?
57172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57173 (exit $ac_status); }; } &&
57174 { ac_try='test -s conftest$ac_exeext'
57175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57176 (eval $ac_try) 2>&5
57177 ac_status=$?
57178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57179 (exit $ac_status); }; }; then
57180 ac_cv_lib_iconv_iconv=yes
57181 else
57182 echo "$as_me: failed program was:" >&5
57183 sed 's/^/| /' conftest.$ac_ext >&5
57185 ac_cv_lib_iconv_iconv=no
57187 rm -f conftest.err conftest.$ac_objext \
57188 conftest$ac_exeext conftest.$ac_ext
57189 LIBS=$ac_check_lib_save_LIBS
57191 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57192 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57193 if test $ac_cv_lib_iconv_iconv = yes; then
57194 libiconv="-liconv"
57197 ac_save_LIBS="$LIBS"
57198 LIBS="$LIBS $libiconv"
57204 for ac_func in iconv_open iconv_close iconv nl_langinfo
57206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57207 echo "$as_me:$LINENO: checking for $ac_func" >&5
57208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57209 if eval "test \"\${$as_ac_var+set}\" = set"; then
57210 echo $ECHO_N "(cached) $ECHO_C" >&6
57211 else
57212 if test x$gcc_no_link = xyes; then
57213 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57215 { (exit 1); exit 1; }; }
57217 cat >conftest.$ac_ext <<_ACEOF
57218 /* confdefs.h. */
57219 _ACEOF
57220 cat confdefs.h >>conftest.$ac_ext
57221 cat >>conftest.$ac_ext <<_ACEOF
57222 /* end confdefs.h. */
57223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57225 #define $ac_func innocuous_$ac_func
57227 /* System header to define __stub macros and hopefully few prototypes,
57228 which can conflict with char $ac_func (); below.
57229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57230 <limits.h> exists even on freestanding compilers. */
57232 #ifdef __STDC__
57233 # include <limits.h>
57234 #else
57235 # include <assert.h>
57236 #endif
57238 #undef $ac_func
57240 /* Override any gcc2 internal prototype to avoid an error. */
57241 #ifdef __cplusplus
57242 extern "C"
57244 #endif
57245 /* We use char because int might match the return type of a gcc2
57246 builtin and then its argument prototype would still apply. */
57247 char $ac_func ();
57248 /* The GNU C library defines this for functions which it implements
57249 to always fail with ENOSYS. Some functions are actually named
57250 something starting with __ and the normal name is an alias. */
57251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57252 choke me
57253 #else
57254 char (*f) () = $ac_func;
57255 #endif
57256 #ifdef __cplusplus
57258 #endif
57261 main ()
57263 return f != $ac_func;
57265 return 0;
57267 _ACEOF
57268 rm -f conftest.$ac_objext conftest$ac_exeext
57269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57270 (eval $ac_link) 2>conftest.er1
57271 ac_status=$?
57272 grep -v '^ *+' conftest.er1 >conftest.err
57273 rm -f conftest.er1
57274 cat conftest.err >&5
57275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57276 (exit $ac_status); } &&
57277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57279 (eval $ac_try) 2>&5
57280 ac_status=$?
57281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57282 (exit $ac_status); }; } &&
57283 { ac_try='test -s conftest$ac_exeext'
57284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57285 (eval $ac_try) 2>&5
57286 ac_status=$?
57287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57288 (exit $ac_status); }; }; then
57289 eval "$as_ac_var=yes"
57290 else
57291 echo "$as_me: failed program was:" >&5
57292 sed 's/^/| /' conftest.$ac_ext >&5
57294 eval "$as_ac_var=no"
57296 rm -f conftest.err conftest.$ac_objext \
57297 conftest$ac_exeext conftest.$ac_ext
57299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57301 if test `eval echo '${'$as_ac_var'}'` = yes; then
57302 cat >>confdefs.h <<_ACEOF
57303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57304 _ACEOF
57305 ac_XPG2funcs=yes
57306 else
57307 ac_XPG2funcs=no
57309 done
57312 LIBS="$ac_save_LIBS"
57314 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57315 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57316 if test x"$ac_has_iconv_h" = xyes &&
57317 test x"$ac_has_langinfo_h" = xyes &&
57318 test x"$ac_XPG2funcs" = xyes;
57319 then
57320 ac_XPG2_wchar_t=yes
57321 else
57322 ac_XPG2_wchar_t=no
57324 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57325 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57327 # At the moment, only enable wchar_t specializations if all the
57328 # above support is present.
57329 if test x"$ac_isoC99_wchar_t" = xyes &&
57330 test x"$ac_XPG2_wchar_t" = xyes;
57331 then
57332 cat >>confdefs.h <<\_ACEOF
57333 #define _GLIBCXX_USE_WCHAR_T 1
57334 _ACEOF
57336 enable_wchar_t=yes
57339 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57340 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57341 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57342 echo "${ECHO_T}$enable_wchar_t" >&6
57344 cat >>confdefs.h <<\_ACEOF
57345 #define HAVE_COPYSIGN 1
57346 _ACEOF
57348 cat >>confdefs.h <<\_ACEOF
57349 #define HAVE_COPYSIGNF 1
57350 _ACEOF
57352 cat >>confdefs.h <<\_ACEOF
57353 #define HAVE_FREXPF 1
57354 _ACEOF
57356 cat >>confdefs.h <<\_ACEOF
57357 #define HAVE_HYPOT 1
57358 _ACEOF
57360 case "$target" in
57361 *-hpux10*)
57362 cat >>confdefs.h <<\_ACEOF
57363 #define HAVE_FINITE 1
57364 _ACEOF
57366 cat >>confdefs.h <<\_ACEOF
57367 #define HAVE_FINITEF 1
57368 _ACEOF
57370 cat >>confdefs.h <<\_ACEOF
57371 #define HAVE_ISINF 1
57372 _ACEOF
57374 cat >>confdefs.h <<\_ACEOF
57375 #define HAVE_ISINFF 1
57376 _ACEOF
57378 cat >>confdefs.h <<\_ACEOF
57379 #define HAVE_ISNAN 1
57380 _ACEOF
57382 cat >>confdefs.h <<\_ACEOF
57383 #define HAVE_ISNANF 1
57384 _ACEOF
57387 esac
57389 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
57402 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
57403 machine/endian.h machine/param.h sys/machine.h sys/types.h \
57404 fp.h locale.h float.h inttypes.h
57406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57408 echo "$as_me:$LINENO: checking for $ac_header" >&5
57409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57411 echo $ECHO_N "(cached) $ECHO_C" >&6
57413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57415 else
57416 # Is the header compilable?
57417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57419 cat >conftest.$ac_ext <<_ACEOF
57420 /* confdefs.h. */
57421 _ACEOF
57422 cat confdefs.h >>conftest.$ac_ext
57423 cat >>conftest.$ac_ext <<_ACEOF
57424 /* end confdefs.h. */
57425 $ac_includes_default
57426 #include <$ac_header>
57427 _ACEOF
57428 rm -f conftest.$ac_objext
57429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57430 (eval $ac_compile) 2>conftest.er1
57431 ac_status=$?
57432 grep -v '^ *+' conftest.er1 >conftest.err
57433 rm -f conftest.er1
57434 cat conftest.err >&5
57435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57436 (exit $ac_status); } &&
57437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57439 (eval $ac_try) 2>&5
57440 ac_status=$?
57441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57442 (exit $ac_status); }; } &&
57443 { ac_try='test -s conftest.$ac_objext'
57444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57445 (eval $ac_try) 2>&5
57446 ac_status=$?
57447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57448 (exit $ac_status); }; }; then
57449 ac_header_compiler=yes
57450 else
57451 echo "$as_me: failed program was:" >&5
57452 sed 's/^/| /' conftest.$ac_ext >&5
57454 ac_header_compiler=no
57456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57458 echo "${ECHO_T}$ac_header_compiler" >&6
57460 # Is the header present?
57461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57463 cat >conftest.$ac_ext <<_ACEOF
57464 /* confdefs.h. */
57465 _ACEOF
57466 cat confdefs.h >>conftest.$ac_ext
57467 cat >>conftest.$ac_ext <<_ACEOF
57468 /* end confdefs.h. */
57469 #include <$ac_header>
57470 _ACEOF
57471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57473 ac_status=$?
57474 grep -v '^ *+' conftest.er1 >conftest.err
57475 rm -f conftest.er1
57476 cat conftest.err >&5
57477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57478 (exit $ac_status); } >/dev/null; then
57479 if test -s conftest.err; then
57480 ac_cpp_err=$ac_c_preproc_warn_flag
57481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57482 else
57483 ac_cpp_err=
57485 else
57486 ac_cpp_err=yes
57488 if test -z "$ac_cpp_err"; then
57489 ac_header_preproc=yes
57490 else
57491 echo "$as_me: failed program was:" >&5
57492 sed 's/^/| /' conftest.$ac_ext >&5
57494 ac_header_preproc=no
57496 rm -f conftest.err conftest.$ac_ext
57497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57498 echo "${ECHO_T}$ac_header_preproc" >&6
57500 # So? What about this header?
57501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57502 yes:no: )
57503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57507 ac_header_preproc=yes
57509 no:yes:* )
57510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57523 cat <<\_ASBOX
57524 ## ----------------------------------------- ##
57525 ## Report this to the package-unused lists. ##
57526 ## ----------------------------------------- ##
57527 _ASBOX
57529 sed "s/^/$as_me: WARNING: /" >&2
57531 esac
57532 echo "$as_me:$LINENO: checking for $ac_header" >&5
57533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57535 echo $ECHO_N "(cached) $ECHO_C" >&6
57536 else
57537 eval "$as_ac_Header=\$ac_header_preproc"
57539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57544 cat >>confdefs.h <<_ACEOF
57545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57546 _ACEOF
57550 done
57552 SECTION_FLAGS='-ffunction-sections -fdata-sections'
57555 # If we're not using GNU ld, then there's no point in even trying these
57556 # tests. Check for that first. We should have already tested for gld
57557 # by now (in libtool), but require it now just to be safe...
57558 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
57559 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
57563 # The name set by libtool depends on the version of libtool. Shame on us
57564 # for depending on an impl detail, but c'est la vie. Older versions used
57565 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
57566 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
57567 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
57568 # set (hence we're using an older libtool), then set it.
57569 if test x${with_gnu_ld+set} != xset; then
57570 if test x${ac_cv_prog_gnu_ld+set} != xset; then
57571 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
57572 with_gnu_ld=no
57573 else
57574 with_gnu_ld=$ac_cv_prog_gnu_ld
57578 # Start by getting the version number. I think the libtool test already
57579 # does some of this, but throws away the result.
57581 ldver=`$LD --version 2>/dev/null | head -1 | \
57582 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
57584 glibcxx_gnu_ld_version=`echo $ldver | \
57585 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
57587 # Set --gc-sections.
57588 if test "$with_gnu_ld" = "notbroken"; then
57589 # GNU ld it is! Joy and bunny rabbits!
57591 # All these tests are for C++; save the language and the compiler flags.
57592 # Need to do this so that g++ won't try to link in libstdc++
57593 ac_test_CFLAGS="${CFLAGS+set}"
57594 ac_save_CFLAGS="$CFLAGS"
57595 CFLAGS='-x c++ -Wl,--gc-sections'
57597 # Check for -Wl,--gc-sections
57598 # XXX This test is broken at the moment, as symbols required for linking
57599 # are now in libsupc++ (not built yet). In addition, this test has
57600 # cored on solaris in the past. In addition, --gc-sections doesn't
57601 # really work at the moment (keeps on discarding used sections, first
57602 # .eh_frame and now some of the glibc sections for iconv).
57603 # Bzzzzt. Thanks for playing, maybe next time.
57604 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
57605 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
57606 if test "$cross_compiling" = yes; then
57607 ac_sectionLDflags=yes
57608 else
57609 cat >conftest.$ac_ext <<_ACEOF
57610 /* confdefs.h. */
57611 _ACEOF
57612 cat confdefs.h >>conftest.$ac_ext
57613 cat >>conftest.$ac_ext <<_ACEOF
57614 /* end confdefs.h. */
57616 int main(void)
57618 try { throw 1; }
57619 catch (...) { };
57620 return 0;
57623 _ACEOF
57624 rm -f conftest$ac_exeext
57625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57626 (eval $ac_link) 2>&5
57627 ac_status=$?
57628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57631 (eval $ac_try) 2>&5
57632 ac_status=$?
57633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57634 (exit $ac_status); }; }; then
57635 ac_sectionLDflags=yes
57636 else
57637 echo "$as_me: program exited with status $ac_status" >&5
57638 echo "$as_me: failed program was:" >&5
57639 sed 's/^/| /' conftest.$ac_ext >&5
57641 ( exit $ac_status )
57642 ac_sectionLDflags=no
57644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57646 if test "$ac_test_CFLAGS" = set; then
57647 CFLAGS="$ac_save_CFLAGS"
57648 else
57649 # this is the suspicious part
57650 CFLAGS=''
57652 if test "$ac_sectionLDflags" = "yes"; then
57653 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
57655 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
57656 echo "${ECHO_T}$ac_sectionLDflags" >&6
57659 # Set linker optimization flags.
57660 if test x"$with_gnu_ld" = x"yes"; then
57661 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
57669 echo "$as_me:$LINENO: checking for main in -lm" >&5
57670 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
57671 if test "${ac_cv_lib_m_main+set}" = set; then
57672 echo $ECHO_N "(cached) $ECHO_C" >&6
57673 else
57674 ac_check_lib_save_LIBS=$LIBS
57675 LIBS="-lm $LIBS"
57676 if test x$gcc_no_link = xyes; then
57677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57679 { (exit 1); exit 1; }; }
57681 cat >conftest.$ac_ext <<_ACEOF
57682 /* confdefs.h. */
57683 _ACEOF
57684 cat confdefs.h >>conftest.$ac_ext
57685 cat >>conftest.$ac_ext <<_ACEOF
57686 /* end confdefs.h. */
57690 main ()
57692 main ();
57694 return 0;
57696 _ACEOF
57697 rm -f conftest.$ac_objext conftest$ac_exeext
57698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57699 (eval $ac_link) 2>conftest.er1
57700 ac_status=$?
57701 grep -v '^ *+' conftest.er1 >conftest.err
57702 rm -f conftest.er1
57703 cat conftest.err >&5
57704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57705 (exit $ac_status); } &&
57706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57708 (eval $ac_try) 2>&5
57709 ac_status=$?
57710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57711 (exit $ac_status); }; } &&
57712 { ac_try='test -s conftest$ac_exeext'
57713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57714 (eval $ac_try) 2>&5
57715 ac_status=$?
57716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57717 (exit $ac_status); }; }; then
57718 ac_cv_lib_m_main=yes
57719 else
57720 echo "$as_me: failed program was:" >&5
57721 sed 's/^/| /' conftest.$ac_ext >&5
57723 ac_cv_lib_m_main=no
57725 rm -f conftest.err conftest.$ac_objext \
57726 conftest$ac_exeext conftest.$ac_ext
57727 LIBS=$ac_check_lib_save_LIBS
57729 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
57730 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
57731 if test $ac_cv_lib_m_main = yes; then
57732 cat >>confdefs.h <<_ACEOF
57733 #define HAVE_LIBM 1
57734 _ACEOF
57736 LIBS="-lm $LIBS"
57742 for ac_func in nan copysignf
57744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57745 echo "$as_me:$LINENO: checking for $ac_func" >&5
57746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57747 if eval "test \"\${$as_ac_var+set}\" = set"; then
57748 echo $ECHO_N "(cached) $ECHO_C" >&6
57749 else
57750 if test x$gcc_no_link = xyes; then
57751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57753 { (exit 1); exit 1; }; }
57755 cat >conftest.$ac_ext <<_ACEOF
57756 /* confdefs.h. */
57757 _ACEOF
57758 cat confdefs.h >>conftest.$ac_ext
57759 cat >>conftest.$ac_ext <<_ACEOF
57760 /* end confdefs.h. */
57761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57763 #define $ac_func innocuous_$ac_func
57765 /* System header to define __stub macros and hopefully few prototypes,
57766 which can conflict with char $ac_func (); below.
57767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57768 <limits.h> exists even on freestanding compilers. */
57770 #ifdef __STDC__
57771 # include <limits.h>
57772 #else
57773 # include <assert.h>
57774 #endif
57776 #undef $ac_func
57778 /* Override any gcc2 internal prototype to avoid an error. */
57779 #ifdef __cplusplus
57780 extern "C"
57782 #endif
57783 /* We use char because int might match the return type of a gcc2
57784 builtin and then its argument prototype would still apply. */
57785 char $ac_func ();
57786 /* The GNU C library defines this for functions which it implements
57787 to always fail with ENOSYS. Some functions are actually named
57788 something starting with __ and the normal name is an alias. */
57789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57790 choke me
57791 #else
57792 char (*f) () = $ac_func;
57793 #endif
57794 #ifdef __cplusplus
57796 #endif
57799 main ()
57801 return f != $ac_func;
57803 return 0;
57805 _ACEOF
57806 rm -f conftest.$ac_objext conftest$ac_exeext
57807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57808 (eval $ac_link) 2>conftest.er1
57809 ac_status=$?
57810 grep -v '^ *+' conftest.er1 >conftest.err
57811 rm -f conftest.er1
57812 cat conftest.err >&5
57813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57814 (exit $ac_status); } &&
57815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57817 (eval $ac_try) 2>&5
57818 ac_status=$?
57819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57820 (exit $ac_status); }; } &&
57821 { ac_try='test -s conftest$ac_exeext'
57822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57823 (eval $ac_try) 2>&5
57824 ac_status=$?
57825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57826 (exit $ac_status); }; }; then
57827 eval "$as_ac_var=yes"
57828 else
57829 echo "$as_me: failed program was:" >&5
57830 sed 's/^/| /' conftest.$ac_ext >&5
57832 eval "$as_ac_var=no"
57834 rm -f conftest.err conftest.$ac_objext \
57835 conftest$ac_exeext conftest.$ac_ext
57837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57839 if test `eval echo '${'$as_ac_var'}'` = yes; then
57840 cat >>confdefs.h <<_ACEOF
57841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57842 _ACEOF
57844 else
57845 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
57847 done
57851 for ac_func in __signbit
57853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57854 echo "$as_me:$LINENO: checking for $ac_func" >&5
57855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57856 if eval "test \"\${$as_ac_var+set}\" = set"; then
57857 echo $ECHO_N "(cached) $ECHO_C" >&6
57858 else
57859 if test x$gcc_no_link = xyes; then
57860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57862 { (exit 1); exit 1; }; }
57864 cat >conftest.$ac_ext <<_ACEOF
57865 /* confdefs.h. */
57866 _ACEOF
57867 cat confdefs.h >>conftest.$ac_ext
57868 cat >>conftest.$ac_ext <<_ACEOF
57869 /* end confdefs.h. */
57870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57872 #define $ac_func innocuous_$ac_func
57874 /* System header to define __stub macros and hopefully few prototypes,
57875 which can conflict with char $ac_func (); below.
57876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57877 <limits.h> exists even on freestanding compilers. */
57879 #ifdef __STDC__
57880 # include <limits.h>
57881 #else
57882 # include <assert.h>
57883 #endif
57885 #undef $ac_func
57887 /* Override any gcc2 internal prototype to avoid an error. */
57888 #ifdef __cplusplus
57889 extern "C"
57891 #endif
57892 /* We use char because int might match the return type of a gcc2
57893 builtin and then its argument prototype would still apply. */
57894 char $ac_func ();
57895 /* The GNU C library defines this for functions which it implements
57896 to always fail with ENOSYS. Some functions are actually named
57897 something starting with __ and the normal name is an alias. */
57898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57899 choke me
57900 #else
57901 char (*f) () = $ac_func;
57902 #endif
57903 #ifdef __cplusplus
57905 #endif
57908 main ()
57910 return f != $ac_func;
57912 return 0;
57914 _ACEOF
57915 rm -f conftest.$ac_objext conftest$ac_exeext
57916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57917 (eval $ac_link) 2>conftest.er1
57918 ac_status=$?
57919 grep -v '^ *+' conftest.er1 >conftest.err
57920 rm -f conftest.er1
57921 cat conftest.err >&5
57922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57923 (exit $ac_status); } &&
57924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
57925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57926 (eval $ac_try) 2>&5
57927 ac_status=$?
57928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57929 (exit $ac_status); }; } &&
57930 { ac_try='test -s conftest$ac_exeext'
57931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57932 (eval $ac_try) 2>&5
57933 ac_status=$?
57934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57935 (exit $ac_status); }; }; then
57936 eval "$as_ac_var=yes"
57937 else
57938 echo "$as_me: failed program was:" >&5
57939 sed 's/^/| /' conftest.$ac_ext >&5
57941 eval "$as_ac_var=no"
57943 rm -f conftest.err conftest.$ac_objext \
57944 conftest$ac_exeext conftest.$ac_ext
57946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57948 if test `eval echo '${'$as_ac_var'}'` = yes; then
57949 cat >>confdefs.h <<_ACEOF
57950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57951 _ACEOF
57953 else
57954 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
57956 done
57959 for ac_func in __signbitf
57961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57962 echo "$as_me:$LINENO: checking for $ac_func" >&5
57963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57964 if eval "test \"\${$as_ac_var+set}\" = set"; then
57965 echo $ECHO_N "(cached) $ECHO_C" >&6
57966 else
57967 if test x$gcc_no_link = xyes; then
57968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57970 { (exit 1); exit 1; }; }
57972 cat >conftest.$ac_ext <<_ACEOF
57973 /* confdefs.h. */
57974 _ACEOF
57975 cat confdefs.h >>conftest.$ac_ext
57976 cat >>conftest.$ac_ext <<_ACEOF
57977 /* end confdefs.h. */
57978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57980 #define $ac_func innocuous_$ac_func
57982 /* System header to define __stub macros and hopefully few prototypes,
57983 which can conflict with char $ac_func (); below.
57984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57985 <limits.h> exists even on freestanding compilers. */
57987 #ifdef __STDC__
57988 # include <limits.h>
57989 #else
57990 # include <assert.h>
57991 #endif
57993 #undef $ac_func
57995 /* Override any gcc2 internal prototype to avoid an error. */
57996 #ifdef __cplusplus
57997 extern "C"
57999 #endif
58000 /* We use char because int might match the return type of a gcc2
58001 builtin and then its argument prototype would still apply. */
58002 char $ac_func ();
58003 /* The GNU C library defines this for functions which it implements
58004 to always fail with ENOSYS. Some functions are actually named
58005 something starting with __ and the normal name is an alias. */
58006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58007 choke me
58008 #else
58009 char (*f) () = $ac_func;
58010 #endif
58011 #ifdef __cplusplus
58013 #endif
58016 main ()
58018 return f != $ac_func;
58020 return 0;
58022 _ACEOF
58023 rm -f conftest.$ac_objext conftest$ac_exeext
58024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58025 (eval $ac_link) 2>conftest.er1
58026 ac_status=$?
58027 grep -v '^ *+' conftest.er1 >conftest.err
58028 rm -f conftest.er1
58029 cat conftest.err >&5
58030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58031 (exit $ac_status); } &&
58032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58034 (eval $ac_try) 2>&5
58035 ac_status=$?
58036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58037 (exit $ac_status); }; } &&
58038 { ac_try='test -s conftest$ac_exeext'
58039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58040 (eval $ac_try) 2>&5
58041 ac_status=$?
58042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043 (exit $ac_status); }; }; then
58044 eval "$as_ac_var=yes"
58045 else
58046 echo "$as_me: failed program was:" >&5
58047 sed 's/^/| /' conftest.$ac_ext >&5
58049 eval "$as_ac_var=no"
58051 rm -f conftest.err conftest.$ac_objext \
58052 conftest$ac_exeext conftest.$ac_ext
58054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58056 if test `eval echo '${'$as_ac_var'}'` = yes; then
58057 cat >>confdefs.h <<_ACEOF
58058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58059 _ACEOF
58061 else
58062 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58064 done
58067 if test x$ac_cv_func_copysignl = x"yes"; then
58069 for ac_func in __signbitl
58071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58072 echo "$as_me:$LINENO: checking for $ac_func" >&5
58073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58074 if eval "test \"\${$as_ac_var+set}\" = set"; then
58075 echo $ECHO_N "(cached) $ECHO_C" >&6
58076 else
58077 if test x$gcc_no_link = xyes; then
58078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58080 { (exit 1); exit 1; }; }
58082 cat >conftest.$ac_ext <<_ACEOF
58083 /* confdefs.h. */
58084 _ACEOF
58085 cat confdefs.h >>conftest.$ac_ext
58086 cat >>conftest.$ac_ext <<_ACEOF
58087 /* end confdefs.h. */
58088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58090 #define $ac_func innocuous_$ac_func
58092 /* System header to define __stub macros and hopefully few prototypes,
58093 which can conflict with char $ac_func (); below.
58094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58095 <limits.h> exists even on freestanding compilers. */
58097 #ifdef __STDC__
58098 # include <limits.h>
58099 #else
58100 # include <assert.h>
58101 #endif
58103 #undef $ac_func
58105 /* Override any gcc2 internal prototype to avoid an error. */
58106 #ifdef __cplusplus
58107 extern "C"
58109 #endif
58110 /* We use char because int might match the return type of a gcc2
58111 builtin and then its argument prototype would still apply. */
58112 char $ac_func ();
58113 /* The GNU C library defines this for functions which it implements
58114 to always fail with ENOSYS. Some functions are actually named
58115 something starting with __ and the normal name is an alias. */
58116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58117 choke me
58118 #else
58119 char (*f) () = $ac_func;
58120 #endif
58121 #ifdef __cplusplus
58123 #endif
58126 main ()
58128 return f != $ac_func;
58130 return 0;
58132 _ACEOF
58133 rm -f conftest.$ac_objext conftest$ac_exeext
58134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58135 (eval $ac_link) 2>conftest.er1
58136 ac_status=$?
58137 grep -v '^ *+' conftest.er1 >conftest.err
58138 rm -f conftest.er1
58139 cat conftest.err >&5
58140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58141 (exit $ac_status); } &&
58142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58144 (eval $ac_try) 2>&5
58145 ac_status=$?
58146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58147 (exit $ac_status); }; } &&
58148 { ac_try='test -s conftest$ac_exeext'
58149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58150 (eval $ac_try) 2>&5
58151 ac_status=$?
58152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58153 (exit $ac_status); }; }; then
58154 eval "$as_ac_var=yes"
58155 else
58156 echo "$as_me: failed program was:" >&5
58157 sed 's/^/| /' conftest.$ac_ext >&5
58159 eval "$as_ac_var=no"
58161 rm -f conftest.err conftest.$ac_objext \
58162 conftest$ac_exeext conftest.$ac_ext
58164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58166 if test `eval echo '${'$as_ac_var'}'` = yes; then
58167 cat >>confdefs.h <<_ACEOF
58168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58169 _ACEOF
58171 else
58172 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58174 done
58178 # XXX Review this. Nothing uses it.
58179 if test -n "$LIBMATHOBJS"; then
58180 need_libmath=yes
58185 # Test wchar.h for mbstate_t, which is needed for char_traits and
58186 # others even if wchar_t support is not on.
58187 echo "$as_me:$LINENO: checking for mbstate_t" >&5
58188 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58189 cat >conftest.$ac_ext <<_ACEOF
58190 /* confdefs.h. */
58191 _ACEOF
58192 cat confdefs.h >>conftest.$ac_ext
58193 cat >>conftest.$ac_ext <<_ACEOF
58194 /* end confdefs.h. */
58195 #include <wchar.h>
58197 main ()
58199 mbstate_t teststate;
58201 return 0;
58203 _ACEOF
58204 rm -f conftest.$ac_objext
58205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58206 (eval $ac_compile) 2>conftest.er1
58207 ac_status=$?
58208 grep -v '^ *+' conftest.er1 >conftest.err
58209 rm -f conftest.er1
58210 cat conftest.err >&5
58211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58212 (exit $ac_status); } &&
58213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58215 (eval $ac_try) 2>&5
58216 ac_status=$?
58217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58218 (exit $ac_status); }; } &&
58219 { ac_try='test -s conftest.$ac_objext'
58220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58221 (eval $ac_try) 2>&5
58222 ac_status=$?
58223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58224 (exit $ac_status); }; }; then
58225 have_mbstate_t=yes
58226 else
58227 echo "$as_me: failed program was:" >&5
58228 sed 's/^/| /' conftest.$ac_ext >&5
58230 have_mbstate_t=no
58232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58233 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58234 echo "${ECHO_T}$have_mbstate_t" >&6
58235 if test x"$have_mbstate_t" = xyes; then
58236 cat >>confdefs.h <<\_ACEOF
58237 #define HAVE_MBSTATE_T 1
58238 _ACEOF
58242 # Sanity check for existence of ISO C99 headers for extended encoding.
58244 for ac_header in wchar.h
58246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58248 echo "$as_me:$LINENO: checking for $ac_header" >&5
58249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58251 echo $ECHO_N "(cached) $ECHO_C" >&6
58253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58255 else
58256 # Is the header compilable?
58257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58259 cat >conftest.$ac_ext <<_ACEOF
58260 /* confdefs.h. */
58261 _ACEOF
58262 cat confdefs.h >>conftest.$ac_ext
58263 cat >>conftest.$ac_ext <<_ACEOF
58264 /* end confdefs.h. */
58265 $ac_includes_default
58266 #include <$ac_header>
58267 _ACEOF
58268 rm -f conftest.$ac_objext
58269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58270 (eval $ac_compile) 2>conftest.er1
58271 ac_status=$?
58272 grep -v '^ *+' conftest.er1 >conftest.err
58273 rm -f conftest.er1
58274 cat conftest.err >&5
58275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58276 (exit $ac_status); } &&
58277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58279 (eval $ac_try) 2>&5
58280 ac_status=$?
58281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58282 (exit $ac_status); }; } &&
58283 { ac_try='test -s conftest.$ac_objext'
58284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58285 (eval $ac_try) 2>&5
58286 ac_status=$?
58287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58288 (exit $ac_status); }; }; then
58289 ac_header_compiler=yes
58290 else
58291 echo "$as_me: failed program was:" >&5
58292 sed 's/^/| /' conftest.$ac_ext >&5
58294 ac_header_compiler=no
58296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58298 echo "${ECHO_T}$ac_header_compiler" >&6
58300 # Is the header present?
58301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58303 cat >conftest.$ac_ext <<_ACEOF
58304 /* confdefs.h. */
58305 _ACEOF
58306 cat confdefs.h >>conftest.$ac_ext
58307 cat >>conftest.$ac_ext <<_ACEOF
58308 /* end confdefs.h. */
58309 #include <$ac_header>
58310 _ACEOF
58311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58313 ac_status=$?
58314 grep -v '^ *+' conftest.er1 >conftest.err
58315 rm -f conftest.er1
58316 cat conftest.err >&5
58317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58318 (exit $ac_status); } >/dev/null; then
58319 if test -s conftest.err; then
58320 ac_cpp_err=$ac_c_preproc_warn_flag
58321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58322 else
58323 ac_cpp_err=
58325 else
58326 ac_cpp_err=yes
58328 if test -z "$ac_cpp_err"; then
58329 ac_header_preproc=yes
58330 else
58331 echo "$as_me: failed program was:" >&5
58332 sed 's/^/| /' conftest.$ac_ext >&5
58334 ac_header_preproc=no
58336 rm -f conftest.err conftest.$ac_ext
58337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58338 echo "${ECHO_T}$ac_header_preproc" >&6
58340 # So? What about this header?
58341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58342 yes:no: )
58343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58347 ac_header_preproc=yes
58349 no:yes:* )
58350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58363 cat <<\_ASBOX
58364 ## ----------------------------------------- ##
58365 ## Report this to the package-unused lists. ##
58366 ## ----------------------------------------- ##
58367 _ASBOX
58369 sed "s/^/$as_me: WARNING: /" >&2
58371 esac
58372 echo "$as_me:$LINENO: checking for $ac_header" >&5
58373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58375 echo $ECHO_N "(cached) $ECHO_C" >&6
58376 else
58377 eval "$as_ac_Header=\$ac_header_preproc"
58379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58384 cat >>confdefs.h <<_ACEOF
58385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58386 _ACEOF
58387 ac_has_wchar_h=yes
58388 else
58389 ac_has_wchar_h=no
58392 done
58395 for ac_header in wctype.h
58397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58399 echo "$as_me:$LINENO: checking for $ac_header" >&5
58400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58402 echo $ECHO_N "(cached) $ECHO_C" >&6
58404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58406 else
58407 # Is the header compilable?
58408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58410 cat >conftest.$ac_ext <<_ACEOF
58411 /* confdefs.h. */
58412 _ACEOF
58413 cat confdefs.h >>conftest.$ac_ext
58414 cat >>conftest.$ac_ext <<_ACEOF
58415 /* end confdefs.h. */
58416 $ac_includes_default
58417 #include <$ac_header>
58418 _ACEOF
58419 rm -f conftest.$ac_objext
58420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58421 (eval $ac_compile) 2>conftest.er1
58422 ac_status=$?
58423 grep -v '^ *+' conftest.er1 >conftest.err
58424 rm -f conftest.er1
58425 cat conftest.err >&5
58426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58427 (exit $ac_status); } &&
58428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58430 (eval $ac_try) 2>&5
58431 ac_status=$?
58432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58433 (exit $ac_status); }; } &&
58434 { ac_try='test -s conftest.$ac_objext'
58435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58436 (eval $ac_try) 2>&5
58437 ac_status=$?
58438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58439 (exit $ac_status); }; }; then
58440 ac_header_compiler=yes
58441 else
58442 echo "$as_me: failed program was:" >&5
58443 sed 's/^/| /' conftest.$ac_ext >&5
58445 ac_header_compiler=no
58447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58449 echo "${ECHO_T}$ac_header_compiler" >&6
58451 # Is the header present?
58452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58454 cat >conftest.$ac_ext <<_ACEOF
58455 /* confdefs.h. */
58456 _ACEOF
58457 cat confdefs.h >>conftest.$ac_ext
58458 cat >>conftest.$ac_ext <<_ACEOF
58459 /* end confdefs.h. */
58460 #include <$ac_header>
58461 _ACEOF
58462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58464 ac_status=$?
58465 grep -v '^ *+' conftest.er1 >conftest.err
58466 rm -f conftest.er1
58467 cat conftest.err >&5
58468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58469 (exit $ac_status); } >/dev/null; then
58470 if test -s conftest.err; then
58471 ac_cpp_err=$ac_c_preproc_warn_flag
58472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58473 else
58474 ac_cpp_err=
58476 else
58477 ac_cpp_err=yes
58479 if test -z "$ac_cpp_err"; then
58480 ac_header_preproc=yes
58481 else
58482 echo "$as_me: failed program was:" >&5
58483 sed 's/^/| /' conftest.$ac_ext >&5
58485 ac_header_preproc=no
58487 rm -f conftest.err conftest.$ac_ext
58488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58489 echo "${ECHO_T}$ac_header_preproc" >&6
58491 # So? What about this header?
58492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58493 yes:no: )
58494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58498 ac_header_preproc=yes
58500 no:yes:* )
58501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58514 cat <<\_ASBOX
58515 ## ----------------------------------------- ##
58516 ## Report this to the package-unused lists. ##
58517 ## ----------------------------------------- ##
58518 _ASBOX
58520 sed "s/^/$as_me: WARNING: /" >&2
58522 esac
58523 echo "$as_me:$LINENO: checking for $ac_header" >&5
58524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58526 echo $ECHO_N "(cached) $ECHO_C" >&6
58527 else
58528 eval "$as_ac_Header=\$ac_header_preproc"
58530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58535 cat >>confdefs.h <<_ACEOF
58536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58537 _ACEOF
58538 ac_has_wctype_h=yes
58539 else
58540 ac_has_wctype_h=no
58543 done
58546 # Only continue checking if the ISO C99 headers exist and support is on.
58547 if test x"$ac_has_wchar_h" = xyes &&
58548 test x"$ac_has_wctype_h" = xyes &&
58549 test x"$enable_c_mbchar" != xno; then
58551 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
58552 # numeric_limits can instantiate type_traits<wchar_t>
58553 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
58554 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
58555 cat >conftest.$ac_ext <<_ACEOF
58556 /* confdefs.h. */
58557 _ACEOF
58558 cat confdefs.h >>conftest.$ac_ext
58559 cat >>conftest.$ac_ext <<_ACEOF
58560 /* end confdefs.h. */
58561 #include <wchar.h>
58563 main ()
58565 int i = WCHAR_MIN; int j = WCHAR_MAX;
58567 return 0;
58569 _ACEOF
58570 rm -f conftest.$ac_objext
58571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58572 (eval $ac_compile) 2>conftest.er1
58573 ac_status=$?
58574 grep -v '^ *+' conftest.er1 >conftest.err
58575 rm -f conftest.er1
58576 cat conftest.err >&5
58577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58578 (exit $ac_status); } &&
58579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58581 (eval $ac_try) 2>&5
58582 ac_status=$?
58583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58584 (exit $ac_status); }; } &&
58585 { ac_try='test -s conftest.$ac_objext'
58586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58587 (eval $ac_try) 2>&5
58588 ac_status=$?
58589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58590 (exit $ac_status); }; }; then
58591 has_wchar_minmax=yes
58592 else
58593 echo "$as_me: failed program was:" >&5
58594 sed 's/^/| /' conftest.$ac_ext >&5
58596 has_wchar_minmax=no
58598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58599 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
58600 echo "${ECHO_T}$has_wchar_minmax" >&6
58602 # Test wchar.h for WEOF, which is what we use to determine whether
58603 # to specialize for char_traits<wchar_t> or not.
58604 echo "$as_me:$LINENO: checking for WEOF" >&5
58605 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
58606 cat >conftest.$ac_ext <<_ACEOF
58607 /* confdefs.h. */
58608 _ACEOF
58609 cat confdefs.h >>conftest.$ac_ext
58610 cat >>conftest.$ac_ext <<_ACEOF
58611 /* end confdefs.h. */
58613 #include <wchar.h>
58614 #include <stddef.h>
58616 main ()
58618 wint_t i = WEOF;
58620 return 0;
58622 _ACEOF
58623 rm -f conftest.$ac_objext
58624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58625 (eval $ac_compile) 2>conftest.er1
58626 ac_status=$?
58627 grep -v '^ *+' conftest.er1 >conftest.err
58628 rm -f conftest.er1
58629 cat conftest.err >&5
58630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58631 (exit $ac_status); } &&
58632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58634 (eval $ac_try) 2>&5
58635 ac_status=$?
58636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58637 (exit $ac_status); }; } &&
58638 { ac_try='test -s conftest.$ac_objext'
58639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58640 (eval $ac_try) 2>&5
58641 ac_status=$?
58642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58643 (exit $ac_status); }; }; then
58644 has_weof=yes
58645 else
58646 echo "$as_me: failed program was:" >&5
58647 sed 's/^/| /' conftest.$ac_ext >&5
58649 has_weof=no
58651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58652 echo "$as_me:$LINENO: result: $has_weof" >&5
58653 echo "${ECHO_T}$has_weof" >&6
58655 # Tests for wide character functions used in char_traits<wchar_t>.
58656 ac_wfuncs=yes
58663 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
58665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58666 echo "$as_me:$LINENO: checking for $ac_func" >&5
58667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58668 if eval "test \"\${$as_ac_var+set}\" = set"; then
58669 echo $ECHO_N "(cached) $ECHO_C" >&6
58670 else
58671 if test x$gcc_no_link = xyes; then
58672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58674 { (exit 1); exit 1; }; }
58676 cat >conftest.$ac_ext <<_ACEOF
58677 /* confdefs.h. */
58678 _ACEOF
58679 cat confdefs.h >>conftest.$ac_ext
58680 cat >>conftest.$ac_ext <<_ACEOF
58681 /* end confdefs.h. */
58682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58684 #define $ac_func innocuous_$ac_func
58686 /* System header to define __stub macros and hopefully few prototypes,
58687 which can conflict with char $ac_func (); below.
58688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58689 <limits.h> exists even on freestanding compilers. */
58691 #ifdef __STDC__
58692 # include <limits.h>
58693 #else
58694 # include <assert.h>
58695 #endif
58697 #undef $ac_func
58699 /* Override any gcc2 internal prototype to avoid an error. */
58700 #ifdef __cplusplus
58701 extern "C"
58703 #endif
58704 /* We use char because int might match the return type of a gcc2
58705 builtin and then its argument prototype would still apply. */
58706 char $ac_func ();
58707 /* The GNU C library defines this for functions which it implements
58708 to always fail with ENOSYS. Some functions are actually named
58709 something starting with __ and the normal name is an alias. */
58710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58711 choke me
58712 #else
58713 char (*f) () = $ac_func;
58714 #endif
58715 #ifdef __cplusplus
58717 #endif
58720 main ()
58722 return f != $ac_func;
58724 return 0;
58726 _ACEOF
58727 rm -f conftest.$ac_objext conftest$ac_exeext
58728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58729 (eval $ac_link) 2>conftest.er1
58730 ac_status=$?
58731 grep -v '^ *+' conftest.er1 >conftest.err
58732 rm -f conftest.er1
58733 cat conftest.err >&5
58734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58735 (exit $ac_status); } &&
58736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58738 (eval $ac_try) 2>&5
58739 ac_status=$?
58740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58741 (exit $ac_status); }; } &&
58742 { ac_try='test -s conftest$ac_exeext'
58743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58744 (eval $ac_try) 2>&5
58745 ac_status=$?
58746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58747 (exit $ac_status); }; }; then
58748 eval "$as_ac_var=yes"
58749 else
58750 echo "$as_me: failed program was:" >&5
58751 sed 's/^/| /' conftest.$ac_ext >&5
58753 eval "$as_ac_var=no"
58755 rm -f conftest.err conftest.$ac_objext \
58756 conftest$ac_exeext conftest.$ac_ext
58758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58760 if test `eval echo '${'$as_ac_var'}'` = yes; then
58761 cat >>confdefs.h <<_ACEOF
58762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58763 _ACEOF
58765 else
58766 ac_wfuncs=no
58768 done
58771 # Checks for names injected into std:: by the c_std headers.
58818 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
58819 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
58820 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
58821 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
58822 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
58823 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
58825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58826 echo "$as_me:$LINENO: checking for $ac_func" >&5
58827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58828 if eval "test \"\${$as_ac_var+set}\" = set"; then
58829 echo $ECHO_N "(cached) $ECHO_C" >&6
58830 else
58831 if test x$gcc_no_link = xyes; then
58832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58834 { (exit 1); exit 1; }; }
58836 cat >conftest.$ac_ext <<_ACEOF
58837 /* confdefs.h. */
58838 _ACEOF
58839 cat confdefs.h >>conftest.$ac_ext
58840 cat >>conftest.$ac_ext <<_ACEOF
58841 /* end confdefs.h. */
58842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58844 #define $ac_func innocuous_$ac_func
58846 /* System header to define __stub macros and hopefully few prototypes,
58847 which can conflict with char $ac_func (); below.
58848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58849 <limits.h> exists even on freestanding compilers. */
58851 #ifdef __STDC__
58852 # include <limits.h>
58853 #else
58854 # include <assert.h>
58855 #endif
58857 #undef $ac_func
58859 /* Override any gcc2 internal prototype to avoid an error. */
58860 #ifdef __cplusplus
58861 extern "C"
58863 #endif
58864 /* We use char because int might match the return type of a gcc2
58865 builtin and then its argument prototype would still apply. */
58866 char $ac_func ();
58867 /* The GNU C library defines this for functions which it implements
58868 to always fail with ENOSYS. Some functions are actually named
58869 something starting with __ and the normal name is an alias. */
58870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58871 choke me
58872 #else
58873 char (*f) () = $ac_func;
58874 #endif
58875 #ifdef __cplusplus
58877 #endif
58880 main ()
58882 return f != $ac_func;
58884 return 0;
58886 _ACEOF
58887 rm -f conftest.$ac_objext conftest$ac_exeext
58888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58889 (eval $ac_link) 2>conftest.er1
58890 ac_status=$?
58891 grep -v '^ *+' conftest.er1 >conftest.err
58892 rm -f conftest.er1
58893 cat conftest.err >&5
58894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58895 (exit $ac_status); } &&
58896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
58897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58898 (eval $ac_try) 2>&5
58899 ac_status=$?
58900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58901 (exit $ac_status); }; } &&
58902 { ac_try='test -s conftest$ac_exeext'
58903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58904 (eval $ac_try) 2>&5
58905 ac_status=$?
58906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58907 (exit $ac_status); }; }; then
58908 eval "$as_ac_var=yes"
58909 else
58910 echo "$as_me: failed program was:" >&5
58911 sed 's/^/| /' conftest.$ac_ext >&5
58913 eval "$as_ac_var=no"
58915 rm -f conftest.err conftest.$ac_objext \
58916 conftest$ac_exeext conftest.$ac_ext
58918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58920 if test `eval echo '${'$as_ac_var'}'` = yes; then
58921 cat >>confdefs.h <<_ACEOF
58922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58923 _ACEOF
58925 else
58926 ac_wfuncs=no
58928 done
58931 # Checks for wide character functions that are not required
58932 # for basic wchar_t support. Don't disable support if they are missing.
58933 # Injection of these is wrapped with guard macros.
58939 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
58941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58942 echo "$as_me:$LINENO: checking for $ac_func" >&5
58943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58944 if eval "test \"\${$as_ac_var+set}\" = set"; then
58945 echo $ECHO_N "(cached) $ECHO_C" >&6
58946 else
58947 if test x$gcc_no_link = xyes; then
58948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58950 { (exit 1); exit 1; }; }
58952 cat >conftest.$ac_ext <<_ACEOF
58953 /* confdefs.h. */
58954 _ACEOF
58955 cat confdefs.h >>conftest.$ac_ext
58956 cat >>conftest.$ac_ext <<_ACEOF
58957 /* end confdefs.h. */
58958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58960 #define $ac_func innocuous_$ac_func
58962 /* System header to define __stub macros and hopefully few prototypes,
58963 which can conflict with char $ac_func (); below.
58964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58965 <limits.h> exists even on freestanding compilers. */
58967 #ifdef __STDC__
58968 # include <limits.h>
58969 #else
58970 # include <assert.h>
58971 #endif
58973 #undef $ac_func
58975 /* Override any gcc2 internal prototype to avoid an error. */
58976 #ifdef __cplusplus
58977 extern "C"
58979 #endif
58980 /* We use char because int might match the return type of a gcc2
58981 builtin and then its argument prototype would still apply. */
58982 char $ac_func ();
58983 /* The GNU C library defines this for functions which it implements
58984 to always fail with ENOSYS. Some functions are actually named
58985 something starting with __ and the normal name is an alias. */
58986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58987 choke me
58988 #else
58989 char (*f) () = $ac_func;
58990 #endif
58991 #ifdef __cplusplus
58993 #endif
58996 main ()
58998 return f != $ac_func;
59000 return 0;
59002 _ACEOF
59003 rm -f conftest.$ac_objext conftest$ac_exeext
59004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59005 (eval $ac_link) 2>conftest.er1
59006 ac_status=$?
59007 grep -v '^ *+' conftest.er1 >conftest.err
59008 rm -f conftest.er1
59009 cat conftest.err >&5
59010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59011 (exit $ac_status); } &&
59012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59014 (eval $ac_try) 2>&5
59015 ac_status=$?
59016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59017 (exit $ac_status); }; } &&
59018 { ac_try='test -s conftest$ac_exeext'
59019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59020 (eval $ac_try) 2>&5
59021 ac_status=$?
59022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59023 (exit $ac_status); }; }; then
59024 eval "$as_ac_var=yes"
59025 else
59026 echo "$as_me: failed program was:" >&5
59027 sed 's/^/| /' conftest.$ac_ext >&5
59029 eval "$as_ac_var=no"
59031 rm -f conftest.err conftest.$ac_objext \
59032 conftest$ac_exeext conftest.$ac_ext
59034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59036 if test `eval echo '${'$as_ac_var'}'` = yes; then
59037 cat >>confdefs.h <<_ACEOF
59038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59039 _ACEOF
59042 done
59045 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59046 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59047 if test x"$has_weof" = xyes &&
59048 test x"$has_wchar_minmax" = xyes &&
59049 test x"$ac_wfuncs" = xyes;
59050 then
59051 ac_isoC99_wchar_t=yes
59052 else
59053 ac_isoC99_wchar_t=no
59055 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59056 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59058 # Use iconv for wchar_t to char conversions. As such, check for
59059 # X/Open Portability Guide, version 2 features (XPG2).
59060 if test "${ac_cv_header_iconv_h+set}" = set; then
59061 echo "$as_me:$LINENO: checking for iconv.h" >&5
59062 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59063 if test "${ac_cv_header_iconv_h+set}" = set; then
59064 echo $ECHO_N "(cached) $ECHO_C" >&6
59066 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59067 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59068 else
59069 # Is the header compilable?
59070 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59071 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59072 cat >conftest.$ac_ext <<_ACEOF
59073 /* confdefs.h. */
59074 _ACEOF
59075 cat confdefs.h >>conftest.$ac_ext
59076 cat >>conftest.$ac_ext <<_ACEOF
59077 /* end confdefs.h. */
59078 $ac_includes_default
59079 #include <iconv.h>
59080 _ACEOF
59081 rm -f conftest.$ac_objext
59082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59083 (eval $ac_compile) 2>conftest.er1
59084 ac_status=$?
59085 grep -v '^ *+' conftest.er1 >conftest.err
59086 rm -f conftest.er1
59087 cat conftest.err >&5
59088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59089 (exit $ac_status); } &&
59090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59092 (eval $ac_try) 2>&5
59093 ac_status=$?
59094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59095 (exit $ac_status); }; } &&
59096 { ac_try='test -s conftest.$ac_objext'
59097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59098 (eval $ac_try) 2>&5
59099 ac_status=$?
59100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59101 (exit $ac_status); }; }; then
59102 ac_header_compiler=yes
59103 else
59104 echo "$as_me: failed program was:" >&5
59105 sed 's/^/| /' conftest.$ac_ext >&5
59107 ac_header_compiler=no
59109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59111 echo "${ECHO_T}$ac_header_compiler" >&6
59113 # Is the header present?
59114 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59115 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59116 cat >conftest.$ac_ext <<_ACEOF
59117 /* confdefs.h. */
59118 _ACEOF
59119 cat confdefs.h >>conftest.$ac_ext
59120 cat >>conftest.$ac_ext <<_ACEOF
59121 /* end confdefs.h. */
59122 #include <iconv.h>
59123 _ACEOF
59124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59126 ac_status=$?
59127 grep -v '^ *+' conftest.er1 >conftest.err
59128 rm -f conftest.er1
59129 cat conftest.err >&5
59130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59131 (exit $ac_status); } >/dev/null; then
59132 if test -s conftest.err; then
59133 ac_cpp_err=$ac_c_preproc_warn_flag
59134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59135 else
59136 ac_cpp_err=
59138 else
59139 ac_cpp_err=yes
59141 if test -z "$ac_cpp_err"; then
59142 ac_header_preproc=yes
59143 else
59144 echo "$as_me: failed program was:" >&5
59145 sed 's/^/| /' conftest.$ac_ext >&5
59147 ac_header_preproc=no
59149 rm -f conftest.err conftest.$ac_ext
59150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59151 echo "${ECHO_T}$ac_header_preproc" >&6
59153 # So? What about this header?
59154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59155 yes:no: )
59156 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59157 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59158 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59159 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59160 ac_header_preproc=yes
59162 no:yes:* )
59163 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59164 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59165 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
59166 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
59167 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59168 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59169 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
59170 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
59171 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59172 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59173 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59174 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59176 cat <<\_ASBOX
59177 ## ----------------------------------------- ##
59178 ## Report this to the package-unused lists. ##
59179 ## ----------------------------------------- ##
59180 _ASBOX
59182 sed "s/^/$as_me: WARNING: /" >&2
59184 esac
59185 echo "$as_me:$LINENO: checking for iconv.h" >&5
59186 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59187 if test "${ac_cv_header_iconv_h+set}" = set; then
59188 echo $ECHO_N "(cached) $ECHO_C" >&6
59189 else
59190 ac_cv_header_iconv_h=$ac_header_preproc
59192 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59193 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59196 if test $ac_cv_header_iconv_h = yes; then
59197 ac_has_iconv_h=yes
59198 else
59199 ac_has_iconv_h=no
59203 if test "${ac_cv_header_langinfo_h+set}" = set; then
59204 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59205 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59206 if test "${ac_cv_header_langinfo_h+set}" = set; then
59207 echo $ECHO_N "(cached) $ECHO_C" >&6
59209 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59210 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59211 else
59212 # Is the header compilable?
59213 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59214 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59215 cat >conftest.$ac_ext <<_ACEOF
59216 /* confdefs.h. */
59217 _ACEOF
59218 cat confdefs.h >>conftest.$ac_ext
59219 cat >>conftest.$ac_ext <<_ACEOF
59220 /* end confdefs.h. */
59221 $ac_includes_default
59222 #include <langinfo.h>
59223 _ACEOF
59224 rm -f conftest.$ac_objext
59225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59226 (eval $ac_compile) 2>conftest.er1
59227 ac_status=$?
59228 grep -v '^ *+' conftest.er1 >conftest.err
59229 rm -f conftest.er1
59230 cat conftest.err >&5
59231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59232 (exit $ac_status); } &&
59233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59235 (eval $ac_try) 2>&5
59236 ac_status=$?
59237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59238 (exit $ac_status); }; } &&
59239 { ac_try='test -s conftest.$ac_objext'
59240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59241 (eval $ac_try) 2>&5
59242 ac_status=$?
59243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59244 (exit $ac_status); }; }; then
59245 ac_header_compiler=yes
59246 else
59247 echo "$as_me: failed program was:" >&5
59248 sed 's/^/| /' conftest.$ac_ext >&5
59250 ac_header_compiler=no
59252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59254 echo "${ECHO_T}$ac_header_compiler" >&6
59256 # Is the header present?
59257 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
59258 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
59259 cat >conftest.$ac_ext <<_ACEOF
59260 /* confdefs.h. */
59261 _ACEOF
59262 cat confdefs.h >>conftest.$ac_ext
59263 cat >>conftest.$ac_ext <<_ACEOF
59264 /* end confdefs.h. */
59265 #include <langinfo.h>
59266 _ACEOF
59267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59269 ac_status=$?
59270 grep -v '^ *+' conftest.er1 >conftest.err
59271 rm -f conftest.er1
59272 cat conftest.err >&5
59273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59274 (exit $ac_status); } >/dev/null; then
59275 if test -s conftest.err; then
59276 ac_cpp_err=$ac_c_preproc_warn_flag
59277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59278 else
59279 ac_cpp_err=
59281 else
59282 ac_cpp_err=yes
59284 if test -z "$ac_cpp_err"; then
59285 ac_header_preproc=yes
59286 else
59287 echo "$as_me: failed program was:" >&5
59288 sed 's/^/| /' conftest.$ac_ext >&5
59290 ac_header_preproc=no
59292 rm -f conftest.err conftest.$ac_ext
59293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59294 echo "${ECHO_T}$ac_header_preproc" >&6
59296 # So? What about this header?
59297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59298 yes:no: )
59299 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59300 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59301 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
59302 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
59303 ac_header_preproc=yes
59305 no:yes:* )
59306 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
59307 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
59308 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
59309 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
59310 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
59311 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
59312 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
59313 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
59314 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
59315 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
59316 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
59317 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
59319 cat <<\_ASBOX
59320 ## ----------------------------------------- ##
59321 ## Report this to the package-unused lists. ##
59322 ## ----------------------------------------- ##
59323 _ASBOX
59325 sed "s/^/$as_me: WARNING: /" >&2
59327 esac
59328 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59329 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59330 if test "${ac_cv_header_langinfo_h+set}" = set; then
59331 echo $ECHO_N "(cached) $ECHO_C" >&6
59332 else
59333 ac_cv_header_langinfo_h=$ac_header_preproc
59335 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59336 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59339 if test $ac_cv_header_langinfo_h = yes; then
59340 ac_has_langinfo_h=yes
59341 else
59342 ac_has_langinfo_h=no
59347 # Check for existence of libiconv.a providing XPG2 wchar_t support.
59348 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
59349 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
59350 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
59351 echo $ECHO_N "(cached) $ECHO_C" >&6
59352 else
59353 ac_check_lib_save_LIBS=$LIBS
59354 LIBS="-liconv $LIBS"
59355 if test x$gcc_no_link = xyes; then
59356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59358 { (exit 1); exit 1; }; }
59360 cat >conftest.$ac_ext <<_ACEOF
59361 /* confdefs.h. */
59362 _ACEOF
59363 cat confdefs.h >>conftest.$ac_ext
59364 cat >>conftest.$ac_ext <<_ACEOF
59365 /* end confdefs.h. */
59367 /* Override any gcc2 internal prototype to avoid an error. */
59368 #ifdef __cplusplus
59369 extern "C"
59370 #endif
59371 /* We use char because int might match the return type of a gcc2
59372 builtin and then its argument prototype would still apply. */
59373 char iconv ();
59375 main ()
59377 iconv ();
59379 return 0;
59381 _ACEOF
59382 rm -f conftest.$ac_objext conftest$ac_exeext
59383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59384 (eval $ac_link) 2>conftest.er1
59385 ac_status=$?
59386 grep -v '^ *+' conftest.er1 >conftest.err
59387 rm -f conftest.er1
59388 cat conftest.err >&5
59389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59390 (exit $ac_status); } &&
59391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59393 (eval $ac_try) 2>&5
59394 ac_status=$?
59395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59396 (exit $ac_status); }; } &&
59397 { ac_try='test -s conftest$ac_exeext'
59398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59399 (eval $ac_try) 2>&5
59400 ac_status=$?
59401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59402 (exit $ac_status); }; }; then
59403 ac_cv_lib_iconv_iconv=yes
59404 else
59405 echo "$as_me: failed program was:" >&5
59406 sed 's/^/| /' conftest.$ac_ext >&5
59408 ac_cv_lib_iconv_iconv=no
59410 rm -f conftest.err conftest.$ac_objext \
59411 conftest$ac_exeext conftest.$ac_ext
59412 LIBS=$ac_check_lib_save_LIBS
59414 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
59415 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
59416 if test $ac_cv_lib_iconv_iconv = yes; then
59417 libiconv="-liconv"
59420 ac_save_LIBS="$LIBS"
59421 LIBS="$LIBS $libiconv"
59427 for ac_func in iconv_open iconv_close iconv nl_langinfo
59429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59430 echo "$as_me:$LINENO: checking for $ac_func" >&5
59431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59432 if eval "test \"\${$as_ac_var+set}\" = set"; then
59433 echo $ECHO_N "(cached) $ECHO_C" >&6
59434 else
59435 if test x$gcc_no_link = xyes; then
59436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59438 { (exit 1); exit 1; }; }
59440 cat >conftest.$ac_ext <<_ACEOF
59441 /* confdefs.h. */
59442 _ACEOF
59443 cat confdefs.h >>conftest.$ac_ext
59444 cat >>conftest.$ac_ext <<_ACEOF
59445 /* end confdefs.h. */
59446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59448 #define $ac_func innocuous_$ac_func
59450 /* System header to define __stub macros and hopefully few prototypes,
59451 which can conflict with char $ac_func (); below.
59452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59453 <limits.h> exists even on freestanding compilers. */
59455 #ifdef __STDC__
59456 # include <limits.h>
59457 #else
59458 # include <assert.h>
59459 #endif
59461 #undef $ac_func
59463 /* Override any gcc2 internal prototype to avoid an error. */
59464 #ifdef __cplusplus
59465 extern "C"
59467 #endif
59468 /* We use char because int might match the return type of a gcc2
59469 builtin and then its argument prototype would still apply. */
59470 char $ac_func ();
59471 /* The GNU C library defines this for functions which it implements
59472 to always fail with ENOSYS. Some functions are actually named
59473 something starting with __ and the normal name is an alias. */
59474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59475 choke me
59476 #else
59477 char (*f) () = $ac_func;
59478 #endif
59479 #ifdef __cplusplus
59481 #endif
59484 main ()
59486 return f != $ac_func;
59488 return 0;
59490 _ACEOF
59491 rm -f conftest.$ac_objext conftest$ac_exeext
59492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59493 (eval $ac_link) 2>conftest.er1
59494 ac_status=$?
59495 grep -v '^ *+' conftest.er1 >conftest.err
59496 rm -f conftest.er1
59497 cat conftest.err >&5
59498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59499 (exit $ac_status); } &&
59500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59502 (eval $ac_try) 2>&5
59503 ac_status=$?
59504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59505 (exit $ac_status); }; } &&
59506 { ac_try='test -s conftest$ac_exeext'
59507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59508 (eval $ac_try) 2>&5
59509 ac_status=$?
59510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59511 (exit $ac_status); }; }; then
59512 eval "$as_ac_var=yes"
59513 else
59514 echo "$as_me: failed program was:" >&5
59515 sed 's/^/| /' conftest.$ac_ext >&5
59517 eval "$as_ac_var=no"
59519 rm -f conftest.err conftest.$ac_objext \
59520 conftest$ac_exeext conftest.$ac_ext
59522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59524 if test `eval echo '${'$as_ac_var'}'` = yes; then
59525 cat >>confdefs.h <<_ACEOF
59526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59527 _ACEOF
59528 ac_XPG2funcs=yes
59529 else
59530 ac_XPG2funcs=no
59532 done
59535 LIBS="$ac_save_LIBS"
59537 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
59538 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
59539 if test x"$ac_has_iconv_h" = xyes &&
59540 test x"$ac_has_langinfo_h" = xyes &&
59541 test x"$ac_XPG2funcs" = xyes;
59542 then
59543 ac_XPG2_wchar_t=yes
59544 else
59545 ac_XPG2_wchar_t=no
59547 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
59548 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
59550 # At the moment, only enable wchar_t specializations if all the
59551 # above support is present.
59552 if test x"$ac_isoC99_wchar_t" = xyes &&
59553 test x"$ac_XPG2_wchar_t" = xyes;
59554 then
59555 cat >>confdefs.h <<\_ACEOF
59556 #define _GLIBCXX_USE_WCHAR_T 1
59557 _ACEOF
59559 enable_wchar_t=yes
59562 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
59563 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
59564 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
59565 echo "${ECHO_T}$enable_wchar_t" >&6
59567 cat >>confdefs.h <<\_ACEOF
59568 #define HAVE_COPYSIGN 1
59569 _ACEOF
59571 cat >>confdefs.h <<\_ACEOF
59572 #define HAVE_COPYSIGNF 1
59573 _ACEOF
59575 cat >>confdefs.h <<\_ACEOF
59576 #define HAVE_FINITE 1
59577 _ACEOF
59579 cat >>confdefs.h <<\_ACEOF
59580 #define HAVE_FINITEF 1
59581 _ACEOF
59583 cat >>confdefs.h <<\_ACEOF
59584 #define HAVE_FREXPF 1
59585 _ACEOF
59587 cat >>confdefs.h <<\_ACEOF
59588 #define HAVE_HYPOTF 1
59589 _ACEOF
59591 cat >>confdefs.h <<\_ACEOF
59592 #define HAVE_ISINF 1
59593 _ACEOF
59595 cat >>confdefs.h <<\_ACEOF
59596 #define HAVE_ISINFF 1
59597 _ACEOF
59599 cat >>confdefs.h <<\_ACEOF
59600 #define HAVE_ISNAN 1
59601 _ACEOF
59603 cat >>confdefs.h <<\_ACEOF
59604 #define HAVE_ISNANF 1
59605 _ACEOF
59607 cat >>confdefs.h <<\_ACEOF
59608 #define HAVE_SINCOS 1
59609 _ACEOF
59611 cat >>confdefs.h <<\_ACEOF
59612 #define HAVE_SINCOSF 1
59613 _ACEOF
59615 if test x"long_double_math_on_this_cpu" = x"yes"; then
59616 cat >>confdefs.h <<\_ACEOF
59617 #define HAVE_FINITEL 1
59618 _ACEOF
59620 cat >>confdefs.h <<\_ACEOF
59621 #define HAVE_HYPOTL 1
59622 _ACEOF
59624 cat >>confdefs.h <<\_ACEOF
59625 #define HAVE_ISINFL 1
59626 _ACEOF
59628 cat >>confdefs.h <<\_ACEOF
59629 #define HAVE_ISNANL 1
59630 _ACEOF
59634 *-mingw32*)
59638 for ac_header in sys/types.h locale.h float.h
59640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59642 echo "$as_me:$LINENO: checking for $ac_header" >&5
59643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59645 echo $ECHO_N "(cached) $ECHO_C" >&6
59647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59649 else
59650 # Is the header compilable?
59651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59653 cat >conftest.$ac_ext <<_ACEOF
59654 /* confdefs.h. */
59655 _ACEOF
59656 cat confdefs.h >>conftest.$ac_ext
59657 cat >>conftest.$ac_ext <<_ACEOF
59658 /* end confdefs.h. */
59659 $ac_includes_default
59660 #include <$ac_header>
59661 _ACEOF
59662 rm -f conftest.$ac_objext
59663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59664 (eval $ac_compile) 2>conftest.er1
59665 ac_status=$?
59666 grep -v '^ *+' conftest.er1 >conftest.err
59667 rm -f conftest.er1
59668 cat conftest.err >&5
59669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59670 (exit $ac_status); } &&
59671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59673 (eval $ac_try) 2>&5
59674 ac_status=$?
59675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59676 (exit $ac_status); }; } &&
59677 { ac_try='test -s conftest.$ac_objext'
59678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59679 (eval $ac_try) 2>&5
59680 ac_status=$?
59681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59682 (exit $ac_status); }; }; then
59683 ac_header_compiler=yes
59684 else
59685 echo "$as_me: failed program was:" >&5
59686 sed 's/^/| /' conftest.$ac_ext >&5
59688 ac_header_compiler=no
59690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59692 echo "${ECHO_T}$ac_header_compiler" >&6
59694 # Is the header present?
59695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59697 cat >conftest.$ac_ext <<_ACEOF
59698 /* confdefs.h. */
59699 _ACEOF
59700 cat confdefs.h >>conftest.$ac_ext
59701 cat >>conftest.$ac_ext <<_ACEOF
59702 /* end confdefs.h. */
59703 #include <$ac_header>
59704 _ACEOF
59705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59707 ac_status=$?
59708 grep -v '^ *+' conftest.er1 >conftest.err
59709 rm -f conftest.er1
59710 cat conftest.err >&5
59711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59712 (exit $ac_status); } >/dev/null; then
59713 if test -s conftest.err; then
59714 ac_cpp_err=$ac_c_preproc_warn_flag
59715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59716 else
59717 ac_cpp_err=
59719 else
59720 ac_cpp_err=yes
59722 if test -z "$ac_cpp_err"; then
59723 ac_header_preproc=yes
59724 else
59725 echo "$as_me: failed program was:" >&5
59726 sed 's/^/| /' conftest.$ac_ext >&5
59728 ac_header_preproc=no
59730 rm -f conftest.err conftest.$ac_ext
59731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59732 echo "${ECHO_T}$ac_header_preproc" >&6
59734 # So? What about this header?
59735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59736 yes:no: )
59737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59741 ac_header_preproc=yes
59743 no:yes:* )
59744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
59747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
59748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
59751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
59752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59757 cat <<\_ASBOX
59758 ## ----------------------------------------- ##
59759 ## Report this to the package-unused lists. ##
59760 ## ----------------------------------------- ##
59761 _ASBOX
59763 sed "s/^/$as_me: WARNING: /" >&2
59765 esac
59766 echo "$as_me:$LINENO: checking for $ac_header" >&5
59767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59769 echo $ECHO_N "(cached) $ECHO_C" >&6
59770 else
59771 eval "$as_ac_Header=\$ac_header_preproc"
59773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59778 cat >>confdefs.h <<_ACEOF
59779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59780 _ACEOF
59784 done
59787 # If we're not using GNU ld, then there's no point in even trying these
59788 # tests. Check for that first. We should have already tested for gld
59789 # by now (in libtool), but require it now just to be safe...
59790 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
59791 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
59795 # The name set by libtool depends on the version of libtool. Shame on us
59796 # for depending on an impl detail, but c'est la vie. Older versions used
59797 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
59798 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
59799 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
59800 # set (hence we're using an older libtool), then set it.
59801 if test x${with_gnu_ld+set} != xset; then
59802 if test x${ac_cv_prog_gnu_ld+set} != xset; then
59803 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
59804 with_gnu_ld=no
59805 else
59806 with_gnu_ld=$ac_cv_prog_gnu_ld
59810 # Start by getting the version number. I think the libtool test already
59811 # does some of this, but throws away the result.
59813 ldver=`$LD --version 2>/dev/null | head -1 | \
59814 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
59816 glibcxx_gnu_ld_version=`echo $ldver | \
59817 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
59819 # Set --gc-sections.
59820 if test "$with_gnu_ld" = "notbroken"; then
59821 # GNU ld it is! Joy and bunny rabbits!
59823 # All these tests are for C++; save the language and the compiler flags.
59824 # Need to do this so that g++ won't try to link in libstdc++
59825 ac_test_CFLAGS="${CFLAGS+set}"
59826 ac_save_CFLAGS="$CFLAGS"
59827 CFLAGS='-x c++ -Wl,--gc-sections'
59829 # Check for -Wl,--gc-sections
59830 # XXX This test is broken at the moment, as symbols required for linking
59831 # are now in libsupc++ (not built yet). In addition, this test has
59832 # cored on solaris in the past. In addition, --gc-sections doesn't
59833 # really work at the moment (keeps on discarding used sections, first
59834 # .eh_frame and now some of the glibc sections for iconv).
59835 # Bzzzzt. Thanks for playing, maybe next time.
59836 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
59837 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
59838 if test "$cross_compiling" = yes; then
59839 ac_sectionLDflags=yes
59840 else
59841 cat >conftest.$ac_ext <<_ACEOF
59842 /* confdefs.h. */
59843 _ACEOF
59844 cat confdefs.h >>conftest.$ac_ext
59845 cat >>conftest.$ac_ext <<_ACEOF
59846 /* end confdefs.h. */
59848 int main(void)
59850 try { throw 1; }
59851 catch (...) { };
59852 return 0;
59855 _ACEOF
59856 rm -f conftest$ac_exeext
59857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59858 (eval $ac_link) 2>&5
59859 ac_status=$?
59860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59863 (eval $ac_try) 2>&5
59864 ac_status=$?
59865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59866 (exit $ac_status); }; }; then
59867 ac_sectionLDflags=yes
59868 else
59869 echo "$as_me: program exited with status $ac_status" >&5
59870 echo "$as_me: failed program was:" >&5
59871 sed 's/^/| /' conftest.$ac_ext >&5
59873 ( exit $ac_status )
59874 ac_sectionLDflags=no
59876 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59878 if test "$ac_test_CFLAGS" = set; then
59879 CFLAGS="$ac_save_CFLAGS"
59880 else
59881 # this is the suspicious part
59882 CFLAGS=''
59884 if test "$ac_sectionLDflags" = "yes"; then
59885 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
59887 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
59888 echo "${ECHO_T}$ac_sectionLDflags" >&6
59891 # Set linker optimization flags.
59892 if test x"$with_gnu_ld" = x"yes"; then
59893 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
59901 echo "$as_me:$LINENO: checking for main in -lm" >&5
59902 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
59903 if test "${ac_cv_lib_m_main+set}" = set; then
59904 echo $ECHO_N "(cached) $ECHO_C" >&6
59905 else
59906 ac_check_lib_save_LIBS=$LIBS
59907 LIBS="-lm $LIBS"
59908 if test x$gcc_no_link = xyes; then
59909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59911 { (exit 1); exit 1; }; }
59913 cat >conftest.$ac_ext <<_ACEOF
59914 /* confdefs.h. */
59915 _ACEOF
59916 cat confdefs.h >>conftest.$ac_ext
59917 cat >>conftest.$ac_ext <<_ACEOF
59918 /* end confdefs.h. */
59922 main ()
59924 main ();
59926 return 0;
59928 _ACEOF
59929 rm -f conftest.$ac_objext conftest$ac_exeext
59930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59931 (eval $ac_link) 2>conftest.er1
59932 ac_status=$?
59933 grep -v '^ *+' conftest.er1 >conftest.err
59934 rm -f conftest.er1
59935 cat conftest.err >&5
59936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59937 (exit $ac_status); } &&
59938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
59939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59940 (eval $ac_try) 2>&5
59941 ac_status=$?
59942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59943 (exit $ac_status); }; } &&
59944 { ac_try='test -s conftest$ac_exeext'
59945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59946 (eval $ac_try) 2>&5
59947 ac_status=$?
59948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59949 (exit $ac_status); }; }; then
59950 ac_cv_lib_m_main=yes
59951 else
59952 echo "$as_me: failed program was:" >&5
59953 sed 's/^/| /' conftest.$ac_ext >&5
59955 ac_cv_lib_m_main=no
59957 rm -f conftest.err conftest.$ac_objext \
59958 conftest$ac_exeext conftest.$ac_ext
59959 LIBS=$ac_check_lib_save_LIBS
59961 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
59962 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
59963 if test $ac_cv_lib_m_main = yes; then
59964 cat >>confdefs.h <<_ACEOF
59965 #define HAVE_LIBM 1
59966 _ACEOF
59968 LIBS="-lm $LIBS"
59974 for ac_func in nan copysignf
59976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59977 echo "$as_me:$LINENO: checking for $ac_func" >&5
59978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59979 if eval "test \"\${$as_ac_var+set}\" = set"; then
59980 echo $ECHO_N "(cached) $ECHO_C" >&6
59981 else
59982 if test x$gcc_no_link = xyes; then
59983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59985 { (exit 1); exit 1; }; }
59987 cat >conftest.$ac_ext <<_ACEOF
59988 /* confdefs.h. */
59989 _ACEOF
59990 cat confdefs.h >>conftest.$ac_ext
59991 cat >>conftest.$ac_ext <<_ACEOF
59992 /* end confdefs.h. */
59993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59995 #define $ac_func innocuous_$ac_func
59997 /* System header to define __stub macros and hopefully few prototypes,
59998 which can conflict with char $ac_func (); below.
59999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60000 <limits.h> exists even on freestanding compilers. */
60002 #ifdef __STDC__
60003 # include <limits.h>
60004 #else
60005 # include <assert.h>
60006 #endif
60008 #undef $ac_func
60010 /* Override any gcc2 internal prototype to avoid an error. */
60011 #ifdef __cplusplus
60012 extern "C"
60014 #endif
60015 /* We use char because int might match the return type of a gcc2
60016 builtin and then its argument prototype would still apply. */
60017 char $ac_func ();
60018 /* The GNU C library defines this for functions which it implements
60019 to always fail with ENOSYS. Some functions are actually named
60020 something starting with __ and the normal name is an alias. */
60021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60022 choke me
60023 #else
60024 char (*f) () = $ac_func;
60025 #endif
60026 #ifdef __cplusplus
60028 #endif
60031 main ()
60033 return f != $ac_func;
60035 return 0;
60037 _ACEOF
60038 rm -f conftest.$ac_objext conftest$ac_exeext
60039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60040 (eval $ac_link) 2>conftest.er1
60041 ac_status=$?
60042 grep -v '^ *+' conftest.er1 >conftest.err
60043 rm -f conftest.er1
60044 cat conftest.err >&5
60045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60046 (exit $ac_status); } &&
60047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60049 (eval $ac_try) 2>&5
60050 ac_status=$?
60051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60052 (exit $ac_status); }; } &&
60053 { ac_try='test -s conftest$ac_exeext'
60054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60055 (eval $ac_try) 2>&5
60056 ac_status=$?
60057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60058 (exit $ac_status); }; }; then
60059 eval "$as_ac_var=yes"
60060 else
60061 echo "$as_me: failed program was:" >&5
60062 sed 's/^/| /' conftest.$ac_ext >&5
60064 eval "$as_ac_var=no"
60066 rm -f conftest.err conftest.$ac_objext \
60067 conftest$ac_exeext conftest.$ac_ext
60069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60071 if test `eval echo '${'$as_ac_var'}'` = yes; then
60072 cat >>confdefs.h <<_ACEOF
60073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60074 _ACEOF
60076 else
60077 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
60079 done
60083 for ac_func in __signbit
60085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60086 echo "$as_me:$LINENO: checking for $ac_func" >&5
60087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60088 if eval "test \"\${$as_ac_var+set}\" = set"; then
60089 echo $ECHO_N "(cached) $ECHO_C" >&6
60090 else
60091 if test x$gcc_no_link = xyes; then
60092 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60094 { (exit 1); exit 1; }; }
60096 cat >conftest.$ac_ext <<_ACEOF
60097 /* confdefs.h. */
60098 _ACEOF
60099 cat confdefs.h >>conftest.$ac_ext
60100 cat >>conftest.$ac_ext <<_ACEOF
60101 /* end confdefs.h. */
60102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60104 #define $ac_func innocuous_$ac_func
60106 /* System header to define __stub macros and hopefully few prototypes,
60107 which can conflict with char $ac_func (); below.
60108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60109 <limits.h> exists even on freestanding compilers. */
60111 #ifdef __STDC__
60112 # include <limits.h>
60113 #else
60114 # include <assert.h>
60115 #endif
60117 #undef $ac_func
60119 /* Override any gcc2 internal prototype to avoid an error. */
60120 #ifdef __cplusplus
60121 extern "C"
60123 #endif
60124 /* We use char because int might match the return type of a gcc2
60125 builtin and then its argument prototype would still apply. */
60126 char $ac_func ();
60127 /* The GNU C library defines this for functions which it implements
60128 to always fail with ENOSYS. Some functions are actually named
60129 something starting with __ and the normal name is an alias. */
60130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60131 choke me
60132 #else
60133 char (*f) () = $ac_func;
60134 #endif
60135 #ifdef __cplusplus
60137 #endif
60140 main ()
60142 return f != $ac_func;
60144 return 0;
60146 _ACEOF
60147 rm -f conftest.$ac_objext conftest$ac_exeext
60148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60149 (eval $ac_link) 2>conftest.er1
60150 ac_status=$?
60151 grep -v '^ *+' conftest.er1 >conftest.err
60152 rm -f conftest.er1
60153 cat conftest.err >&5
60154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60155 (exit $ac_status); } &&
60156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60158 (eval $ac_try) 2>&5
60159 ac_status=$?
60160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60161 (exit $ac_status); }; } &&
60162 { ac_try='test -s conftest$ac_exeext'
60163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60164 (eval $ac_try) 2>&5
60165 ac_status=$?
60166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60167 (exit $ac_status); }; }; then
60168 eval "$as_ac_var=yes"
60169 else
60170 echo "$as_me: failed program was:" >&5
60171 sed 's/^/| /' conftest.$ac_ext >&5
60173 eval "$as_ac_var=no"
60175 rm -f conftest.err conftest.$ac_objext \
60176 conftest$ac_exeext conftest.$ac_ext
60178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60180 if test `eval echo '${'$as_ac_var'}'` = yes; then
60181 cat >>confdefs.h <<_ACEOF
60182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60183 _ACEOF
60185 else
60186 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
60188 done
60191 for ac_func in __signbitf
60193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60194 echo "$as_me:$LINENO: checking for $ac_func" >&5
60195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60196 if eval "test \"\${$as_ac_var+set}\" = set"; then
60197 echo $ECHO_N "(cached) $ECHO_C" >&6
60198 else
60199 if test x$gcc_no_link = xyes; then
60200 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60201 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60202 { (exit 1); exit 1; }; }
60204 cat >conftest.$ac_ext <<_ACEOF
60205 /* confdefs.h. */
60206 _ACEOF
60207 cat confdefs.h >>conftest.$ac_ext
60208 cat >>conftest.$ac_ext <<_ACEOF
60209 /* end confdefs.h. */
60210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60212 #define $ac_func innocuous_$ac_func
60214 /* System header to define __stub macros and hopefully few prototypes,
60215 which can conflict with char $ac_func (); below.
60216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60217 <limits.h> exists even on freestanding compilers. */
60219 #ifdef __STDC__
60220 # include <limits.h>
60221 #else
60222 # include <assert.h>
60223 #endif
60225 #undef $ac_func
60227 /* Override any gcc2 internal prototype to avoid an error. */
60228 #ifdef __cplusplus
60229 extern "C"
60231 #endif
60232 /* We use char because int might match the return type of a gcc2
60233 builtin and then its argument prototype would still apply. */
60234 char $ac_func ();
60235 /* The GNU C library defines this for functions which it implements
60236 to always fail with ENOSYS. Some functions are actually named
60237 something starting with __ and the normal name is an alias. */
60238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60239 choke me
60240 #else
60241 char (*f) () = $ac_func;
60242 #endif
60243 #ifdef __cplusplus
60245 #endif
60248 main ()
60250 return f != $ac_func;
60252 return 0;
60254 _ACEOF
60255 rm -f conftest.$ac_objext conftest$ac_exeext
60256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60257 (eval $ac_link) 2>conftest.er1
60258 ac_status=$?
60259 grep -v '^ *+' conftest.er1 >conftest.err
60260 rm -f conftest.er1
60261 cat conftest.err >&5
60262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60263 (exit $ac_status); } &&
60264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60266 (eval $ac_try) 2>&5
60267 ac_status=$?
60268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60269 (exit $ac_status); }; } &&
60270 { ac_try='test -s conftest$ac_exeext'
60271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60272 (eval $ac_try) 2>&5
60273 ac_status=$?
60274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60275 (exit $ac_status); }; }; then
60276 eval "$as_ac_var=yes"
60277 else
60278 echo "$as_me: failed program was:" >&5
60279 sed 's/^/| /' conftest.$ac_ext >&5
60281 eval "$as_ac_var=no"
60283 rm -f conftest.err conftest.$ac_objext \
60284 conftest$ac_exeext conftest.$ac_ext
60286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60288 if test `eval echo '${'$as_ac_var'}'` = yes; then
60289 cat >>confdefs.h <<_ACEOF
60290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60291 _ACEOF
60293 else
60294 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
60296 done
60299 if test x$ac_cv_func_copysignl = x"yes"; then
60301 for ac_func in __signbitl
60303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60304 echo "$as_me:$LINENO: checking for $ac_func" >&5
60305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60306 if eval "test \"\${$as_ac_var+set}\" = set"; then
60307 echo $ECHO_N "(cached) $ECHO_C" >&6
60308 else
60309 if test x$gcc_no_link = xyes; then
60310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60312 { (exit 1); exit 1; }; }
60314 cat >conftest.$ac_ext <<_ACEOF
60315 /* confdefs.h. */
60316 _ACEOF
60317 cat confdefs.h >>conftest.$ac_ext
60318 cat >>conftest.$ac_ext <<_ACEOF
60319 /* end confdefs.h. */
60320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60322 #define $ac_func innocuous_$ac_func
60324 /* System header to define __stub macros and hopefully few prototypes,
60325 which can conflict with char $ac_func (); below.
60326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60327 <limits.h> exists even on freestanding compilers. */
60329 #ifdef __STDC__
60330 # include <limits.h>
60331 #else
60332 # include <assert.h>
60333 #endif
60335 #undef $ac_func
60337 /* Override any gcc2 internal prototype to avoid an error. */
60338 #ifdef __cplusplus
60339 extern "C"
60341 #endif
60342 /* We use char because int might match the return type of a gcc2
60343 builtin and then its argument prototype would still apply. */
60344 char $ac_func ();
60345 /* The GNU C library defines this for functions which it implements
60346 to always fail with ENOSYS. Some functions are actually named
60347 something starting with __ and the normal name is an alias. */
60348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60349 choke me
60350 #else
60351 char (*f) () = $ac_func;
60352 #endif
60353 #ifdef __cplusplus
60355 #endif
60358 main ()
60360 return f != $ac_func;
60362 return 0;
60364 _ACEOF
60365 rm -f conftest.$ac_objext conftest$ac_exeext
60366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60367 (eval $ac_link) 2>conftest.er1
60368 ac_status=$?
60369 grep -v '^ *+' conftest.er1 >conftest.err
60370 rm -f conftest.er1
60371 cat conftest.err >&5
60372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60373 (exit $ac_status); } &&
60374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60376 (eval $ac_try) 2>&5
60377 ac_status=$?
60378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60379 (exit $ac_status); }; } &&
60380 { ac_try='test -s conftest$ac_exeext'
60381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60382 (eval $ac_try) 2>&5
60383 ac_status=$?
60384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60385 (exit $ac_status); }; }; then
60386 eval "$as_ac_var=yes"
60387 else
60388 echo "$as_me: failed program was:" >&5
60389 sed 's/^/| /' conftest.$ac_ext >&5
60391 eval "$as_ac_var=no"
60393 rm -f conftest.err conftest.$ac_objext \
60394 conftest$ac_exeext conftest.$ac_ext
60396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60398 if test `eval echo '${'$as_ac_var'}'` = yes; then
60399 cat >>confdefs.h <<_ACEOF
60400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60401 _ACEOF
60403 else
60404 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
60406 done
60410 # XXX Review this. Nothing uses it.
60411 if test -n "$LIBMATHOBJS"; then
60412 need_libmath=yes
60417 # Test wchar.h for mbstate_t, which is needed for char_traits and
60418 # others even if wchar_t support is not on.
60419 echo "$as_me:$LINENO: checking for mbstate_t" >&5
60420 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
60421 cat >conftest.$ac_ext <<_ACEOF
60422 /* confdefs.h. */
60423 _ACEOF
60424 cat confdefs.h >>conftest.$ac_ext
60425 cat >>conftest.$ac_ext <<_ACEOF
60426 /* end confdefs.h. */
60427 #include <wchar.h>
60429 main ()
60431 mbstate_t teststate;
60433 return 0;
60435 _ACEOF
60436 rm -f conftest.$ac_objext
60437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60438 (eval $ac_compile) 2>conftest.er1
60439 ac_status=$?
60440 grep -v '^ *+' conftest.er1 >conftest.err
60441 rm -f conftest.er1
60442 cat conftest.err >&5
60443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60444 (exit $ac_status); } &&
60445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60447 (eval $ac_try) 2>&5
60448 ac_status=$?
60449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60450 (exit $ac_status); }; } &&
60451 { ac_try='test -s conftest.$ac_objext'
60452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60453 (eval $ac_try) 2>&5
60454 ac_status=$?
60455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60456 (exit $ac_status); }; }; then
60457 have_mbstate_t=yes
60458 else
60459 echo "$as_me: failed program was:" >&5
60460 sed 's/^/| /' conftest.$ac_ext >&5
60462 have_mbstate_t=no
60464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60465 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
60466 echo "${ECHO_T}$have_mbstate_t" >&6
60467 if test x"$have_mbstate_t" = xyes; then
60468 cat >>confdefs.h <<\_ACEOF
60469 #define HAVE_MBSTATE_T 1
60470 _ACEOF
60474 # Sanity check for existence of ISO C99 headers for extended encoding.
60476 for ac_header in wchar.h
60478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60480 echo "$as_me:$LINENO: checking for $ac_header" >&5
60481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60483 echo $ECHO_N "(cached) $ECHO_C" >&6
60485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60487 else
60488 # Is the header compilable?
60489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60491 cat >conftest.$ac_ext <<_ACEOF
60492 /* confdefs.h. */
60493 _ACEOF
60494 cat confdefs.h >>conftest.$ac_ext
60495 cat >>conftest.$ac_ext <<_ACEOF
60496 /* end confdefs.h. */
60497 $ac_includes_default
60498 #include <$ac_header>
60499 _ACEOF
60500 rm -f conftest.$ac_objext
60501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60502 (eval $ac_compile) 2>conftest.er1
60503 ac_status=$?
60504 grep -v '^ *+' conftest.er1 >conftest.err
60505 rm -f conftest.er1
60506 cat conftest.err >&5
60507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60508 (exit $ac_status); } &&
60509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60511 (eval $ac_try) 2>&5
60512 ac_status=$?
60513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60514 (exit $ac_status); }; } &&
60515 { ac_try='test -s conftest.$ac_objext'
60516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60517 (eval $ac_try) 2>&5
60518 ac_status=$?
60519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60520 (exit $ac_status); }; }; then
60521 ac_header_compiler=yes
60522 else
60523 echo "$as_me: failed program was:" >&5
60524 sed 's/^/| /' conftest.$ac_ext >&5
60526 ac_header_compiler=no
60528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60530 echo "${ECHO_T}$ac_header_compiler" >&6
60532 # Is the header present?
60533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60535 cat >conftest.$ac_ext <<_ACEOF
60536 /* confdefs.h. */
60537 _ACEOF
60538 cat confdefs.h >>conftest.$ac_ext
60539 cat >>conftest.$ac_ext <<_ACEOF
60540 /* end confdefs.h. */
60541 #include <$ac_header>
60542 _ACEOF
60543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60545 ac_status=$?
60546 grep -v '^ *+' conftest.er1 >conftest.err
60547 rm -f conftest.er1
60548 cat conftest.err >&5
60549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60550 (exit $ac_status); } >/dev/null; then
60551 if test -s conftest.err; then
60552 ac_cpp_err=$ac_c_preproc_warn_flag
60553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60554 else
60555 ac_cpp_err=
60557 else
60558 ac_cpp_err=yes
60560 if test -z "$ac_cpp_err"; then
60561 ac_header_preproc=yes
60562 else
60563 echo "$as_me: failed program was:" >&5
60564 sed 's/^/| /' conftest.$ac_ext >&5
60566 ac_header_preproc=no
60568 rm -f conftest.err conftest.$ac_ext
60569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60570 echo "${ECHO_T}$ac_header_preproc" >&6
60572 # So? What about this header?
60573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60574 yes:no: )
60575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60579 ac_header_preproc=yes
60581 no:yes:* )
60582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60595 cat <<\_ASBOX
60596 ## ----------------------------------------- ##
60597 ## Report this to the package-unused lists. ##
60598 ## ----------------------------------------- ##
60599 _ASBOX
60601 sed "s/^/$as_me: WARNING: /" >&2
60603 esac
60604 echo "$as_me:$LINENO: checking for $ac_header" >&5
60605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60607 echo $ECHO_N "(cached) $ECHO_C" >&6
60608 else
60609 eval "$as_ac_Header=\$ac_header_preproc"
60611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60616 cat >>confdefs.h <<_ACEOF
60617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60618 _ACEOF
60619 ac_has_wchar_h=yes
60620 else
60621 ac_has_wchar_h=no
60624 done
60627 for ac_header in wctype.h
60629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60631 echo "$as_me:$LINENO: checking for $ac_header" >&5
60632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60634 echo $ECHO_N "(cached) $ECHO_C" >&6
60636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60638 else
60639 # Is the header compilable?
60640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60642 cat >conftest.$ac_ext <<_ACEOF
60643 /* confdefs.h. */
60644 _ACEOF
60645 cat confdefs.h >>conftest.$ac_ext
60646 cat >>conftest.$ac_ext <<_ACEOF
60647 /* end confdefs.h. */
60648 $ac_includes_default
60649 #include <$ac_header>
60650 _ACEOF
60651 rm -f conftest.$ac_objext
60652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60653 (eval $ac_compile) 2>conftest.er1
60654 ac_status=$?
60655 grep -v '^ *+' conftest.er1 >conftest.err
60656 rm -f conftest.er1
60657 cat conftest.err >&5
60658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60659 (exit $ac_status); } &&
60660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60662 (eval $ac_try) 2>&5
60663 ac_status=$?
60664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60665 (exit $ac_status); }; } &&
60666 { ac_try='test -s conftest.$ac_objext'
60667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60668 (eval $ac_try) 2>&5
60669 ac_status=$?
60670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60671 (exit $ac_status); }; }; then
60672 ac_header_compiler=yes
60673 else
60674 echo "$as_me: failed program was:" >&5
60675 sed 's/^/| /' conftest.$ac_ext >&5
60677 ac_header_compiler=no
60679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60681 echo "${ECHO_T}$ac_header_compiler" >&6
60683 # Is the header present?
60684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60686 cat >conftest.$ac_ext <<_ACEOF
60687 /* confdefs.h. */
60688 _ACEOF
60689 cat confdefs.h >>conftest.$ac_ext
60690 cat >>conftest.$ac_ext <<_ACEOF
60691 /* end confdefs.h. */
60692 #include <$ac_header>
60693 _ACEOF
60694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60696 ac_status=$?
60697 grep -v '^ *+' conftest.er1 >conftest.err
60698 rm -f conftest.er1
60699 cat conftest.err >&5
60700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60701 (exit $ac_status); } >/dev/null; then
60702 if test -s conftest.err; then
60703 ac_cpp_err=$ac_c_preproc_warn_flag
60704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60705 else
60706 ac_cpp_err=
60708 else
60709 ac_cpp_err=yes
60711 if test -z "$ac_cpp_err"; then
60712 ac_header_preproc=yes
60713 else
60714 echo "$as_me: failed program was:" >&5
60715 sed 's/^/| /' conftest.$ac_ext >&5
60717 ac_header_preproc=no
60719 rm -f conftest.err conftest.$ac_ext
60720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60721 echo "${ECHO_T}$ac_header_preproc" >&6
60723 # So? What about this header?
60724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60725 yes:no: )
60726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60730 ac_header_preproc=yes
60732 no:yes:* )
60733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60746 cat <<\_ASBOX
60747 ## ----------------------------------------- ##
60748 ## Report this to the package-unused lists. ##
60749 ## ----------------------------------------- ##
60750 _ASBOX
60752 sed "s/^/$as_me: WARNING: /" >&2
60754 esac
60755 echo "$as_me:$LINENO: checking for $ac_header" >&5
60756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60758 echo $ECHO_N "(cached) $ECHO_C" >&6
60759 else
60760 eval "$as_ac_Header=\$ac_header_preproc"
60762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60767 cat >>confdefs.h <<_ACEOF
60768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60769 _ACEOF
60770 ac_has_wctype_h=yes
60771 else
60772 ac_has_wctype_h=no
60775 done
60778 # Only continue checking if the ISO C99 headers exist and support is on.
60779 if test x"$ac_has_wchar_h" = xyes &&
60780 test x"$ac_has_wctype_h" = xyes &&
60781 test x"$enable_c_mbchar" != xno; then
60783 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
60784 # numeric_limits can instantiate type_traits<wchar_t>
60785 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
60786 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
60787 cat >conftest.$ac_ext <<_ACEOF
60788 /* confdefs.h. */
60789 _ACEOF
60790 cat confdefs.h >>conftest.$ac_ext
60791 cat >>conftest.$ac_ext <<_ACEOF
60792 /* end confdefs.h. */
60793 #include <wchar.h>
60795 main ()
60797 int i = WCHAR_MIN; int j = WCHAR_MAX;
60799 return 0;
60801 _ACEOF
60802 rm -f conftest.$ac_objext
60803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60804 (eval $ac_compile) 2>conftest.er1
60805 ac_status=$?
60806 grep -v '^ *+' conftest.er1 >conftest.err
60807 rm -f conftest.er1
60808 cat conftest.err >&5
60809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60810 (exit $ac_status); } &&
60811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60813 (eval $ac_try) 2>&5
60814 ac_status=$?
60815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60816 (exit $ac_status); }; } &&
60817 { ac_try='test -s conftest.$ac_objext'
60818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60819 (eval $ac_try) 2>&5
60820 ac_status=$?
60821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60822 (exit $ac_status); }; }; then
60823 has_wchar_minmax=yes
60824 else
60825 echo "$as_me: failed program was:" >&5
60826 sed 's/^/| /' conftest.$ac_ext >&5
60828 has_wchar_minmax=no
60830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60831 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
60832 echo "${ECHO_T}$has_wchar_minmax" >&6
60834 # Test wchar.h for WEOF, which is what we use to determine whether
60835 # to specialize for char_traits<wchar_t> or not.
60836 echo "$as_me:$LINENO: checking for WEOF" >&5
60837 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
60838 cat >conftest.$ac_ext <<_ACEOF
60839 /* confdefs.h. */
60840 _ACEOF
60841 cat confdefs.h >>conftest.$ac_ext
60842 cat >>conftest.$ac_ext <<_ACEOF
60843 /* end confdefs.h. */
60845 #include <wchar.h>
60846 #include <stddef.h>
60848 main ()
60850 wint_t i = WEOF;
60852 return 0;
60854 _ACEOF
60855 rm -f conftest.$ac_objext
60856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60857 (eval $ac_compile) 2>conftest.er1
60858 ac_status=$?
60859 grep -v '^ *+' conftest.er1 >conftest.err
60860 rm -f conftest.er1
60861 cat conftest.err >&5
60862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60863 (exit $ac_status); } &&
60864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60866 (eval $ac_try) 2>&5
60867 ac_status=$?
60868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60869 (exit $ac_status); }; } &&
60870 { ac_try='test -s conftest.$ac_objext'
60871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60872 (eval $ac_try) 2>&5
60873 ac_status=$?
60874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60875 (exit $ac_status); }; }; then
60876 has_weof=yes
60877 else
60878 echo "$as_me: failed program was:" >&5
60879 sed 's/^/| /' conftest.$ac_ext >&5
60881 has_weof=no
60883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60884 echo "$as_me:$LINENO: result: $has_weof" >&5
60885 echo "${ECHO_T}$has_weof" >&6
60887 # Tests for wide character functions used in char_traits<wchar_t>.
60888 ac_wfuncs=yes
60895 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
60897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60898 echo "$as_me:$LINENO: checking for $ac_func" >&5
60899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60900 if eval "test \"\${$as_ac_var+set}\" = set"; then
60901 echo $ECHO_N "(cached) $ECHO_C" >&6
60902 else
60903 if test x$gcc_no_link = xyes; then
60904 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60906 { (exit 1); exit 1; }; }
60908 cat >conftest.$ac_ext <<_ACEOF
60909 /* confdefs.h. */
60910 _ACEOF
60911 cat confdefs.h >>conftest.$ac_ext
60912 cat >>conftest.$ac_ext <<_ACEOF
60913 /* end confdefs.h. */
60914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60916 #define $ac_func innocuous_$ac_func
60918 /* System header to define __stub macros and hopefully few prototypes,
60919 which can conflict with char $ac_func (); below.
60920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60921 <limits.h> exists even on freestanding compilers. */
60923 #ifdef __STDC__
60924 # include <limits.h>
60925 #else
60926 # include <assert.h>
60927 #endif
60929 #undef $ac_func
60931 /* Override any gcc2 internal prototype to avoid an error. */
60932 #ifdef __cplusplus
60933 extern "C"
60935 #endif
60936 /* We use char because int might match the return type of a gcc2
60937 builtin and then its argument prototype would still apply. */
60938 char $ac_func ();
60939 /* The GNU C library defines this for functions which it implements
60940 to always fail with ENOSYS. Some functions are actually named
60941 something starting with __ and the normal name is an alias. */
60942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60943 choke me
60944 #else
60945 char (*f) () = $ac_func;
60946 #endif
60947 #ifdef __cplusplus
60949 #endif
60952 main ()
60954 return f != $ac_func;
60956 return 0;
60958 _ACEOF
60959 rm -f conftest.$ac_objext conftest$ac_exeext
60960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60961 (eval $ac_link) 2>conftest.er1
60962 ac_status=$?
60963 grep -v '^ *+' conftest.er1 >conftest.err
60964 rm -f conftest.er1
60965 cat conftest.err >&5
60966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60967 (exit $ac_status); } &&
60968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
60969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60970 (eval $ac_try) 2>&5
60971 ac_status=$?
60972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60973 (exit $ac_status); }; } &&
60974 { ac_try='test -s conftest$ac_exeext'
60975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60976 (eval $ac_try) 2>&5
60977 ac_status=$?
60978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60979 (exit $ac_status); }; }; then
60980 eval "$as_ac_var=yes"
60981 else
60982 echo "$as_me: failed program was:" >&5
60983 sed 's/^/| /' conftest.$ac_ext >&5
60985 eval "$as_ac_var=no"
60987 rm -f conftest.err conftest.$ac_objext \
60988 conftest$ac_exeext conftest.$ac_ext
60990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60992 if test `eval echo '${'$as_ac_var'}'` = yes; then
60993 cat >>confdefs.h <<_ACEOF
60994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60995 _ACEOF
60997 else
60998 ac_wfuncs=no
61000 done
61003 # Checks for names injected into std:: by the c_std headers.
61050 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
61051 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
61052 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
61053 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
61054 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
61055 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
61057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61058 echo "$as_me:$LINENO: checking for $ac_func" >&5
61059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61060 if eval "test \"\${$as_ac_var+set}\" = set"; then
61061 echo $ECHO_N "(cached) $ECHO_C" >&6
61062 else
61063 if test x$gcc_no_link = xyes; then
61064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61066 { (exit 1); exit 1; }; }
61068 cat >conftest.$ac_ext <<_ACEOF
61069 /* confdefs.h. */
61070 _ACEOF
61071 cat confdefs.h >>conftest.$ac_ext
61072 cat >>conftest.$ac_ext <<_ACEOF
61073 /* end confdefs.h. */
61074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61076 #define $ac_func innocuous_$ac_func
61078 /* System header to define __stub macros and hopefully few prototypes,
61079 which can conflict with char $ac_func (); below.
61080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61081 <limits.h> exists even on freestanding compilers. */
61083 #ifdef __STDC__
61084 # include <limits.h>
61085 #else
61086 # include <assert.h>
61087 #endif
61089 #undef $ac_func
61091 /* Override any gcc2 internal prototype to avoid an error. */
61092 #ifdef __cplusplus
61093 extern "C"
61095 #endif
61096 /* We use char because int might match the return type of a gcc2
61097 builtin and then its argument prototype would still apply. */
61098 char $ac_func ();
61099 /* The GNU C library defines this for functions which it implements
61100 to always fail with ENOSYS. Some functions are actually named
61101 something starting with __ and the normal name is an alias. */
61102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61103 choke me
61104 #else
61105 char (*f) () = $ac_func;
61106 #endif
61107 #ifdef __cplusplus
61109 #endif
61112 main ()
61114 return f != $ac_func;
61116 return 0;
61118 _ACEOF
61119 rm -f conftest.$ac_objext conftest$ac_exeext
61120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61121 (eval $ac_link) 2>conftest.er1
61122 ac_status=$?
61123 grep -v '^ *+' conftest.er1 >conftest.err
61124 rm -f conftest.er1
61125 cat conftest.err >&5
61126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61127 (exit $ac_status); } &&
61128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61130 (eval $ac_try) 2>&5
61131 ac_status=$?
61132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61133 (exit $ac_status); }; } &&
61134 { ac_try='test -s conftest$ac_exeext'
61135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61136 (eval $ac_try) 2>&5
61137 ac_status=$?
61138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61139 (exit $ac_status); }; }; then
61140 eval "$as_ac_var=yes"
61141 else
61142 echo "$as_me: failed program was:" >&5
61143 sed 's/^/| /' conftest.$ac_ext >&5
61145 eval "$as_ac_var=no"
61147 rm -f conftest.err conftest.$ac_objext \
61148 conftest$ac_exeext conftest.$ac_ext
61150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61152 if test `eval echo '${'$as_ac_var'}'` = yes; then
61153 cat >>confdefs.h <<_ACEOF
61154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61155 _ACEOF
61157 else
61158 ac_wfuncs=no
61160 done
61163 # Checks for wide character functions that are not required
61164 # for basic wchar_t support. Don't disable support if they are missing.
61165 # Injection of these is wrapped with guard macros.
61171 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
61173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61174 echo "$as_me:$LINENO: checking for $ac_func" >&5
61175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61176 if eval "test \"\${$as_ac_var+set}\" = set"; then
61177 echo $ECHO_N "(cached) $ECHO_C" >&6
61178 else
61179 if test x$gcc_no_link = xyes; then
61180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61182 { (exit 1); exit 1; }; }
61184 cat >conftest.$ac_ext <<_ACEOF
61185 /* confdefs.h. */
61186 _ACEOF
61187 cat confdefs.h >>conftest.$ac_ext
61188 cat >>conftest.$ac_ext <<_ACEOF
61189 /* end confdefs.h. */
61190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61192 #define $ac_func innocuous_$ac_func
61194 /* System header to define __stub macros and hopefully few prototypes,
61195 which can conflict with char $ac_func (); below.
61196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61197 <limits.h> exists even on freestanding compilers. */
61199 #ifdef __STDC__
61200 # include <limits.h>
61201 #else
61202 # include <assert.h>
61203 #endif
61205 #undef $ac_func
61207 /* Override any gcc2 internal prototype to avoid an error. */
61208 #ifdef __cplusplus
61209 extern "C"
61211 #endif
61212 /* We use char because int might match the return type of a gcc2
61213 builtin and then its argument prototype would still apply. */
61214 char $ac_func ();
61215 /* The GNU C library defines this for functions which it implements
61216 to always fail with ENOSYS. Some functions are actually named
61217 something starting with __ and the normal name is an alias. */
61218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61219 choke me
61220 #else
61221 char (*f) () = $ac_func;
61222 #endif
61223 #ifdef __cplusplus
61225 #endif
61228 main ()
61230 return f != $ac_func;
61232 return 0;
61234 _ACEOF
61235 rm -f conftest.$ac_objext conftest$ac_exeext
61236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61237 (eval $ac_link) 2>conftest.er1
61238 ac_status=$?
61239 grep -v '^ *+' conftest.er1 >conftest.err
61240 rm -f conftest.er1
61241 cat conftest.err >&5
61242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61243 (exit $ac_status); } &&
61244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61246 (eval $ac_try) 2>&5
61247 ac_status=$?
61248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61249 (exit $ac_status); }; } &&
61250 { ac_try='test -s conftest$ac_exeext'
61251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61252 (eval $ac_try) 2>&5
61253 ac_status=$?
61254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61255 (exit $ac_status); }; }; then
61256 eval "$as_ac_var=yes"
61257 else
61258 echo "$as_me: failed program was:" >&5
61259 sed 's/^/| /' conftest.$ac_ext >&5
61261 eval "$as_ac_var=no"
61263 rm -f conftest.err conftest.$ac_objext \
61264 conftest$ac_exeext conftest.$ac_ext
61266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61268 if test `eval echo '${'$as_ac_var'}'` = yes; then
61269 cat >>confdefs.h <<_ACEOF
61270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61271 _ACEOF
61274 done
61277 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
61278 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
61279 if test x"$has_weof" = xyes &&
61280 test x"$has_wchar_minmax" = xyes &&
61281 test x"$ac_wfuncs" = xyes;
61282 then
61283 ac_isoC99_wchar_t=yes
61284 else
61285 ac_isoC99_wchar_t=no
61287 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
61288 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
61290 # Use iconv for wchar_t to char conversions. As such, check for
61291 # X/Open Portability Guide, version 2 features (XPG2).
61292 if test "${ac_cv_header_iconv_h+set}" = set; then
61293 echo "$as_me:$LINENO: checking for iconv.h" >&5
61294 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
61295 if test "${ac_cv_header_iconv_h+set}" = set; then
61296 echo $ECHO_N "(cached) $ECHO_C" >&6
61298 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
61299 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
61300 else
61301 # Is the header compilable?
61302 echo "$as_me:$LINENO: checking iconv.h usability" >&5
61303 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
61304 cat >conftest.$ac_ext <<_ACEOF
61305 /* confdefs.h. */
61306 _ACEOF
61307 cat confdefs.h >>conftest.$ac_ext
61308 cat >>conftest.$ac_ext <<_ACEOF
61309 /* end confdefs.h. */
61310 $ac_includes_default
61311 #include <iconv.h>
61312 _ACEOF
61313 rm -f conftest.$ac_objext
61314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61315 (eval $ac_compile) 2>conftest.er1
61316 ac_status=$?
61317 grep -v '^ *+' conftest.er1 >conftest.err
61318 rm -f conftest.er1
61319 cat conftest.err >&5
61320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61321 (exit $ac_status); } &&
61322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61324 (eval $ac_try) 2>&5
61325 ac_status=$?
61326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61327 (exit $ac_status); }; } &&
61328 { ac_try='test -s conftest.$ac_objext'
61329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61330 (eval $ac_try) 2>&5
61331 ac_status=$?
61332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61333 (exit $ac_status); }; }; then
61334 ac_header_compiler=yes
61335 else
61336 echo "$as_me: failed program was:" >&5
61337 sed 's/^/| /' conftest.$ac_ext >&5
61339 ac_header_compiler=no
61341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61343 echo "${ECHO_T}$ac_header_compiler" >&6
61345 # Is the header present?
61346 echo "$as_me:$LINENO: checking iconv.h presence" >&5
61347 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
61348 cat >conftest.$ac_ext <<_ACEOF
61349 /* confdefs.h. */
61350 _ACEOF
61351 cat confdefs.h >>conftest.$ac_ext
61352 cat >>conftest.$ac_ext <<_ACEOF
61353 /* end confdefs.h. */
61354 #include <iconv.h>
61355 _ACEOF
61356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61358 ac_status=$?
61359 grep -v '^ *+' conftest.er1 >conftest.err
61360 rm -f conftest.er1
61361 cat conftest.err >&5
61362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61363 (exit $ac_status); } >/dev/null; then
61364 if test -s conftest.err; then
61365 ac_cpp_err=$ac_c_preproc_warn_flag
61366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61367 else
61368 ac_cpp_err=
61370 else
61371 ac_cpp_err=yes
61373 if test -z "$ac_cpp_err"; then
61374 ac_header_preproc=yes
61375 else
61376 echo "$as_me: failed program was:" >&5
61377 sed 's/^/| /' conftest.$ac_ext >&5
61379 ac_header_preproc=no
61381 rm -f conftest.err conftest.$ac_ext
61382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61383 echo "${ECHO_T}$ac_header_preproc" >&6
61385 # So? What about this header?
61386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61387 yes:no: )
61388 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
61389 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
61390 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
61391 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
61392 ac_header_preproc=yes
61394 no:yes:* )
61395 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
61396 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
61397 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
61398 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
61399 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
61400 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
61401 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
61402 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
61403 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
61404 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
61405 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
61406 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
61408 cat <<\_ASBOX
61409 ## ----------------------------------------- ##
61410 ## Report this to the package-unused lists. ##
61411 ## ----------------------------------------- ##
61412 _ASBOX
61414 sed "s/^/$as_me: WARNING: /" >&2
61416 esac
61417 echo "$as_me:$LINENO: checking for iconv.h" >&5
61418 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
61419 if test "${ac_cv_header_iconv_h+set}" = set; then
61420 echo $ECHO_N "(cached) $ECHO_C" >&6
61421 else
61422 ac_cv_header_iconv_h=$ac_header_preproc
61424 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
61425 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
61428 if test $ac_cv_header_iconv_h = yes; then
61429 ac_has_iconv_h=yes
61430 else
61431 ac_has_iconv_h=no
61435 if test "${ac_cv_header_langinfo_h+set}" = set; then
61436 echo "$as_me:$LINENO: checking for langinfo.h" >&5
61437 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
61438 if test "${ac_cv_header_langinfo_h+set}" = set; then
61439 echo $ECHO_N "(cached) $ECHO_C" >&6
61441 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
61442 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
61443 else
61444 # Is the header compilable?
61445 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
61446 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
61447 cat >conftest.$ac_ext <<_ACEOF
61448 /* confdefs.h. */
61449 _ACEOF
61450 cat confdefs.h >>conftest.$ac_ext
61451 cat >>conftest.$ac_ext <<_ACEOF
61452 /* end confdefs.h. */
61453 $ac_includes_default
61454 #include <langinfo.h>
61455 _ACEOF
61456 rm -f conftest.$ac_objext
61457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61458 (eval $ac_compile) 2>conftest.er1
61459 ac_status=$?
61460 grep -v '^ *+' conftest.er1 >conftest.err
61461 rm -f conftest.er1
61462 cat conftest.err >&5
61463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61464 (exit $ac_status); } &&
61465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61467 (eval $ac_try) 2>&5
61468 ac_status=$?
61469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61470 (exit $ac_status); }; } &&
61471 { ac_try='test -s conftest.$ac_objext'
61472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61473 (eval $ac_try) 2>&5
61474 ac_status=$?
61475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61476 (exit $ac_status); }; }; then
61477 ac_header_compiler=yes
61478 else
61479 echo "$as_me: failed program was:" >&5
61480 sed 's/^/| /' conftest.$ac_ext >&5
61482 ac_header_compiler=no
61484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61486 echo "${ECHO_T}$ac_header_compiler" >&6
61488 # Is the header present?
61489 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
61490 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
61491 cat >conftest.$ac_ext <<_ACEOF
61492 /* confdefs.h. */
61493 _ACEOF
61494 cat confdefs.h >>conftest.$ac_ext
61495 cat >>conftest.$ac_ext <<_ACEOF
61496 /* end confdefs.h. */
61497 #include <langinfo.h>
61498 _ACEOF
61499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61501 ac_status=$?
61502 grep -v '^ *+' conftest.er1 >conftest.err
61503 rm -f conftest.er1
61504 cat conftest.err >&5
61505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61506 (exit $ac_status); } >/dev/null; then
61507 if test -s conftest.err; then
61508 ac_cpp_err=$ac_c_preproc_warn_flag
61509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61510 else
61511 ac_cpp_err=
61513 else
61514 ac_cpp_err=yes
61516 if test -z "$ac_cpp_err"; then
61517 ac_header_preproc=yes
61518 else
61519 echo "$as_me: failed program was:" >&5
61520 sed 's/^/| /' conftest.$ac_ext >&5
61522 ac_header_preproc=no
61524 rm -f conftest.err conftest.$ac_ext
61525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61526 echo "${ECHO_T}$ac_header_preproc" >&6
61528 # So? What about this header?
61529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61530 yes:no: )
61531 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
61532 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
61533 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
61534 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
61535 ac_header_preproc=yes
61537 no:yes:* )
61538 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
61539 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
61540 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
61541 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
61542 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
61543 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
61544 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
61545 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
61546 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
61547 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
61548 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
61549 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
61551 cat <<\_ASBOX
61552 ## ----------------------------------------- ##
61553 ## Report this to the package-unused lists. ##
61554 ## ----------------------------------------- ##
61555 _ASBOX
61557 sed "s/^/$as_me: WARNING: /" >&2
61559 esac
61560 echo "$as_me:$LINENO: checking for langinfo.h" >&5
61561 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
61562 if test "${ac_cv_header_langinfo_h+set}" = set; then
61563 echo $ECHO_N "(cached) $ECHO_C" >&6
61564 else
61565 ac_cv_header_langinfo_h=$ac_header_preproc
61567 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
61568 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
61571 if test $ac_cv_header_langinfo_h = yes; then
61572 ac_has_langinfo_h=yes
61573 else
61574 ac_has_langinfo_h=no
61579 # Check for existence of libiconv.a providing XPG2 wchar_t support.
61580 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
61581 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
61582 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
61583 echo $ECHO_N "(cached) $ECHO_C" >&6
61584 else
61585 ac_check_lib_save_LIBS=$LIBS
61586 LIBS="-liconv $LIBS"
61587 if test x$gcc_no_link = xyes; then
61588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61590 { (exit 1); exit 1; }; }
61592 cat >conftest.$ac_ext <<_ACEOF
61593 /* confdefs.h. */
61594 _ACEOF
61595 cat confdefs.h >>conftest.$ac_ext
61596 cat >>conftest.$ac_ext <<_ACEOF
61597 /* end confdefs.h. */
61599 /* Override any gcc2 internal prototype to avoid an error. */
61600 #ifdef __cplusplus
61601 extern "C"
61602 #endif
61603 /* We use char because int might match the return type of a gcc2
61604 builtin and then its argument prototype would still apply. */
61605 char iconv ();
61607 main ()
61609 iconv ();
61611 return 0;
61613 _ACEOF
61614 rm -f conftest.$ac_objext conftest$ac_exeext
61615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61616 (eval $ac_link) 2>conftest.er1
61617 ac_status=$?
61618 grep -v '^ *+' conftest.er1 >conftest.err
61619 rm -f conftest.er1
61620 cat conftest.err >&5
61621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61622 (exit $ac_status); } &&
61623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61625 (eval $ac_try) 2>&5
61626 ac_status=$?
61627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61628 (exit $ac_status); }; } &&
61629 { ac_try='test -s conftest$ac_exeext'
61630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61631 (eval $ac_try) 2>&5
61632 ac_status=$?
61633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61634 (exit $ac_status); }; }; then
61635 ac_cv_lib_iconv_iconv=yes
61636 else
61637 echo "$as_me: failed program was:" >&5
61638 sed 's/^/| /' conftest.$ac_ext >&5
61640 ac_cv_lib_iconv_iconv=no
61642 rm -f conftest.err conftest.$ac_objext \
61643 conftest$ac_exeext conftest.$ac_ext
61644 LIBS=$ac_check_lib_save_LIBS
61646 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
61647 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
61648 if test $ac_cv_lib_iconv_iconv = yes; then
61649 libiconv="-liconv"
61652 ac_save_LIBS="$LIBS"
61653 LIBS="$LIBS $libiconv"
61659 for ac_func in iconv_open iconv_close iconv nl_langinfo
61661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61662 echo "$as_me:$LINENO: checking for $ac_func" >&5
61663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61664 if eval "test \"\${$as_ac_var+set}\" = set"; then
61665 echo $ECHO_N "(cached) $ECHO_C" >&6
61666 else
61667 if test x$gcc_no_link = xyes; then
61668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61670 { (exit 1); exit 1; }; }
61672 cat >conftest.$ac_ext <<_ACEOF
61673 /* confdefs.h. */
61674 _ACEOF
61675 cat confdefs.h >>conftest.$ac_ext
61676 cat >>conftest.$ac_ext <<_ACEOF
61677 /* end confdefs.h. */
61678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61680 #define $ac_func innocuous_$ac_func
61682 /* System header to define __stub macros and hopefully few prototypes,
61683 which can conflict with char $ac_func (); below.
61684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61685 <limits.h> exists even on freestanding compilers. */
61687 #ifdef __STDC__
61688 # include <limits.h>
61689 #else
61690 # include <assert.h>
61691 #endif
61693 #undef $ac_func
61695 /* Override any gcc2 internal prototype to avoid an error. */
61696 #ifdef __cplusplus
61697 extern "C"
61699 #endif
61700 /* We use char because int might match the return type of a gcc2
61701 builtin and then its argument prototype would still apply. */
61702 char $ac_func ();
61703 /* The GNU C library defines this for functions which it implements
61704 to always fail with ENOSYS. Some functions are actually named
61705 something starting with __ and the normal name is an alias. */
61706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61707 choke me
61708 #else
61709 char (*f) () = $ac_func;
61710 #endif
61711 #ifdef __cplusplus
61713 #endif
61716 main ()
61718 return f != $ac_func;
61720 return 0;
61722 _ACEOF
61723 rm -f conftest.$ac_objext conftest$ac_exeext
61724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61725 (eval $ac_link) 2>conftest.er1
61726 ac_status=$?
61727 grep -v '^ *+' conftest.er1 >conftest.err
61728 rm -f conftest.er1
61729 cat conftest.err >&5
61730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61731 (exit $ac_status); } &&
61732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61734 (eval $ac_try) 2>&5
61735 ac_status=$?
61736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61737 (exit $ac_status); }; } &&
61738 { ac_try='test -s conftest$ac_exeext'
61739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61740 (eval $ac_try) 2>&5
61741 ac_status=$?
61742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61743 (exit $ac_status); }; }; then
61744 eval "$as_ac_var=yes"
61745 else
61746 echo "$as_me: failed program was:" >&5
61747 sed 's/^/| /' conftest.$ac_ext >&5
61749 eval "$as_ac_var=no"
61751 rm -f conftest.err conftest.$ac_objext \
61752 conftest$ac_exeext conftest.$ac_ext
61754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61756 if test `eval echo '${'$as_ac_var'}'` = yes; then
61757 cat >>confdefs.h <<_ACEOF
61758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61759 _ACEOF
61760 ac_XPG2funcs=yes
61761 else
61762 ac_XPG2funcs=no
61764 done
61767 LIBS="$ac_save_LIBS"
61769 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
61770 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
61771 if test x"$ac_has_iconv_h" = xyes &&
61772 test x"$ac_has_langinfo_h" = xyes &&
61773 test x"$ac_XPG2funcs" = xyes;
61774 then
61775 ac_XPG2_wchar_t=yes
61776 else
61777 ac_XPG2_wchar_t=no
61779 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
61780 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
61782 # At the moment, only enable wchar_t specializations if all the
61783 # above support is present.
61784 if test x"$ac_isoC99_wchar_t" = xyes &&
61785 test x"$ac_XPG2_wchar_t" = xyes;
61786 then
61787 cat >>confdefs.h <<\_ACEOF
61788 #define _GLIBCXX_USE_WCHAR_T 1
61789 _ACEOF
61791 enable_wchar_t=yes
61794 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
61795 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
61796 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
61797 echo "${ECHO_T}$enable_wchar_t" >&6
61800 *-netbsd*)
61813 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
61814 machine/endian.h machine/param.h sys/machine.h sys/types.h \
61815 fp.h locale.h float.h inttypes.h
61817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61819 echo "$as_me:$LINENO: checking for $ac_header" >&5
61820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61822 echo $ECHO_N "(cached) $ECHO_C" >&6
61824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61826 else
61827 # Is the header compilable?
61828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61830 cat >conftest.$ac_ext <<_ACEOF
61831 /* confdefs.h. */
61832 _ACEOF
61833 cat confdefs.h >>conftest.$ac_ext
61834 cat >>conftest.$ac_ext <<_ACEOF
61835 /* end confdefs.h. */
61836 $ac_includes_default
61837 #include <$ac_header>
61838 _ACEOF
61839 rm -f conftest.$ac_objext
61840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61841 (eval $ac_compile) 2>conftest.er1
61842 ac_status=$?
61843 grep -v '^ *+' conftest.er1 >conftest.err
61844 rm -f conftest.er1
61845 cat conftest.err >&5
61846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61847 (exit $ac_status); } &&
61848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
61849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61850 (eval $ac_try) 2>&5
61851 ac_status=$?
61852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61853 (exit $ac_status); }; } &&
61854 { ac_try='test -s conftest.$ac_objext'
61855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61856 (eval $ac_try) 2>&5
61857 ac_status=$?
61858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61859 (exit $ac_status); }; }; then
61860 ac_header_compiler=yes
61861 else
61862 echo "$as_me: failed program was:" >&5
61863 sed 's/^/| /' conftest.$ac_ext >&5
61865 ac_header_compiler=no
61867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61869 echo "${ECHO_T}$ac_header_compiler" >&6
61871 # Is the header present?
61872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61874 cat >conftest.$ac_ext <<_ACEOF
61875 /* confdefs.h. */
61876 _ACEOF
61877 cat confdefs.h >>conftest.$ac_ext
61878 cat >>conftest.$ac_ext <<_ACEOF
61879 /* end confdefs.h. */
61880 #include <$ac_header>
61881 _ACEOF
61882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61884 ac_status=$?
61885 grep -v '^ *+' conftest.er1 >conftest.err
61886 rm -f conftest.er1
61887 cat conftest.err >&5
61888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61889 (exit $ac_status); } >/dev/null; then
61890 if test -s conftest.err; then
61891 ac_cpp_err=$ac_c_preproc_warn_flag
61892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61893 else
61894 ac_cpp_err=
61896 else
61897 ac_cpp_err=yes
61899 if test -z "$ac_cpp_err"; then
61900 ac_header_preproc=yes
61901 else
61902 echo "$as_me: failed program was:" >&5
61903 sed 's/^/| /' conftest.$ac_ext >&5
61905 ac_header_preproc=no
61907 rm -f conftest.err conftest.$ac_ext
61908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61909 echo "${ECHO_T}$ac_header_preproc" >&6
61911 # So? What about this header?
61912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61913 yes:no: )
61914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61918 ac_header_preproc=yes
61920 no:yes:* )
61921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61934 cat <<\_ASBOX
61935 ## ----------------------------------------- ##
61936 ## Report this to the package-unused lists. ##
61937 ## ----------------------------------------- ##
61938 _ASBOX
61940 sed "s/^/$as_me: WARNING: /" >&2
61942 esac
61943 echo "$as_me:$LINENO: checking for $ac_header" >&5
61944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61946 echo $ECHO_N "(cached) $ECHO_C" >&6
61947 else
61948 eval "$as_ac_Header=\$ac_header_preproc"
61950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61955 cat >>confdefs.h <<_ACEOF
61956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61957 _ACEOF
61961 done
61963 SECTION_FLAGS='-ffunction-sections -fdata-sections'
61966 # If we're not using GNU ld, then there's no point in even trying these
61967 # tests. Check for that first. We should have already tested for gld
61968 # by now (in libtool), but require it now just to be safe...
61969 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61970 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61974 # The name set by libtool depends on the version of libtool. Shame on us
61975 # for depending on an impl detail, but c'est la vie. Older versions used
61976 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61977 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61978 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
61979 # set (hence we're using an older libtool), then set it.
61980 if test x${with_gnu_ld+set} != xset; then
61981 if test x${ac_cv_prog_gnu_ld+set} != xset; then
61982 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
61983 with_gnu_ld=no
61984 else
61985 with_gnu_ld=$ac_cv_prog_gnu_ld
61989 # Start by getting the version number. I think the libtool test already
61990 # does some of this, but throws away the result.
61992 ldver=`$LD --version 2>/dev/null | head -1 | \
61993 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61995 glibcxx_gnu_ld_version=`echo $ldver | \
61996 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61998 # Set --gc-sections.
61999 if test "$with_gnu_ld" = "notbroken"; then
62000 # GNU ld it is! Joy and bunny rabbits!
62002 # All these tests are for C++; save the language and the compiler flags.
62003 # Need to do this so that g++ won't try to link in libstdc++
62004 ac_test_CFLAGS="${CFLAGS+set}"
62005 ac_save_CFLAGS="$CFLAGS"
62006 CFLAGS='-x c++ -Wl,--gc-sections'
62008 # Check for -Wl,--gc-sections
62009 # XXX This test is broken at the moment, as symbols required for linking
62010 # are now in libsupc++ (not built yet). In addition, this test has
62011 # cored on solaris in the past. In addition, --gc-sections doesn't
62012 # really work at the moment (keeps on discarding used sections, first
62013 # .eh_frame and now some of the glibc sections for iconv).
62014 # Bzzzzt. Thanks for playing, maybe next time.
62015 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
62016 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
62017 if test "$cross_compiling" = yes; then
62018 ac_sectionLDflags=yes
62019 else
62020 cat >conftest.$ac_ext <<_ACEOF
62021 /* confdefs.h. */
62022 _ACEOF
62023 cat confdefs.h >>conftest.$ac_ext
62024 cat >>conftest.$ac_ext <<_ACEOF
62025 /* end confdefs.h. */
62027 int main(void)
62029 try { throw 1; }
62030 catch (...) { };
62031 return 0;
62034 _ACEOF
62035 rm -f conftest$ac_exeext
62036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62037 (eval $ac_link) 2>&5
62038 ac_status=$?
62039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62042 (eval $ac_try) 2>&5
62043 ac_status=$?
62044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62045 (exit $ac_status); }; }; then
62046 ac_sectionLDflags=yes
62047 else
62048 echo "$as_me: program exited with status $ac_status" >&5
62049 echo "$as_me: failed program was:" >&5
62050 sed 's/^/| /' conftest.$ac_ext >&5
62052 ( exit $ac_status )
62053 ac_sectionLDflags=no
62055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62057 if test "$ac_test_CFLAGS" = set; then
62058 CFLAGS="$ac_save_CFLAGS"
62059 else
62060 # this is the suspicious part
62061 CFLAGS=''
62063 if test "$ac_sectionLDflags" = "yes"; then
62064 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
62066 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
62067 echo "${ECHO_T}$ac_sectionLDflags" >&6
62070 # Set linker optimization flags.
62071 if test x"$with_gnu_ld" = x"yes"; then
62072 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
62080 echo "$as_me:$LINENO: checking for main in -lm" >&5
62081 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
62082 if test "${ac_cv_lib_m_main+set}" = set; then
62083 echo $ECHO_N "(cached) $ECHO_C" >&6
62084 else
62085 ac_check_lib_save_LIBS=$LIBS
62086 LIBS="-lm $LIBS"
62087 if test x$gcc_no_link = xyes; then
62088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62090 { (exit 1); exit 1; }; }
62092 cat >conftest.$ac_ext <<_ACEOF
62093 /* confdefs.h. */
62094 _ACEOF
62095 cat confdefs.h >>conftest.$ac_ext
62096 cat >>conftest.$ac_ext <<_ACEOF
62097 /* end confdefs.h. */
62101 main ()
62103 main ();
62105 return 0;
62107 _ACEOF
62108 rm -f conftest.$ac_objext conftest$ac_exeext
62109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62110 (eval $ac_link) 2>conftest.er1
62111 ac_status=$?
62112 grep -v '^ *+' conftest.er1 >conftest.err
62113 rm -f conftest.er1
62114 cat conftest.err >&5
62115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62116 (exit $ac_status); } &&
62117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62119 (eval $ac_try) 2>&5
62120 ac_status=$?
62121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62122 (exit $ac_status); }; } &&
62123 { ac_try='test -s conftest$ac_exeext'
62124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62125 (eval $ac_try) 2>&5
62126 ac_status=$?
62127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62128 (exit $ac_status); }; }; then
62129 ac_cv_lib_m_main=yes
62130 else
62131 echo "$as_me: failed program was:" >&5
62132 sed 's/^/| /' conftest.$ac_ext >&5
62134 ac_cv_lib_m_main=no
62136 rm -f conftest.err conftest.$ac_objext \
62137 conftest$ac_exeext conftest.$ac_ext
62138 LIBS=$ac_check_lib_save_LIBS
62140 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
62141 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
62142 if test $ac_cv_lib_m_main = yes; then
62143 cat >>confdefs.h <<_ACEOF
62144 #define HAVE_LIBM 1
62145 _ACEOF
62147 LIBS="-lm $LIBS"
62153 for ac_func in nan copysignf
62155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62156 echo "$as_me:$LINENO: checking for $ac_func" >&5
62157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62158 if eval "test \"\${$as_ac_var+set}\" = set"; then
62159 echo $ECHO_N "(cached) $ECHO_C" >&6
62160 else
62161 if test x$gcc_no_link = xyes; then
62162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62164 { (exit 1); exit 1; }; }
62166 cat >conftest.$ac_ext <<_ACEOF
62167 /* confdefs.h. */
62168 _ACEOF
62169 cat confdefs.h >>conftest.$ac_ext
62170 cat >>conftest.$ac_ext <<_ACEOF
62171 /* end confdefs.h. */
62172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62174 #define $ac_func innocuous_$ac_func
62176 /* System header to define __stub macros and hopefully few prototypes,
62177 which can conflict with char $ac_func (); below.
62178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62179 <limits.h> exists even on freestanding compilers. */
62181 #ifdef __STDC__
62182 # include <limits.h>
62183 #else
62184 # include <assert.h>
62185 #endif
62187 #undef $ac_func
62189 /* Override any gcc2 internal prototype to avoid an error. */
62190 #ifdef __cplusplus
62191 extern "C"
62193 #endif
62194 /* We use char because int might match the return type of a gcc2
62195 builtin and then its argument prototype would still apply. */
62196 char $ac_func ();
62197 /* The GNU C library defines this for functions which it implements
62198 to always fail with ENOSYS. Some functions are actually named
62199 something starting with __ and the normal name is an alias. */
62200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62201 choke me
62202 #else
62203 char (*f) () = $ac_func;
62204 #endif
62205 #ifdef __cplusplus
62207 #endif
62210 main ()
62212 return f != $ac_func;
62214 return 0;
62216 _ACEOF
62217 rm -f conftest.$ac_objext conftest$ac_exeext
62218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62219 (eval $ac_link) 2>conftest.er1
62220 ac_status=$?
62221 grep -v '^ *+' conftest.er1 >conftest.err
62222 rm -f conftest.er1
62223 cat conftest.err >&5
62224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62225 (exit $ac_status); } &&
62226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62228 (eval $ac_try) 2>&5
62229 ac_status=$?
62230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62231 (exit $ac_status); }; } &&
62232 { ac_try='test -s conftest$ac_exeext'
62233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62234 (eval $ac_try) 2>&5
62235 ac_status=$?
62236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62237 (exit $ac_status); }; }; then
62238 eval "$as_ac_var=yes"
62239 else
62240 echo "$as_me: failed program was:" >&5
62241 sed 's/^/| /' conftest.$ac_ext >&5
62243 eval "$as_ac_var=no"
62245 rm -f conftest.err conftest.$ac_objext \
62246 conftest$ac_exeext conftest.$ac_ext
62248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62250 if test `eval echo '${'$as_ac_var'}'` = yes; then
62251 cat >>confdefs.h <<_ACEOF
62252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62253 _ACEOF
62255 else
62256 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
62258 done
62262 for ac_func in __signbit
62264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62265 echo "$as_me:$LINENO: checking for $ac_func" >&5
62266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62267 if eval "test \"\${$as_ac_var+set}\" = set"; then
62268 echo $ECHO_N "(cached) $ECHO_C" >&6
62269 else
62270 if test x$gcc_no_link = xyes; then
62271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62273 { (exit 1); exit 1; }; }
62275 cat >conftest.$ac_ext <<_ACEOF
62276 /* confdefs.h. */
62277 _ACEOF
62278 cat confdefs.h >>conftest.$ac_ext
62279 cat >>conftest.$ac_ext <<_ACEOF
62280 /* end confdefs.h. */
62281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62283 #define $ac_func innocuous_$ac_func
62285 /* System header to define __stub macros and hopefully few prototypes,
62286 which can conflict with char $ac_func (); below.
62287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62288 <limits.h> exists even on freestanding compilers. */
62290 #ifdef __STDC__
62291 # include <limits.h>
62292 #else
62293 # include <assert.h>
62294 #endif
62296 #undef $ac_func
62298 /* Override any gcc2 internal prototype to avoid an error. */
62299 #ifdef __cplusplus
62300 extern "C"
62302 #endif
62303 /* We use char because int might match the return type of a gcc2
62304 builtin and then its argument prototype would still apply. */
62305 char $ac_func ();
62306 /* The GNU C library defines this for functions which it implements
62307 to always fail with ENOSYS. Some functions are actually named
62308 something starting with __ and the normal name is an alias. */
62309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62310 choke me
62311 #else
62312 char (*f) () = $ac_func;
62313 #endif
62314 #ifdef __cplusplus
62316 #endif
62319 main ()
62321 return f != $ac_func;
62323 return 0;
62325 _ACEOF
62326 rm -f conftest.$ac_objext conftest$ac_exeext
62327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62328 (eval $ac_link) 2>conftest.er1
62329 ac_status=$?
62330 grep -v '^ *+' conftest.er1 >conftest.err
62331 rm -f conftest.er1
62332 cat conftest.err >&5
62333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62334 (exit $ac_status); } &&
62335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62337 (eval $ac_try) 2>&5
62338 ac_status=$?
62339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62340 (exit $ac_status); }; } &&
62341 { ac_try='test -s conftest$ac_exeext'
62342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62343 (eval $ac_try) 2>&5
62344 ac_status=$?
62345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62346 (exit $ac_status); }; }; then
62347 eval "$as_ac_var=yes"
62348 else
62349 echo "$as_me: failed program was:" >&5
62350 sed 's/^/| /' conftest.$ac_ext >&5
62352 eval "$as_ac_var=no"
62354 rm -f conftest.err conftest.$ac_objext \
62355 conftest$ac_exeext conftest.$ac_ext
62357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62359 if test `eval echo '${'$as_ac_var'}'` = yes; then
62360 cat >>confdefs.h <<_ACEOF
62361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62362 _ACEOF
62364 else
62365 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
62367 done
62370 for ac_func in __signbitf
62372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62373 echo "$as_me:$LINENO: checking for $ac_func" >&5
62374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62375 if eval "test \"\${$as_ac_var+set}\" = set"; then
62376 echo $ECHO_N "(cached) $ECHO_C" >&6
62377 else
62378 if test x$gcc_no_link = xyes; then
62379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62381 { (exit 1); exit 1; }; }
62383 cat >conftest.$ac_ext <<_ACEOF
62384 /* confdefs.h. */
62385 _ACEOF
62386 cat confdefs.h >>conftest.$ac_ext
62387 cat >>conftest.$ac_ext <<_ACEOF
62388 /* end confdefs.h. */
62389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62391 #define $ac_func innocuous_$ac_func
62393 /* System header to define __stub macros and hopefully few prototypes,
62394 which can conflict with char $ac_func (); below.
62395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62396 <limits.h> exists even on freestanding compilers. */
62398 #ifdef __STDC__
62399 # include <limits.h>
62400 #else
62401 # include <assert.h>
62402 #endif
62404 #undef $ac_func
62406 /* Override any gcc2 internal prototype to avoid an error. */
62407 #ifdef __cplusplus
62408 extern "C"
62410 #endif
62411 /* We use char because int might match the return type of a gcc2
62412 builtin and then its argument prototype would still apply. */
62413 char $ac_func ();
62414 /* The GNU C library defines this for functions which it implements
62415 to always fail with ENOSYS. Some functions are actually named
62416 something starting with __ and the normal name is an alias. */
62417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62418 choke me
62419 #else
62420 char (*f) () = $ac_func;
62421 #endif
62422 #ifdef __cplusplus
62424 #endif
62427 main ()
62429 return f != $ac_func;
62431 return 0;
62433 _ACEOF
62434 rm -f conftest.$ac_objext conftest$ac_exeext
62435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62436 (eval $ac_link) 2>conftest.er1
62437 ac_status=$?
62438 grep -v '^ *+' conftest.er1 >conftest.err
62439 rm -f conftest.er1
62440 cat conftest.err >&5
62441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62442 (exit $ac_status); } &&
62443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62445 (eval $ac_try) 2>&5
62446 ac_status=$?
62447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62448 (exit $ac_status); }; } &&
62449 { ac_try='test -s conftest$ac_exeext'
62450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62451 (eval $ac_try) 2>&5
62452 ac_status=$?
62453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62454 (exit $ac_status); }; }; then
62455 eval "$as_ac_var=yes"
62456 else
62457 echo "$as_me: failed program was:" >&5
62458 sed 's/^/| /' conftest.$ac_ext >&5
62460 eval "$as_ac_var=no"
62462 rm -f conftest.err conftest.$ac_objext \
62463 conftest$ac_exeext conftest.$ac_ext
62465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62467 if test `eval echo '${'$as_ac_var'}'` = yes; then
62468 cat >>confdefs.h <<_ACEOF
62469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62470 _ACEOF
62472 else
62473 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
62475 done
62478 if test x$ac_cv_func_copysignl = x"yes"; then
62480 for ac_func in __signbitl
62482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62483 echo "$as_me:$LINENO: checking for $ac_func" >&5
62484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62485 if eval "test \"\${$as_ac_var+set}\" = set"; then
62486 echo $ECHO_N "(cached) $ECHO_C" >&6
62487 else
62488 if test x$gcc_no_link = xyes; then
62489 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62491 { (exit 1); exit 1; }; }
62493 cat >conftest.$ac_ext <<_ACEOF
62494 /* confdefs.h. */
62495 _ACEOF
62496 cat confdefs.h >>conftest.$ac_ext
62497 cat >>conftest.$ac_ext <<_ACEOF
62498 /* end confdefs.h. */
62499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62501 #define $ac_func innocuous_$ac_func
62503 /* System header to define __stub macros and hopefully few prototypes,
62504 which can conflict with char $ac_func (); below.
62505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62506 <limits.h> exists even on freestanding compilers. */
62508 #ifdef __STDC__
62509 # include <limits.h>
62510 #else
62511 # include <assert.h>
62512 #endif
62514 #undef $ac_func
62516 /* Override any gcc2 internal prototype to avoid an error. */
62517 #ifdef __cplusplus
62518 extern "C"
62520 #endif
62521 /* We use char because int might match the return type of a gcc2
62522 builtin and then its argument prototype would still apply. */
62523 char $ac_func ();
62524 /* The GNU C library defines this for functions which it implements
62525 to always fail with ENOSYS. Some functions are actually named
62526 something starting with __ and the normal name is an alias. */
62527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62528 choke me
62529 #else
62530 char (*f) () = $ac_func;
62531 #endif
62532 #ifdef __cplusplus
62534 #endif
62537 main ()
62539 return f != $ac_func;
62541 return 0;
62543 _ACEOF
62544 rm -f conftest.$ac_objext conftest$ac_exeext
62545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62546 (eval $ac_link) 2>conftest.er1
62547 ac_status=$?
62548 grep -v '^ *+' conftest.er1 >conftest.err
62549 rm -f conftest.er1
62550 cat conftest.err >&5
62551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62552 (exit $ac_status); } &&
62553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62555 (eval $ac_try) 2>&5
62556 ac_status=$?
62557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62558 (exit $ac_status); }; } &&
62559 { ac_try='test -s conftest$ac_exeext'
62560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62561 (eval $ac_try) 2>&5
62562 ac_status=$?
62563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62564 (exit $ac_status); }; }; then
62565 eval "$as_ac_var=yes"
62566 else
62567 echo "$as_me: failed program was:" >&5
62568 sed 's/^/| /' conftest.$ac_ext >&5
62570 eval "$as_ac_var=no"
62572 rm -f conftest.err conftest.$ac_objext \
62573 conftest$ac_exeext conftest.$ac_ext
62575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62577 if test `eval echo '${'$as_ac_var'}'` = yes; then
62578 cat >>confdefs.h <<_ACEOF
62579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62580 _ACEOF
62582 else
62583 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
62585 done
62589 # XXX Review this. Nothing uses it.
62590 if test -n "$LIBMATHOBJS"; then
62591 need_libmath=yes
62596 # Test wchar.h for mbstate_t, which is needed for char_traits and
62597 # others even if wchar_t support is not on.
62598 echo "$as_me:$LINENO: checking for mbstate_t" >&5
62599 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
62600 cat >conftest.$ac_ext <<_ACEOF
62601 /* confdefs.h. */
62602 _ACEOF
62603 cat confdefs.h >>conftest.$ac_ext
62604 cat >>conftest.$ac_ext <<_ACEOF
62605 /* end confdefs.h. */
62606 #include <wchar.h>
62608 main ()
62610 mbstate_t teststate;
62612 return 0;
62614 _ACEOF
62615 rm -f conftest.$ac_objext
62616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62617 (eval $ac_compile) 2>conftest.er1
62618 ac_status=$?
62619 grep -v '^ *+' conftest.er1 >conftest.err
62620 rm -f conftest.er1
62621 cat conftest.err >&5
62622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62623 (exit $ac_status); } &&
62624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62626 (eval $ac_try) 2>&5
62627 ac_status=$?
62628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62629 (exit $ac_status); }; } &&
62630 { ac_try='test -s conftest.$ac_objext'
62631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62632 (eval $ac_try) 2>&5
62633 ac_status=$?
62634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62635 (exit $ac_status); }; }; then
62636 have_mbstate_t=yes
62637 else
62638 echo "$as_me: failed program was:" >&5
62639 sed 's/^/| /' conftest.$ac_ext >&5
62641 have_mbstate_t=no
62643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62644 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
62645 echo "${ECHO_T}$have_mbstate_t" >&6
62646 if test x"$have_mbstate_t" = xyes; then
62647 cat >>confdefs.h <<\_ACEOF
62648 #define HAVE_MBSTATE_T 1
62649 _ACEOF
62653 # Sanity check for existence of ISO C99 headers for extended encoding.
62655 for ac_header in wchar.h
62657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62659 echo "$as_me:$LINENO: checking for $ac_header" >&5
62660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62662 echo $ECHO_N "(cached) $ECHO_C" >&6
62664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62666 else
62667 # Is the header compilable?
62668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
62669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62670 cat >conftest.$ac_ext <<_ACEOF
62671 /* confdefs.h. */
62672 _ACEOF
62673 cat confdefs.h >>conftest.$ac_ext
62674 cat >>conftest.$ac_ext <<_ACEOF
62675 /* end confdefs.h. */
62676 $ac_includes_default
62677 #include <$ac_header>
62678 _ACEOF
62679 rm -f conftest.$ac_objext
62680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62681 (eval $ac_compile) 2>conftest.er1
62682 ac_status=$?
62683 grep -v '^ *+' conftest.er1 >conftest.err
62684 rm -f conftest.er1
62685 cat conftest.err >&5
62686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62687 (exit $ac_status); } &&
62688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62690 (eval $ac_try) 2>&5
62691 ac_status=$?
62692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62693 (exit $ac_status); }; } &&
62694 { ac_try='test -s conftest.$ac_objext'
62695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62696 (eval $ac_try) 2>&5
62697 ac_status=$?
62698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62699 (exit $ac_status); }; }; then
62700 ac_header_compiler=yes
62701 else
62702 echo "$as_me: failed program was:" >&5
62703 sed 's/^/| /' conftest.$ac_ext >&5
62705 ac_header_compiler=no
62707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62709 echo "${ECHO_T}$ac_header_compiler" >&6
62711 # Is the header present?
62712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
62713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62714 cat >conftest.$ac_ext <<_ACEOF
62715 /* confdefs.h. */
62716 _ACEOF
62717 cat confdefs.h >>conftest.$ac_ext
62718 cat >>conftest.$ac_ext <<_ACEOF
62719 /* end confdefs.h. */
62720 #include <$ac_header>
62721 _ACEOF
62722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62724 ac_status=$?
62725 grep -v '^ *+' conftest.er1 >conftest.err
62726 rm -f conftest.er1
62727 cat conftest.err >&5
62728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62729 (exit $ac_status); } >/dev/null; then
62730 if test -s conftest.err; then
62731 ac_cpp_err=$ac_c_preproc_warn_flag
62732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62733 else
62734 ac_cpp_err=
62736 else
62737 ac_cpp_err=yes
62739 if test -z "$ac_cpp_err"; then
62740 ac_header_preproc=yes
62741 else
62742 echo "$as_me: failed program was:" >&5
62743 sed 's/^/| /' conftest.$ac_ext >&5
62745 ac_header_preproc=no
62747 rm -f conftest.err conftest.$ac_ext
62748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62749 echo "${ECHO_T}$ac_header_preproc" >&6
62751 # So? What about this header?
62752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62753 yes:no: )
62754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62758 ac_header_preproc=yes
62760 no:yes:* )
62761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
62764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
62765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
62768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
62769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62774 cat <<\_ASBOX
62775 ## ----------------------------------------- ##
62776 ## Report this to the package-unused lists. ##
62777 ## ----------------------------------------- ##
62778 _ASBOX
62780 sed "s/^/$as_me: WARNING: /" >&2
62782 esac
62783 echo "$as_me:$LINENO: checking for $ac_header" >&5
62784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62786 echo $ECHO_N "(cached) $ECHO_C" >&6
62787 else
62788 eval "$as_ac_Header=\$ac_header_preproc"
62790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62795 cat >>confdefs.h <<_ACEOF
62796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62797 _ACEOF
62798 ac_has_wchar_h=yes
62799 else
62800 ac_has_wchar_h=no
62803 done
62806 for ac_header in wctype.h
62808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62810 echo "$as_me:$LINENO: checking for $ac_header" >&5
62811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62813 echo $ECHO_N "(cached) $ECHO_C" >&6
62815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62817 else
62818 # Is the header compilable?
62819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
62820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62821 cat >conftest.$ac_ext <<_ACEOF
62822 /* confdefs.h. */
62823 _ACEOF
62824 cat confdefs.h >>conftest.$ac_ext
62825 cat >>conftest.$ac_ext <<_ACEOF
62826 /* end confdefs.h. */
62827 $ac_includes_default
62828 #include <$ac_header>
62829 _ACEOF
62830 rm -f conftest.$ac_objext
62831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62832 (eval $ac_compile) 2>conftest.er1
62833 ac_status=$?
62834 grep -v '^ *+' conftest.er1 >conftest.err
62835 rm -f conftest.er1
62836 cat conftest.err >&5
62837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62838 (exit $ac_status); } &&
62839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62841 (eval $ac_try) 2>&5
62842 ac_status=$?
62843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62844 (exit $ac_status); }; } &&
62845 { ac_try='test -s conftest.$ac_objext'
62846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62847 (eval $ac_try) 2>&5
62848 ac_status=$?
62849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62850 (exit $ac_status); }; }; then
62851 ac_header_compiler=yes
62852 else
62853 echo "$as_me: failed program was:" >&5
62854 sed 's/^/| /' conftest.$ac_ext >&5
62856 ac_header_compiler=no
62858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62860 echo "${ECHO_T}$ac_header_compiler" >&6
62862 # Is the header present?
62863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
62864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62865 cat >conftest.$ac_ext <<_ACEOF
62866 /* confdefs.h. */
62867 _ACEOF
62868 cat confdefs.h >>conftest.$ac_ext
62869 cat >>conftest.$ac_ext <<_ACEOF
62870 /* end confdefs.h. */
62871 #include <$ac_header>
62872 _ACEOF
62873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62875 ac_status=$?
62876 grep -v '^ *+' conftest.er1 >conftest.err
62877 rm -f conftest.er1
62878 cat conftest.err >&5
62879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62880 (exit $ac_status); } >/dev/null; then
62881 if test -s conftest.err; then
62882 ac_cpp_err=$ac_c_preproc_warn_flag
62883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62884 else
62885 ac_cpp_err=
62887 else
62888 ac_cpp_err=yes
62890 if test -z "$ac_cpp_err"; then
62891 ac_header_preproc=yes
62892 else
62893 echo "$as_me: failed program was:" >&5
62894 sed 's/^/| /' conftest.$ac_ext >&5
62896 ac_header_preproc=no
62898 rm -f conftest.err conftest.$ac_ext
62899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62900 echo "${ECHO_T}$ac_header_preproc" >&6
62902 # So? What about this header?
62903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62904 yes:no: )
62905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62909 ac_header_preproc=yes
62911 no:yes:* )
62912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
62915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
62916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
62919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
62920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62925 cat <<\_ASBOX
62926 ## ----------------------------------------- ##
62927 ## Report this to the package-unused lists. ##
62928 ## ----------------------------------------- ##
62929 _ASBOX
62931 sed "s/^/$as_me: WARNING: /" >&2
62933 esac
62934 echo "$as_me:$LINENO: checking for $ac_header" >&5
62935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62937 echo $ECHO_N "(cached) $ECHO_C" >&6
62938 else
62939 eval "$as_ac_Header=\$ac_header_preproc"
62941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62946 cat >>confdefs.h <<_ACEOF
62947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62948 _ACEOF
62949 ac_has_wctype_h=yes
62950 else
62951 ac_has_wctype_h=no
62954 done
62957 # Only continue checking if the ISO C99 headers exist and support is on.
62958 if test x"$ac_has_wchar_h" = xyes &&
62959 test x"$ac_has_wctype_h" = xyes &&
62960 test x"$enable_c_mbchar" != xno; then
62962 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62963 # numeric_limits can instantiate type_traits<wchar_t>
62964 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62965 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62966 cat >conftest.$ac_ext <<_ACEOF
62967 /* confdefs.h. */
62968 _ACEOF
62969 cat confdefs.h >>conftest.$ac_ext
62970 cat >>conftest.$ac_ext <<_ACEOF
62971 /* end confdefs.h. */
62972 #include <wchar.h>
62974 main ()
62976 int i = WCHAR_MIN; int j = WCHAR_MAX;
62978 return 0;
62980 _ACEOF
62981 rm -f conftest.$ac_objext
62982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62983 (eval $ac_compile) 2>conftest.er1
62984 ac_status=$?
62985 grep -v '^ *+' conftest.er1 >conftest.err
62986 rm -f conftest.er1
62987 cat conftest.err >&5
62988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62989 (exit $ac_status); } &&
62990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62992 (eval $ac_try) 2>&5
62993 ac_status=$?
62994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62995 (exit $ac_status); }; } &&
62996 { ac_try='test -s conftest.$ac_objext'
62997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62998 (eval $ac_try) 2>&5
62999 ac_status=$?
63000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63001 (exit $ac_status); }; }; then
63002 has_wchar_minmax=yes
63003 else
63004 echo "$as_me: failed program was:" >&5
63005 sed 's/^/| /' conftest.$ac_ext >&5
63007 has_wchar_minmax=no
63009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63010 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
63011 echo "${ECHO_T}$has_wchar_minmax" >&6
63013 # Test wchar.h for WEOF, which is what we use to determine whether
63014 # to specialize for char_traits<wchar_t> or not.
63015 echo "$as_me:$LINENO: checking for WEOF" >&5
63016 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
63017 cat >conftest.$ac_ext <<_ACEOF
63018 /* confdefs.h. */
63019 _ACEOF
63020 cat confdefs.h >>conftest.$ac_ext
63021 cat >>conftest.$ac_ext <<_ACEOF
63022 /* end confdefs.h. */
63024 #include <wchar.h>
63025 #include <stddef.h>
63027 main ()
63029 wint_t i = WEOF;
63031 return 0;
63033 _ACEOF
63034 rm -f conftest.$ac_objext
63035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63036 (eval $ac_compile) 2>conftest.er1
63037 ac_status=$?
63038 grep -v '^ *+' conftest.er1 >conftest.err
63039 rm -f conftest.er1
63040 cat conftest.err >&5
63041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63042 (exit $ac_status); } &&
63043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63045 (eval $ac_try) 2>&5
63046 ac_status=$?
63047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63048 (exit $ac_status); }; } &&
63049 { ac_try='test -s conftest.$ac_objext'
63050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63051 (eval $ac_try) 2>&5
63052 ac_status=$?
63053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63054 (exit $ac_status); }; }; then
63055 has_weof=yes
63056 else
63057 echo "$as_me: failed program was:" >&5
63058 sed 's/^/| /' conftest.$ac_ext >&5
63060 has_weof=no
63062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63063 echo "$as_me:$LINENO: result: $has_weof" >&5
63064 echo "${ECHO_T}$has_weof" >&6
63066 # Tests for wide character functions used in char_traits<wchar_t>.
63067 ac_wfuncs=yes
63074 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
63076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63077 echo "$as_me:$LINENO: checking for $ac_func" >&5
63078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63079 if eval "test \"\${$as_ac_var+set}\" = set"; then
63080 echo $ECHO_N "(cached) $ECHO_C" >&6
63081 else
63082 if test x$gcc_no_link = xyes; then
63083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63084 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63085 { (exit 1); exit 1; }; }
63087 cat >conftest.$ac_ext <<_ACEOF
63088 /* confdefs.h. */
63089 _ACEOF
63090 cat confdefs.h >>conftest.$ac_ext
63091 cat >>conftest.$ac_ext <<_ACEOF
63092 /* end confdefs.h. */
63093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63095 #define $ac_func innocuous_$ac_func
63097 /* System header to define __stub macros and hopefully few prototypes,
63098 which can conflict with char $ac_func (); below.
63099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63100 <limits.h> exists even on freestanding compilers. */
63102 #ifdef __STDC__
63103 # include <limits.h>
63104 #else
63105 # include <assert.h>
63106 #endif
63108 #undef $ac_func
63110 /* Override any gcc2 internal prototype to avoid an error. */
63111 #ifdef __cplusplus
63112 extern "C"
63114 #endif
63115 /* We use char because int might match the return type of a gcc2
63116 builtin and then its argument prototype would still apply. */
63117 char $ac_func ();
63118 /* The GNU C library defines this for functions which it implements
63119 to always fail with ENOSYS. Some functions are actually named
63120 something starting with __ and the normal name is an alias. */
63121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63122 choke me
63123 #else
63124 char (*f) () = $ac_func;
63125 #endif
63126 #ifdef __cplusplus
63128 #endif
63131 main ()
63133 return f != $ac_func;
63135 return 0;
63137 _ACEOF
63138 rm -f conftest.$ac_objext conftest$ac_exeext
63139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63140 (eval $ac_link) 2>conftest.er1
63141 ac_status=$?
63142 grep -v '^ *+' conftest.er1 >conftest.err
63143 rm -f conftest.er1
63144 cat conftest.err >&5
63145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63146 (exit $ac_status); } &&
63147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63149 (eval $ac_try) 2>&5
63150 ac_status=$?
63151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63152 (exit $ac_status); }; } &&
63153 { ac_try='test -s conftest$ac_exeext'
63154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63155 (eval $ac_try) 2>&5
63156 ac_status=$?
63157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63158 (exit $ac_status); }; }; then
63159 eval "$as_ac_var=yes"
63160 else
63161 echo "$as_me: failed program was:" >&5
63162 sed 's/^/| /' conftest.$ac_ext >&5
63164 eval "$as_ac_var=no"
63166 rm -f conftest.err conftest.$ac_objext \
63167 conftest$ac_exeext conftest.$ac_ext
63169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63171 if test `eval echo '${'$as_ac_var'}'` = yes; then
63172 cat >>confdefs.h <<_ACEOF
63173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63174 _ACEOF
63176 else
63177 ac_wfuncs=no
63179 done
63182 # Checks for names injected into std:: by the c_std headers.
63229 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
63230 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
63231 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
63232 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
63233 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
63234 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
63236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63237 echo "$as_me:$LINENO: checking for $ac_func" >&5
63238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63239 if eval "test \"\${$as_ac_var+set}\" = set"; then
63240 echo $ECHO_N "(cached) $ECHO_C" >&6
63241 else
63242 if test x$gcc_no_link = xyes; then
63243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63245 { (exit 1); exit 1; }; }
63247 cat >conftest.$ac_ext <<_ACEOF
63248 /* confdefs.h. */
63249 _ACEOF
63250 cat confdefs.h >>conftest.$ac_ext
63251 cat >>conftest.$ac_ext <<_ACEOF
63252 /* end confdefs.h. */
63253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63255 #define $ac_func innocuous_$ac_func
63257 /* System header to define __stub macros and hopefully few prototypes,
63258 which can conflict with char $ac_func (); below.
63259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63260 <limits.h> exists even on freestanding compilers. */
63262 #ifdef __STDC__
63263 # include <limits.h>
63264 #else
63265 # include <assert.h>
63266 #endif
63268 #undef $ac_func
63270 /* Override any gcc2 internal prototype to avoid an error. */
63271 #ifdef __cplusplus
63272 extern "C"
63274 #endif
63275 /* We use char because int might match the return type of a gcc2
63276 builtin and then its argument prototype would still apply. */
63277 char $ac_func ();
63278 /* The GNU C library defines this for functions which it implements
63279 to always fail with ENOSYS. Some functions are actually named
63280 something starting with __ and the normal name is an alias. */
63281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63282 choke me
63283 #else
63284 char (*f) () = $ac_func;
63285 #endif
63286 #ifdef __cplusplus
63288 #endif
63291 main ()
63293 return f != $ac_func;
63295 return 0;
63297 _ACEOF
63298 rm -f conftest.$ac_objext conftest$ac_exeext
63299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63300 (eval $ac_link) 2>conftest.er1
63301 ac_status=$?
63302 grep -v '^ *+' conftest.er1 >conftest.err
63303 rm -f conftest.er1
63304 cat conftest.err >&5
63305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63306 (exit $ac_status); } &&
63307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63309 (eval $ac_try) 2>&5
63310 ac_status=$?
63311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63312 (exit $ac_status); }; } &&
63313 { ac_try='test -s conftest$ac_exeext'
63314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63315 (eval $ac_try) 2>&5
63316 ac_status=$?
63317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63318 (exit $ac_status); }; }; then
63319 eval "$as_ac_var=yes"
63320 else
63321 echo "$as_me: failed program was:" >&5
63322 sed 's/^/| /' conftest.$ac_ext >&5
63324 eval "$as_ac_var=no"
63326 rm -f conftest.err conftest.$ac_objext \
63327 conftest$ac_exeext conftest.$ac_ext
63329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63331 if test `eval echo '${'$as_ac_var'}'` = yes; then
63332 cat >>confdefs.h <<_ACEOF
63333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63334 _ACEOF
63336 else
63337 ac_wfuncs=no
63339 done
63342 # Checks for wide character functions that are not required
63343 # for basic wchar_t support. Don't disable support if they are missing.
63344 # Injection of these is wrapped with guard macros.
63350 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
63352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63353 echo "$as_me:$LINENO: checking for $ac_func" >&5
63354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63355 if eval "test \"\${$as_ac_var+set}\" = set"; then
63356 echo $ECHO_N "(cached) $ECHO_C" >&6
63357 else
63358 if test x$gcc_no_link = xyes; then
63359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63361 { (exit 1); exit 1; }; }
63363 cat >conftest.$ac_ext <<_ACEOF
63364 /* confdefs.h. */
63365 _ACEOF
63366 cat confdefs.h >>conftest.$ac_ext
63367 cat >>conftest.$ac_ext <<_ACEOF
63368 /* end confdefs.h. */
63369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63371 #define $ac_func innocuous_$ac_func
63373 /* System header to define __stub macros and hopefully few prototypes,
63374 which can conflict with char $ac_func (); below.
63375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63376 <limits.h> exists even on freestanding compilers. */
63378 #ifdef __STDC__
63379 # include <limits.h>
63380 #else
63381 # include <assert.h>
63382 #endif
63384 #undef $ac_func
63386 /* Override any gcc2 internal prototype to avoid an error. */
63387 #ifdef __cplusplus
63388 extern "C"
63390 #endif
63391 /* We use char because int might match the return type of a gcc2
63392 builtin and then its argument prototype would still apply. */
63393 char $ac_func ();
63394 /* The GNU C library defines this for functions which it implements
63395 to always fail with ENOSYS. Some functions are actually named
63396 something starting with __ and the normal name is an alias. */
63397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63398 choke me
63399 #else
63400 char (*f) () = $ac_func;
63401 #endif
63402 #ifdef __cplusplus
63404 #endif
63407 main ()
63409 return f != $ac_func;
63411 return 0;
63413 _ACEOF
63414 rm -f conftest.$ac_objext conftest$ac_exeext
63415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63416 (eval $ac_link) 2>conftest.er1
63417 ac_status=$?
63418 grep -v '^ *+' conftest.er1 >conftest.err
63419 rm -f conftest.er1
63420 cat conftest.err >&5
63421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63422 (exit $ac_status); } &&
63423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63425 (eval $ac_try) 2>&5
63426 ac_status=$?
63427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63428 (exit $ac_status); }; } &&
63429 { ac_try='test -s conftest$ac_exeext'
63430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63431 (eval $ac_try) 2>&5
63432 ac_status=$?
63433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63434 (exit $ac_status); }; }; then
63435 eval "$as_ac_var=yes"
63436 else
63437 echo "$as_me: failed program was:" >&5
63438 sed 's/^/| /' conftest.$ac_ext >&5
63440 eval "$as_ac_var=no"
63442 rm -f conftest.err conftest.$ac_objext \
63443 conftest$ac_exeext conftest.$ac_ext
63445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63447 if test `eval echo '${'$as_ac_var'}'` = yes; then
63448 cat >>confdefs.h <<_ACEOF
63449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63450 _ACEOF
63453 done
63456 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
63457 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
63458 if test x"$has_weof" = xyes &&
63459 test x"$has_wchar_minmax" = xyes &&
63460 test x"$ac_wfuncs" = xyes;
63461 then
63462 ac_isoC99_wchar_t=yes
63463 else
63464 ac_isoC99_wchar_t=no
63466 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
63467 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
63469 # Use iconv for wchar_t to char conversions. As such, check for
63470 # X/Open Portability Guide, version 2 features (XPG2).
63471 if test "${ac_cv_header_iconv_h+set}" = set; then
63472 echo "$as_me:$LINENO: checking for iconv.h" >&5
63473 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
63474 if test "${ac_cv_header_iconv_h+set}" = set; then
63475 echo $ECHO_N "(cached) $ECHO_C" >&6
63477 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
63478 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
63479 else
63480 # Is the header compilable?
63481 echo "$as_me:$LINENO: checking iconv.h usability" >&5
63482 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
63483 cat >conftest.$ac_ext <<_ACEOF
63484 /* confdefs.h. */
63485 _ACEOF
63486 cat confdefs.h >>conftest.$ac_ext
63487 cat >>conftest.$ac_ext <<_ACEOF
63488 /* end confdefs.h. */
63489 $ac_includes_default
63490 #include <iconv.h>
63491 _ACEOF
63492 rm -f conftest.$ac_objext
63493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63494 (eval $ac_compile) 2>conftest.er1
63495 ac_status=$?
63496 grep -v '^ *+' conftest.er1 >conftest.err
63497 rm -f conftest.er1
63498 cat conftest.err >&5
63499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63500 (exit $ac_status); } &&
63501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63503 (eval $ac_try) 2>&5
63504 ac_status=$?
63505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63506 (exit $ac_status); }; } &&
63507 { ac_try='test -s conftest.$ac_objext'
63508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63509 (eval $ac_try) 2>&5
63510 ac_status=$?
63511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63512 (exit $ac_status); }; }; then
63513 ac_header_compiler=yes
63514 else
63515 echo "$as_me: failed program was:" >&5
63516 sed 's/^/| /' conftest.$ac_ext >&5
63518 ac_header_compiler=no
63520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63522 echo "${ECHO_T}$ac_header_compiler" >&6
63524 # Is the header present?
63525 echo "$as_me:$LINENO: checking iconv.h presence" >&5
63526 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
63527 cat >conftest.$ac_ext <<_ACEOF
63528 /* confdefs.h. */
63529 _ACEOF
63530 cat confdefs.h >>conftest.$ac_ext
63531 cat >>conftest.$ac_ext <<_ACEOF
63532 /* end confdefs.h. */
63533 #include <iconv.h>
63534 _ACEOF
63535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63537 ac_status=$?
63538 grep -v '^ *+' conftest.er1 >conftest.err
63539 rm -f conftest.er1
63540 cat conftest.err >&5
63541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63542 (exit $ac_status); } >/dev/null; then
63543 if test -s conftest.err; then
63544 ac_cpp_err=$ac_c_preproc_warn_flag
63545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63546 else
63547 ac_cpp_err=
63549 else
63550 ac_cpp_err=yes
63552 if test -z "$ac_cpp_err"; then
63553 ac_header_preproc=yes
63554 else
63555 echo "$as_me: failed program was:" >&5
63556 sed 's/^/| /' conftest.$ac_ext >&5
63558 ac_header_preproc=no
63560 rm -f conftest.err conftest.$ac_ext
63561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63562 echo "${ECHO_T}$ac_header_preproc" >&6
63564 # So? What about this header?
63565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63566 yes:no: )
63567 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
63568 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
63569 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
63570 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
63571 ac_header_preproc=yes
63573 no:yes:* )
63574 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
63575 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
63576 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
63577 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
63578 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
63579 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
63580 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
63581 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
63582 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
63583 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
63584 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
63585 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
63587 cat <<\_ASBOX
63588 ## ----------------------------------------- ##
63589 ## Report this to the package-unused lists. ##
63590 ## ----------------------------------------- ##
63591 _ASBOX
63593 sed "s/^/$as_me: WARNING: /" >&2
63595 esac
63596 echo "$as_me:$LINENO: checking for iconv.h" >&5
63597 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
63598 if test "${ac_cv_header_iconv_h+set}" = set; then
63599 echo $ECHO_N "(cached) $ECHO_C" >&6
63600 else
63601 ac_cv_header_iconv_h=$ac_header_preproc
63603 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
63604 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
63607 if test $ac_cv_header_iconv_h = yes; then
63608 ac_has_iconv_h=yes
63609 else
63610 ac_has_iconv_h=no
63614 if test "${ac_cv_header_langinfo_h+set}" = set; then
63615 echo "$as_me:$LINENO: checking for langinfo.h" >&5
63616 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
63617 if test "${ac_cv_header_langinfo_h+set}" = set; then
63618 echo $ECHO_N "(cached) $ECHO_C" >&6
63620 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
63621 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
63622 else
63623 # Is the header compilable?
63624 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
63625 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
63626 cat >conftest.$ac_ext <<_ACEOF
63627 /* confdefs.h. */
63628 _ACEOF
63629 cat confdefs.h >>conftest.$ac_ext
63630 cat >>conftest.$ac_ext <<_ACEOF
63631 /* end confdefs.h. */
63632 $ac_includes_default
63633 #include <langinfo.h>
63634 _ACEOF
63635 rm -f conftest.$ac_objext
63636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63637 (eval $ac_compile) 2>conftest.er1
63638 ac_status=$?
63639 grep -v '^ *+' conftest.er1 >conftest.err
63640 rm -f conftest.er1
63641 cat conftest.err >&5
63642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63643 (exit $ac_status); } &&
63644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63646 (eval $ac_try) 2>&5
63647 ac_status=$?
63648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63649 (exit $ac_status); }; } &&
63650 { ac_try='test -s conftest.$ac_objext'
63651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63652 (eval $ac_try) 2>&5
63653 ac_status=$?
63654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63655 (exit $ac_status); }; }; then
63656 ac_header_compiler=yes
63657 else
63658 echo "$as_me: failed program was:" >&5
63659 sed 's/^/| /' conftest.$ac_ext >&5
63661 ac_header_compiler=no
63663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63665 echo "${ECHO_T}$ac_header_compiler" >&6
63667 # Is the header present?
63668 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
63669 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
63670 cat >conftest.$ac_ext <<_ACEOF
63671 /* confdefs.h. */
63672 _ACEOF
63673 cat confdefs.h >>conftest.$ac_ext
63674 cat >>conftest.$ac_ext <<_ACEOF
63675 /* end confdefs.h. */
63676 #include <langinfo.h>
63677 _ACEOF
63678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63680 ac_status=$?
63681 grep -v '^ *+' conftest.er1 >conftest.err
63682 rm -f conftest.er1
63683 cat conftest.err >&5
63684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63685 (exit $ac_status); } >/dev/null; then
63686 if test -s conftest.err; then
63687 ac_cpp_err=$ac_c_preproc_warn_flag
63688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63689 else
63690 ac_cpp_err=
63692 else
63693 ac_cpp_err=yes
63695 if test -z "$ac_cpp_err"; then
63696 ac_header_preproc=yes
63697 else
63698 echo "$as_me: failed program was:" >&5
63699 sed 's/^/| /' conftest.$ac_ext >&5
63701 ac_header_preproc=no
63703 rm -f conftest.err conftest.$ac_ext
63704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63705 echo "${ECHO_T}$ac_header_preproc" >&6
63707 # So? What about this header?
63708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63709 yes:no: )
63710 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
63711 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
63712 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
63713 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
63714 ac_header_preproc=yes
63716 no:yes:* )
63717 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
63718 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
63719 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
63720 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
63721 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
63722 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
63723 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
63724 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
63725 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
63726 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
63727 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
63728 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
63730 cat <<\_ASBOX
63731 ## ----------------------------------------- ##
63732 ## Report this to the package-unused lists. ##
63733 ## ----------------------------------------- ##
63734 _ASBOX
63736 sed "s/^/$as_me: WARNING: /" >&2
63738 esac
63739 echo "$as_me:$LINENO: checking for langinfo.h" >&5
63740 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
63741 if test "${ac_cv_header_langinfo_h+set}" = set; then
63742 echo $ECHO_N "(cached) $ECHO_C" >&6
63743 else
63744 ac_cv_header_langinfo_h=$ac_header_preproc
63746 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
63747 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
63750 if test $ac_cv_header_langinfo_h = yes; then
63751 ac_has_langinfo_h=yes
63752 else
63753 ac_has_langinfo_h=no
63758 # Check for existence of libiconv.a providing XPG2 wchar_t support.
63759 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
63760 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
63761 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
63762 echo $ECHO_N "(cached) $ECHO_C" >&6
63763 else
63764 ac_check_lib_save_LIBS=$LIBS
63765 LIBS="-liconv $LIBS"
63766 if test x$gcc_no_link = xyes; then
63767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63769 { (exit 1); exit 1; }; }
63771 cat >conftest.$ac_ext <<_ACEOF
63772 /* confdefs.h. */
63773 _ACEOF
63774 cat confdefs.h >>conftest.$ac_ext
63775 cat >>conftest.$ac_ext <<_ACEOF
63776 /* end confdefs.h. */
63778 /* Override any gcc2 internal prototype to avoid an error. */
63779 #ifdef __cplusplus
63780 extern "C"
63781 #endif
63782 /* We use char because int might match the return type of a gcc2
63783 builtin and then its argument prototype would still apply. */
63784 char iconv ();
63786 main ()
63788 iconv ();
63790 return 0;
63792 _ACEOF
63793 rm -f conftest.$ac_objext conftest$ac_exeext
63794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63795 (eval $ac_link) 2>conftest.er1
63796 ac_status=$?
63797 grep -v '^ *+' conftest.er1 >conftest.err
63798 rm -f conftest.er1
63799 cat conftest.err >&5
63800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63801 (exit $ac_status); } &&
63802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63804 (eval $ac_try) 2>&5
63805 ac_status=$?
63806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63807 (exit $ac_status); }; } &&
63808 { ac_try='test -s conftest$ac_exeext'
63809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63810 (eval $ac_try) 2>&5
63811 ac_status=$?
63812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63813 (exit $ac_status); }; }; then
63814 ac_cv_lib_iconv_iconv=yes
63815 else
63816 echo "$as_me: failed program was:" >&5
63817 sed 's/^/| /' conftest.$ac_ext >&5
63819 ac_cv_lib_iconv_iconv=no
63821 rm -f conftest.err conftest.$ac_objext \
63822 conftest$ac_exeext conftest.$ac_ext
63823 LIBS=$ac_check_lib_save_LIBS
63825 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
63826 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
63827 if test $ac_cv_lib_iconv_iconv = yes; then
63828 libiconv="-liconv"
63831 ac_save_LIBS="$LIBS"
63832 LIBS="$LIBS $libiconv"
63838 for ac_func in iconv_open iconv_close iconv nl_langinfo
63840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63841 echo "$as_me:$LINENO: checking for $ac_func" >&5
63842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63843 if eval "test \"\${$as_ac_var+set}\" = set"; then
63844 echo $ECHO_N "(cached) $ECHO_C" >&6
63845 else
63846 if test x$gcc_no_link = xyes; then
63847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63849 { (exit 1); exit 1; }; }
63851 cat >conftest.$ac_ext <<_ACEOF
63852 /* confdefs.h. */
63853 _ACEOF
63854 cat confdefs.h >>conftest.$ac_ext
63855 cat >>conftest.$ac_ext <<_ACEOF
63856 /* end confdefs.h. */
63857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63859 #define $ac_func innocuous_$ac_func
63861 /* System header to define __stub macros and hopefully few prototypes,
63862 which can conflict with char $ac_func (); below.
63863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63864 <limits.h> exists even on freestanding compilers. */
63866 #ifdef __STDC__
63867 # include <limits.h>
63868 #else
63869 # include <assert.h>
63870 #endif
63872 #undef $ac_func
63874 /* Override any gcc2 internal prototype to avoid an error. */
63875 #ifdef __cplusplus
63876 extern "C"
63878 #endif
63879 /* We use char because int might match the return type of a gcc2
63880 builtin and then its argument prototype would still apply. */
63881 char $ac_func ();
63882 /* The GNU C library defines this for functions which it implements
63883 to always fail with ENOSYS. Some functions are actually named
63884 something starting with __ and the normal name is an alias. */
63885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63886 choke me
63887 #else
63888 char (*f) () = $ac_func;
63889 #endif
63890 #ifdef __cplusplus
63892 #endif
63895 main ()
63897 return f != $ac_func;
63899 return 0;
63901 _ACEOF
63902 rm -f conftest.$ac_objext conftest$ac_exeext
63903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63904 (eval $ac_link) 2>conftest.er1
63905 ac_status=$?
63906 grep -v '^ *+' conftest.er1 >conftest.err
63907 rm -f conftest.er1
63908 cat conftest.err >&5
63909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63910 (exit $ac_status); } &&
63911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
63912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63913 (eval $ac_try) 2>&5
63914 ac_status=$?
63915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63916 (exit $ac_status); }; } &&
63917 { ac_try='test -s conftest$ac_exeext'
63918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63919 (eval $ac_try) 2>&5
63920 ac_status=$?
63921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63922 (exit $ac_status); }; }; then
63923 eval "$as_ac_var=yes"
63924 else
63925 echo "$as_me: failed program was:" >&5
63926 sed 's/^/| /' conftest.$ac_ext >&5
63928 eval "$as_ac_var=no"
63930 rm -f conftest.err conftest.$ac_objext \
63931 conftest$ac_exeext conftest.$ac_ext
63933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63935 if test `eval echo '${'$as_ac_var'}'` = yes; then
63936 cat >>confdefs.h <<_ACEOF
63937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63938 _ACEOF
63939 ac_XPG2funcs=yes
63940 else
63941 ac_XPG2funcs=no
63943 done
63946 LIBS="$ac_save_LIBS"
63948 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63949 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63950 if test x"$ac_has_iconv_h" = xyes &&
63951 test x"$ac_has_langinfo_h" = xyes &&
63952 test x"$ac_XPG2funcs" = xyes;
63953 then
63954 ac_XPG2_wchar_t=yes
63955 else
63956 ac_XPG2_wchar_t=no
63958 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63959 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63961 # At the moment, only enable wchar_t specializations if all the
63962 # above support is present.
63963 if test x"$ac_isoC99_wchar_t" = xyes &&
63964 test x"$ac_XPG2_wchar_t" = xyes;
63965 then
63966 cat >>confdefs.h <<\_ACEOF
63967 #define _GLIBCXX_USE_WCHAR_T 1
63968 _ACEOF
63970 enable_wchar_t=yes
63973 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63974 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63975 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63976 echo "${ECHO_T}$enable_wchar_t" >&6
63978 cat >>confdefs.h <<\_ACEOF
63979 #define HAVE_COPYSIGN 1
63980 _ACEOF
63982 cat >>confdefs.h <<\_ACEOF
63983 #define HAVE_COPYSIGNF 1
63984 _ACEOF
63986 cat >>confdefs.h <<\_ACEOF
63987 #define HAVE_FINITEF 1
63988 _ACEOF
63990 cat >>confdefs.h <<\_ACEOF
63991 #define HAVE_FINITE 1
63992 _ACEOF
63994 cat >>confdefs.h <<\_ACEOF
63995 #define HAVE_FREXPF 1
63996 _ACEOF
63998 cat >>confdefs.h <<\_ACEOF
63999 #define HAVE_HYPOTF 1
64000 _ACEOF
64002 cat >>confdefs.h <<\_ACEOF
64003 #define HAVE_ISINF 1
64004 _ACEOF
64006 cat >>confdefs.h <<\_ACEOF
64007 #define HAVE_ISINFF 1
64008 _ACEOF
64010 cat >>confdefs.h <<\_ACEOF
64011 #define HAVE_ISNAN 1
64012 _ACEOF
64014 cat >>confdefs.h <<\_ACEOF
64015 #define HAVE_ISNANF 1
64016 _ACEOF
64018 if test x"long_double_math_on_this_cpu" = x"yes"; then
64019 cat >>confdefs.h <<\_ACEOF
64020 #define HAVE_FINITEL 1
64021 _ACEOF
64023 cat >>confdefs.h <<\_ACEOF
64024 #define HAVE_ISINFL 1
64025 _ACEOF
64027 cat >>confdefs.h <<\_ACEOF
64028 #define HAVE_ISNANL 1
64029 _ACEOF
64033 *-qnx6.1* | *-qnx6.2*)
64034 SECTION_FLAGS='-ffunction-sections -fdata-sections'
64037 # If we're not using GNU ld, then there's no point in even trying these
64038 # tests. Check for that first. We should have already tested for gld
64039 # by now (in libtool), but require it now just to be safe...
64040 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
64041 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
64045 # The name set by libtool depends on the version of libtool. Shame on us
64046 # for depending on an impl detail, but c'est la vie. Older versions used
64047 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
64048 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
64049 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
64050 # set (hence we're using an older libtool), then set it.
64051 if test x${with_gnu_ld+set} != xset; then
64052 if test x${ac_cv_prog_gnu_ld+set} != xset; then
64053 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
64054 with_gnu_ld=no
64055 else
64056 with_gnu_ld=$ac_cv_prog_gnu_ld
64060 # Start by getting the version number. I think the libtool test already
64061 # does some of this, but throws away the result.
64063 ldver=`$LD --version 2>/dev/null | head -1 | \
64064 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
64066 glibcxx_gnu_ld_version=`echo $ldver | \
64067 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
64069 # Set --gc-sections.
64070 if test "$with_gnu_ld" = "notbroken"; then
64071 # GNU ld it is! Joy and bunny rabbits!
64073 # All these tests are for C++; save the language and the compiler flags.
64074 # Need to do this so that g++ won't try to link in libstdc++
64075 ac_test_CFLAGS="${CFLAGS+set}"
64076 ac_save_CFLAGS="$CFLAGS"
64077 CFLAGS='-x c++ -Wl,--gc-sections'
64079 # Check for -Wl,--gc-sections
64080 # XXX This test is broken at the moment, as symbols required for linking
64081 # are now in libsupc++ (not built yet). In addition, this test has
64082 # cored on solaris in the past. In addition, --gc-sections doesn't
64083 # really work at the moment (keeps on discarding used sections, first
64084 # .eh_frame and now some of the glibc sections for iconv).
64085 # Bzzzzt. Thanks for playing, maybe next time.
64086 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
64087 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
64088 if test "$cross_compiling" = yes; then
64089 ac_sectionLDflags=yes
64090 else
64091 cat >conftest.$ac_ext <<_ACEOF
64092 /* confdefs.h. */
64093 _ACEOF
64094 cat confdefs.h >>conftest.$ac_ext
64095 cat >>conftest.$ac_ext <<_ACEOF
64096 /* end confdefs.h. */
64098 int main(void)
64100 try { throw 1; }
64101 catch (...) { };
64102 return 0;
64105 _ACEOF
64106 rm -f conftest$ac_exeext
64107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64108 (eval $ac_link) 2>&5
64109 ac_status=$?
64110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64113 (eval $ac_try) 2>&5
64114 ac_status=$?
64115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64116 (exit $ac_status); }; }; then
64117 ac_sectionLDflags=yes
64118 else
64119 echo "$as_me: program exited with status $ac_status" >&5
64120 echo "$as_me: failed program was:" >&5
64121 sed 's/^/| /' conftest.$ac_ext >&5
64123 ( exit $ac_status )
64124 ac_sectionLDflags=no
64126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
64128 if test "$ac_test_CFLAGS" = set; then
64129 CFLAGS="$ac_save_CFLAGS"
64130 else
64131 # this is the suspicious part
64132 CFLAGS=''
64134 if test "$ac_sectionLDflags" = "yes"; then
64135 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
64137 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
64138 echo "${ECHO_T}$ac_sectionLDflags" >&6
64141 # Set linker optimization flags.
64142 if test x"$with_gnu_ld" = x"yes"; then
64143 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
64151 echo "$as_me:$LINENO: checking for main in -lm" >&5
64152 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
64153 if test "${ac_cv_lib_m_main+set}" = set; then
64154 echo $ECHO_N "(cached) $ECHO_C" >&6
64155 else
64156 ac_check_lib_save_LIBS=$LIBS
64157 LIBS="-lm $LIBS"
64158 if test x$gcc_no_link = xyes; then
64159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64161 { (exit 1); exit 1; }; }
64163 cat >conftest.$ac_ext <<_ACEOF
64164 /* confdefs.h. */
64165 _ACEOF
64166 cat confdefs.h >>conftest.$ac_ext
64167 cat >>conftest.$ac_ext <<_ACEOF
64168 /* end confdefs.h. */
64172 main ()
64174 main ();
64176 return 0;
64178 _ACEOF
64179 rm -f conftest.$ac_objext conftest$ac_exeext
64180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64181 (eval $ac_link) 2>conftest.er1
64182 ac_status=$?
64183 grep -v '^ *+' conftest.er1 >conftest.err
64184 rm -f conftest.er1
64185 cat conftest.err >&5
64186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64187 (exit $ac_status); } &&
64188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64190 (eval $ac_try) 2>&5
64191 ac_status=$?
64192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64193 (exit $ac_status); }; } &&
64194 { ac_try='test -s conftest$ac_exeext'
64195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64196 (eval $ac_try) 2>&5
64197 ac_status=$?
64198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64199 (exit $ac_status); }; }; then
64200 ac_cv_lib_m_main=yes
64201 else
64202 echo "$as_me: failed program was:" >&5
64203 sed 's/^/| /' conftest.$ac_ext >&5
64205 ac_cv_lib_m_main=no
64207 rm -f conftest.err conftest.$ac_objext \
64208 conftest$ac_exeext conftest.$ac_ext
64209 LIBS=$ac_check_lib_save_LIBS
64211 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
64212 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
64213 if test $ac_cv_lib_m_main = yes; then
64214 cat >>confdefs.h <<_ACEOF
64215 #define HAVE_LIBM 1
64216 _ACEOF
64218 LIBS="-lm $LIBS"
64224 for ac_func in nan copysignf
64226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64227 echo "$as_me:$LINENO: checking for $ac_func" >&5
64228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64229 if eval "test \"\${$as_ac_var+set}\" = set"; then
64230 echo $ECHO_N "(cached) $ECHO_C" >&6
64231 else
64232 if test x$gcc_no_link = xyes; then
64233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64235 { (exit 1); exit 1; }; }
64237 cat >conftest.$ac_ext <<_ACEOF
64238 /* confdefs.h. */
64239 _ACEOF
64240 cat confdefs.h >>conftest.$ac_ext
64241 cat >>conftest.$ac_ext <<_ACEOF
64242 /* end confdefs.h. */
64243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64245 #define $ac_func innocuous_$ac_func
64247 /* System header to define __stub macros and hopefully few prototypes,
64248 which can conflict with char $ac_func (); below.
64249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64250 <limits.h> exists even on freestanding compilers. */
64252 #ifdef __STDC__
64253 # include <limits.h>
64254 #else
64255 # include <assert.h>
64256 #endif
64258 #undef $ac_func
64260 /* Override any gcc2 internal prototype to avoid an error. */
64261 #ifdef __cplusplus
64262 extern "C"
64264 #endif
64265 /* We use char because int might match the return type of a gcc2
64266 builtin and then its argument prototype would still apply. */
64267 char $ac_func ();
64268 /* The GNU C library defines this for functions which it implements
64269 to always fail with ENOSYS. Some functions are actually named
64270 something starting with __ and the normal name is an alias. */
64271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64272 choke me
64273 #else
64274 char (*f) () = $ac_func;
64275 #endif
64276 #ifdef __cplusplus
64278 #endif
64281 main ()
64283 return f != $ac_func;
64285 return 0;
64287 _ACEOF
64288 rm -f conftest.$ac_objext conftest$ac_exeext
64289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64290 (eval $ac_link) 2>conftest.er1
64291 ac_status=$?
64292 grep -v '^ *+' conftest.er1 >conftest.err
64293 rm -f conftest.er1
64294 cat conftest.err >&5
64295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64296 (exit $ac_status); } &&
64297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64299 (eval $ac_try) 2>&5
64300 ac_status=$?
64301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64302 (exit $ac_status); }; } &&
64303 { ac_try='test -s conftest$ac_exeext'
64304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64305 (eval $ac_try) 2>&5
64306 ac_status=$?
64307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64308 (exit $ac_status); }; }; then
64309 eval "$as_ac_var=yes"
64310 else
64311 echo "$as_me: failed program was:" >&5
64312 sed 's/^/| /' conftest.$ac_ext >&5
64314 eval "$as_ac_var=no"
64316 rm -f conftest.err conftest.$ac_objext \
64317 conftest$ac_exeext conftest.$ac_ext
64319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64321 if test `eval echo '${'$as_ac_var'}'` = yes; then
64322 cat >>confdefs.h <<_ACEOF
64323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64324 _ACEOF
64326 else
64327 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
64329 done
64333 for ac_func in __signbit
64335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64336 echo "$as_me:$LINENO: checking for $ac_func" >&5
64337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64338 if eval "test \"\${$as_ac_var+set}\" = set"; then
64339 echo $ECHO_N "(cached) $ECHO_C" >&6
64340 else
64341 if test x$gcc_no_link = xyes; then
64342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64344 { (exit 1); exit 1; }; }
64346 cat >conftest.$ac_ext <<_ACEOF
64347 /* confdefs.h. */
64348 _ACEOF
64349 cat confdefs.h >>conftest.$ac_ext
64350 cat >>conftest.$ac_ext <<_ACEOF
64351 /* end confdefs.h. */
64352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64354 #define $ac_func innocuous_$ac_func
64356 /* System header to define __stub macros and hopefully few prototypes,
64357 which can conflict with char $ac_func (); below.
64358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64359 <limits.h> exists even on freestanding compilers. */
64361 #ifdef __STDC__
64362 # include <limits.h>
64363 #else
64364 # include <assert.h>
64365 #endif
64367 #undef $ac_func
64369 /* Override any gcc2 internal prototype to avoid an error. */
64370 #ifdef __cplusplus
64371 extern "C"
64373 #endif
64374 /* We use char because int might match the return type of a gcc2
64375 builtin and then its argument prototype would still apply. */
64376 char $ac_func ();
64377 /* The GNU C library defines this for functions which it implements
64378 to always fail with ENOSYS. Some functions are actually named
64379 something starting with __ and the normal name is an alias. */
64380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64381 choke me
64382 #else
64383 char (*f) () = $ac_func;
64384 #endif
64385 #ifdef __cplusplus
64387 #endif
64390 main ()
64392 return f != $ac_func;
64394 return 0;
64396 _ACEOF
64397 rm -f conftest.$ac_objext conftest$ac_exeext
64398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64399 (eval $ac_link) 2>conftest.er1
64400 ac_status=$?
64401 grep -v '^ *+' conftest.er1 >conftest.err
64402 rm -f conftest.er1
64403 cat conftest.err >&5
64404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64405 (exit $ac_status); } &&
64406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64408 (eval $ac_try) 2>&5
64409 ac_status=$?
64410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64411 (exit $ac_status); }; } &&
64412 { ac_try='test -s conftest$ac_exeext'
64413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64414 (eval $ac_try) 2>&5
64415 ac_status=$?
64416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64417 (exit $ac_status); }; }; then
64418 eval "$as_ac_var=yes"
64419 else
64420 echo "$as_me: failed program was:" >&5
64421 sed 's/^/| /' conftest.$ac_ext >&5
64423 eval "$as_ac_var=no"
64425 rm -f conftest.err conftest.$ac_objext \
64426 conftest$ac_exeext conftest.$ac_ext
64428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64430 if test `eval echo '${'$as_ac_var'}'` = yes; then
64431 cat >>confdefs.h <<_ACEOF
64432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64433 _ACEOF
64435 else
64436 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
64438 done
64441 for ac_func in __signbitf
64443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64444 echo "$as_me:$LINENO: checking for $ac_func" >&5
64445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64446 if eval "test \"\${$as_ac_var+set}\" = set"; then
64447 echo $ECHO_N "(cached) $ECHO_C" >&6
64448 else
64449 if test x$gcc_no_link = xyes; then
64450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64452 { (exit 1); exit 1; }; }
64454 cat >conftest.$ac_ext <<_ACEOF
64455 /* confdefs.h. */
64456 _ACEOF
64457 cat confdefs.h >>conftest.$ac_ext
64458 cat >>conftest.$ac_ext <<_ACEOF
64459 /* end confdefs.h. */
64460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64462 #define $ac_func innocuous_$ac_func
64464 /* System header to define __stub macros and hopefully few prototypes,
64465 which can conflict with char $ac_func (); below.
64466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64467 <limits.h> exists even on freestanding compilers. */
64469 #ifdef __STDC__
64470 # include <limits.h>
64471 #else
64472 # include <assert.h>
64473 #endif
64475 #undef $ac_func
64477 /* Override any gcc2 internal prototype to avoid an error. */
64478 #ifdef __cplusplus
64479 extern "C"
64481 #endif
64482 /* We use char because int might match the return type of a gcc2
64483 builtin and then its argument prototype would still apply. */
64484 char $ac_func ();
64485 /* The GNU C library defines this for functions which it implements
64486 to always fail with ENOSYS. Some functions are actually named
64487 something starting with __ and the normal name is an alias. */
64488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64489 choke me
64490 #else
64491 char (*f) () = $ac_func;
64492 #endif
64493 #ifdef __cplusplus
64495 #endif
64498 main ()
64500 return f != $ac_func;
64502 return 0;
64504 _ACEOF
64505 rm -f conftest.$ac_objext conftest$ac_exeext
64506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64507 (eval $ac_link) 2>conftest.er1
64508 ac_status=$?
64509 grep -v '^ *+' conftest.er1 >conftest.err
64510 rm -f conftest.er1
64511 cat conftest.err >&5
64512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64513 (exit $ac_status); } &&
64514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64516 (eval $ac_try) 2>&5
64517 ac_status=$?
64518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64519 (exit $ac_status); }; } &&
64520 { ac_try='test -s conftest$ac_exeext'
64521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64522 (eval $ac_try) 2>&5
64523 ac_status=$?
64524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64525 (exit $ac_status); }; }; then
64526 eval "$as_ac_var=yes"
64527 else
64528 echo "$as_me: failed program was:" >&5
64529 sed 's/^/| /' conftest.$ac_ext >&5
64531 eval "$as_ac_var=no"
64533 rm -f conftest.err conftest.$ac_objext \
64534 conftest$ac_exeext conftest.$ac_ext
64536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64538 if test `eval echo '${'$as_ac_var'}'` = yes; then
64539 cat >>confdefs.h <<_ACEOF
64540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64541 _ACEOF
64543 else
64544 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
64546 done
64549 if test x$ac_cv_func_copysignl = x"yes"; then
64551 for ac_func in __signbitl
64553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64554 echo "$as_me:$LINENO: checking for $ac_func" >&5
64555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64556 if eval "test \"\${$as_ac_var+set}\" = set"; then
64557 echo $ECHO_N "(cached) $ECHO_C" >&6
64558 else
64559 if test x$gcc_no_link = xyes; then
64560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64562 { (exit 1); exit 1; }; }
64564 cat >conftest.$ac_ext <<_ACEOF
64565 /* confdefs.h. */
64566 _ACEOF
64567 cat confdefs.h >>conftest.$ac_ext
64568 cat >>conftest.$ac_ext <<_ACEOF
64569 /* end confdefs.h. */
64570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64572 #define $ac_func innocuous_$ac_func
64574 /* System header to define __stub macros and hopefully few prototypes,
64575 which can conflict with char $ac_func (); below.
64576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64577 <limits.h> exists even on freestanding compilers. */
64579 #ifdef __STDC__
64580 # include <limits.h>
64581 #else
64582 # include <assert.h>
64583 #endif
64585 #undef $ac_func
64587 /* Override any gcc2 internal prototype to avoid an error. */
64588 #ifdef __cplusplus
64589 extern "C"
64591 #endif
64592 /* We use char because int might match the return type of a gcc2
64593 builtin and then its argument prototype would still apply. */
64594 char $ac_func ();
64595 /* The GNU C library defines this for functions which it implements
64596 to always fail with ENOSYS. Some functions are actually named
64597 something starting with __ and the normal name is an alias. */
64598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64599 choke me
64600 #else
64601 char (*f) () = $ac_func;
64602 #endif
64603 #ifdef __cplusplus
64605 #endif
64608 main ()
64610 return f != $ac_func;
64612 return 0;
64614 _ACEOF
64615 rm -f conftest.$ac_objext conftest$ac_exeext
64616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64617 (eval $ac_link) 2>conftest.er1
64618 ac_status=$?
64619 grep -v '^ *+' conftest.er1 >conftest.err
64620 rm -f conftest.er1
64621 cat conftest.err >&5
64622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64623 (exit $ac_status); } &&
64624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64626 (eval $ac_try) 2>&5
64627 ac_status=$?
64628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64629 (exit $ac_status); }; } &&
64630 { ac_try='test -s conftest$ac_exeext'
64631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64632 (eval $ac_try) 2>&5
64633 ac_status=$?
64634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64635 (exit $ac_status); }; }; then
64636 eval "$as_ac_var=yes"
64637 else
64638 echo "$as_me: failed program was:" >&5
64639 sed 's/^/| /' conftest.$ac_ext >&5
64641 eval "$as_ac_var=no"
64643 rm -f conftest.err conftest.$ac_objext \
64644 conftest$ac_exeext conftest.$ac_ext
64646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64648 if test `eval echo '${'$as_ac_var'}'` = yes; then
64649 cat >>confdefs.h <<_ACEOF
64650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64651 _ACEOF
64653 else
64654 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
64656 done
64660 # XXX Review this. Nothing uses it.
64661 if test -n "$LIBMATHOBJS"; then
64662 need_libmath=yes
64667 # Test wchar.h for mbstate_t, which is needed for char_traits and
64668 # others even if wchar_t support is not on.
64669 echo "$as_me:$LINENO: checking for mbstate_t" >&5
64670 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
64671 cat >conftest.$ac_ext <<_ACEOF
64672 /* confdefs.h. */
64673 _ACEOF
64674 cat confdefs.h >>conftest.$ac_ext
64675 cat >>conftest.$ac_ext <<_ACEOF
64676 /* end confdefs.h. */
64677 #include <wchar.h>
64679 main ()
64681 mbstate_t teststate;
64683 return 0;
64685 _ACEOF
64686 rm -f conftest.$ac_objext
64687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64688 (eval $ac_compile) 2>conftest.er1
64689 ac_status=$?
64690 grep -v '^ *+' conftest.er1 >conftest.err
64691 rm -f conftest.er1
64692 cat conftest.err >&5
64693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64694 (exit $ac_status); } &&
64695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64697 (eval $ac_try) 2>&5
64698 ac_status=$?
64699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64700 (exit $ac_status); }; } &&
64701 { ac_try='test -s conftest.$ac_objext'
64702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64703 (eval $ac_try) 2>&5
64704 ac_status=$?
64705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64706 (exit $ac_status); }; }; then
64707 have_mbstate_t=yes
64708 else
64709 echo "$as_me: failed program was:" >&5
64710 sed 's/^/| /' conftest.$ac_ext >&5
64712 have_mbstate_t=no
64714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64715 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
64716 echo "${ECHO_T}$have_mbstate_t" >&6
64717 if test x"$have_mbstate_t" = xyes; then
64718 cat >>confdefs.h <<\_ACEOF
64719 #define HAVE_MBSTATE_T 1
64720 _ACEOF
64724 # Sanity check for existence of ISO C99 headers for extended encoding.
64726 for ac_header in wchar.h
64728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64730 echo "$as_me:$LINENO: checking for $ac_header" >&5
64731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64733 echo $ECHO_N "(cached) $ECHO_C" >&6
64735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64737 else
64738 # Is the header compilable?
64739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64741 cat >conftest.$ac_ext <<_ACEOF
64742 /* confdefs.h. */
64743 _ACEOF
64744 cat confdefs.h >>conftest.$ac_ext
64745 cat >>conftest.$ac_ext <<_ACEOF
64746 /* end confdefs.h. */
64747 $ac_includes_default
64748 #include <$ac_header>
64749 _ACEOF
64750 rm -f conftest.$ac_objext
64751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64752 (eval $ac_compile) 2>conftest.er1
64753 ac_status=$?
64754 grep -v '^ *+' conftest.er1 >conftest.err
64755 rm -f conftest.er1
64756 cat conftest.err >&5
64757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64758 (exit $ac_status); } &&
64759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64761 (eval $ac_try) 2>&5
64762 ac_status=$?
64763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64764 (exit $ac_status); }; } &&
64765 { ac_try='test -s conftest.$ac_objext'
64766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64767 (eval $ac_try) 2>&5
64768 ac_status=$?
64769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64770 (exit $ac_status); }; }; then
64771 ac_header_compiler=yes
64772 else
64773 echo "$as_me: failed program was:" >&5
64774 sed 's/^/| /' conftest.$ac_ext >&5
64776 ac_header_compiler=no
64778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64780 echo "${ECHO_T}$ac_header_compiler" >&6
64782 # Is the header present?
64783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64785 cat >conftest.$ac_ext <<_ACEOF
64786 /* confdefs.h. */
64787 _ACEOF
64788 cat confdefs.h >>conftest.$ac_ext
64789 cat >>conftest.$ac_ext <<_ACEOF
64790 /* end confdefs.h. */
64791 #include <$ac_header>
64792 _ACEOF
64793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64795 ac_status=$?
64796 grep -v '^ *+' conftest.er1 >conftest.err
64797 rm -f conftest.er1
64798 cat conftest.err >&5
64799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64800 (exit $ac_status); } >/dev/null; then
64801 if test -s conftest.err; then
64802 ac_cpp_err=$ac_c_preproc_warn_flag
64803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64804 else
64805 ac_cpp_err=
64807 else
64808 ac_cpp_err=yes
64810 if test -z "$ac_cpp_err"; then
64811 ac_header_preproc=yes
64812 else
64813 echo "$as_me: failed program was:" >&5
64814 sed 's/^/| /' conftest.$ac_ext >&5
64816 ac_header_preproc=no
64818 rm -f conftest.err conftest.$ac_ext
64819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64820 echo "${ECHO_T}$ac_header_preproc" >&6
64822 # So? What about this header?
64823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64824 yes:no: )
64825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64829 ac_header_preproc=yes
64831 no:yes:* )
64832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64845 cat <<\_ASBOX
64846 ## ----------------------------------------- ##
64847 ## Report this to the package-unused lists. ##
64848 ## ----------------------------------------- ##
64849 _ASBOX
64851 sed "s/^/$as_me: WARNING: /" >&2
64853 esac
64854 echo "$as_me:$LINENO: checking for $ac_header" >&5
64855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64857 echo $ECHO_N "(cached) $ECHO_C" >&6
64858 else
64859 eval "$as_ac_Header=\$ac_header_preproc"
64861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64866 cat >>confdefs.h <<_ACEOF
64867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64868 _ACEOF
64869 ac_has_wchar_h=yes
64870 else
64871 ac_has_wchar_h=no
64874 done
64877 for ac_header in wctype.h
64879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64881 echo "$as_me:$LINENO: checking for $ac_header" >&5
64882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64884 echo $ECHO_N "(cached) $ECHO_C" >&6
64886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64888 else
64889 # Is the header compilable?
64890 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64892 cat >conftest.$ac_ext <<_ACEOF
64893 /* confdefs.h. */
64894 _ACEOF
64895 cat confdefs.h >>conftest.$ac_ext
64896 cat >>conftest.$ac_ext <<_ACEOF
64897 /* end confdefs.h. */
64898 $ac_includes_default
64899 #include <$ac_header>
64900 _ACEOF
64901 rm -f conftest.$ac_objext
64902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64903 (eval $ac_compile) 2>conftest.er1
64904 ac_status=$?
64905 grep -v '^ *+' conftest.er1 >conftest.err
64906 rm -f conftest.er1
64907 cat conftest.err >&5
64908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64909 (exit $ac_status); } &&
64910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64912 (eval $ac_try) 2>&5
64913 ac_status=$?
64914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64915 (exit $ac_status); }; } &&
64916 { ac_try='test -s conftest.$ac_objext'
64917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64918 (eval $ac_try) 2>&5
64919 ac_status=$?
64920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64921 (exit $ac_status); }; }; then
64922 ac_header_compiler=yes
64923 else
64924 echo "$as_me: failed program was:" >&5
64925 sed 's/^/| /' conftest.$ac_ext >&5
64927 ac_header_compiler=no
64929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64931 echo "${ECHO_T}$ac_header_compiler" >&6
64933 # Is the header present?
64934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64936 cat >conftest.$ac_ext <<_ACEOF
64937 /* confdefs.h. */
64938 _ACEOF
64939 cat confdefs.h >>conftest.$ac_ext
64940 cat >>conftest.$ac_ext <<_ACEOF
64941 /* end confdefs.h. */
64942 #include <$ac_header>
64943 _ACEOF
64944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64946 ac_status=$?
64947 grep -v '^ *+' conftest.er1 >conftest.err
64948 rm -f conftest.er1
64949 cat conftest.err >&5
64950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64951 (exit $ac_status); } >/dev/null; then
64952 if test -s conftest.err; then
64953 ac_cpp_err=$ac_c_preproc_warn_flag
64954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64955 else
64956 ac_cpp_err=
64958 else
64959 ac_cpp_err=yes
64961 if test -z "$ac_cpp_err"; then
64962 ac_header_preproc=yes
64963 else
64964 echo "$as_me: failed program was:" >&5
64965 sed 's/^/| /' conftest.$ac_ext >&5
64967 ac_header_preproc=no
64969 rm -f conftest.err conftest.$ac_ext
64970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64971 echo "${ECHO_T}$ac_header_preproc" >&6
64973 # So? What about this header?
64974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64975 yes:no: )
64976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64980 ac_header_preproc=yes
64982 no:yes:* )
64983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64996 cat <<\_ASBOX
64997 ## ----------------------------------------- ##
64998 ## Report this to the package-unused lists. ##
64999 ## ----------------------------------------- ##
65000 _ASBOX
65002 sed "s/^/$as_me: WARNING: /" >&2
65004 esac
65005 echo "$as_me:$LINENO: checking for $ac_header" >&5
65006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
65007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
65008 echo $ECHO_N "(cached) $ECHO_C" >&6
65009 else
65010 eval "$as_ac_Header=\$ac_header_preproc"
65012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
65013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
65016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
65017 cat >>confdefs.h <<_ACEOF
65018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
65019 _ACEOF
65020 ac_has_wctype_h=yes
65021 else
65022 ac_has_wctype_h=no
65025 done
65028 # Only continue checking if the ISO C99 headers exist and support is on.
65029 if test x"$ac_has_wchar_h" = xyes &&
65030 test x"$ac_has_wctype_h" = xyes &&
65031 test x"$enable_c_mbchar" != xno; then
65033 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
65034 # numeric_limits can instantiate type_traits<wchar_t>
65035 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
65036 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
65037 cat >conftest.$ac_ext <<_ACEOF
65038 /* confdefs.h. */
65039 _ACEOF
65040 cat confdefs.h >>conftest.$ac_ext
65041 cat >>conftest.$ac_ext <<_ACEOF
65042 /* end confdefs.h. */
65043 #include <wchar.h>
65045 main ()
65047 int i = WCHAR_MIN; int j = WCHAR_MAX;
65049 return 0;
65051 _ACEOF
65052 rm -f conftest.$ac_objext
65053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65054 (eval $ac_compile) 2>conftest.er1
65055 ac_status=$?
65056 grep -v '^ *+' conftest.er1 >conftest.err
65057 rm -f conftest.er1
65058 cat conftest.err >&5
65059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65060 (exit $ac_status); } &&
65061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65063 (eval $ac_try) 2>&5
65064 ac_status=$?
65065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65066 (exit $ac_status); }; } &&
65067 { ac_try='test -s conftest.$ac_objext'
65068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65069 (eval $ac_try) 2>&5
65070 ac_status=$?
65071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65072 (exit $ac_status); }; }; then
65073 has_wchar_minmax=yes
65074 else
65075 echo "$as_me: failed program was:" >&5
65076 sed 's/^/| /' conftest.$ac_ext >&5
65078 has_wchar_minmax=no
65080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65081 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
65082 echo "${ECHO_T}$has_wchar_minmax" >&6
65084 # Test wchar.h for WEOF, which is what we use to determine whether
65085 # to specialize for char_traits<wchar_t> or not.
65086 echo "$as_me:$LINENO: checking for WEOF" >&5
65087 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
65088 cat >conftest.$ac_ext <<_ACEOF
65089 /* confdefs.h. */
65090 _ACEOF
65091 cat confdefs.h >>conftest.$ac_ext
65092 cat >>conftest.$ac_ext <<_ACEOF
65093 /* end confdefs.h. */
65095 #include <wchar.h>
65096 #include <stddef.h>
65098 main ()
65100 wint_t i = WEOF;
65102 return 0;
65104 _ACEOF
65105 rm -f conftest.$ac_objext
65106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65107 (eval $ac_compile) 2>conftest.er1
65108 ac_status=$?
65109 grep -v '^ *+' conftest.er1 >conftest.err
65110 rm -f conftest.er1
65111 cat conftest.err >&5
65112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65113 (exit $ac_status); } &&
65114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65116 (eval $ac_try) 2>&5
65117 ac_status=$?
65118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65119 (exit $ac_status); }; } &&
65120 { ac_try='test -s conftest.$ac_objext'
65121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65122 (eval $ac_try) 2>&5
65123 ac_status=$?
65124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65125 (exit $ac_status); }; }; then
65126 has_weof=yes
65127 else
65128 echo "$as_me: failed program was:" >&5
65129 sed 's/^/| /' conftest.$ac_ext >&5
65131 has_weof=no
65133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65134 echo "$as_me:$LINENO: result: $has_weof" >&5
65135 echo "${ECHO_T}$has_weof" >&6
65137 # Tests for wide character functions used in char_traits<wchar_t>.
65138 ac_wfuncs=yes
65145 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
65147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65148 echo "$as_me:$LINENO: checking for $ac_func" >&5
65149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65150 if eval "test \"\${$as_ac_var+set}\" = set"; then
65151 echo $ECHO_N "(cached) $ECHO_C" >&6
65152 else
65153 if test x$gcc_no_link = xyes; then
65154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65156 { (exit 1); exit 1; }; }
65158 cat >conftest.$ac_ext <<_ACEOF
65159 /* confdefs.h. */
65160 _ACEOF
65161 cat confdefs.h >>conftest.$ac_ext
65162 cat >>conftest.$ac_ext <<_ACEOF
65163 /* end confdefs.h. */
65164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65166 #define $ac_func innocuous_$ac_func
65168 /* System header to define __stub macros and hopefully few prototypes,
65169 which can conflict with char $ac_func (); below.
65170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65171 <limits.h> exists even on freestanding compilers. */
65173 #ifdef __STDC__
65174 # include <limits.h>
65175 #else
65176 # include <assert.h>
65177 #endif
65179 #undef $ac_func
65181 /* Override any gcc2 internal prototype to avoid an error. */
65182 #ifdef __cplusplus
65183 extern "C"
65185 #endif
65186 /* We use char because int might match the return type of a gcc2
65187 builtin and then its argument prototype would still apply. */
65188 char $ac_func ();
65189 /* The GNU C library defines this for functions which it implements
65190 to always fail with ENOSYS. Some functions are actually named
65191 something starting with __ and the normal name is an alias. */
65192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65193 choke me
65194 #else
65195 char (*f) () = $ac_func;
65196 #endif
65197 #ifdef __cplusplus
65199 #endif
65202 main ()
65204 return f != $ac_func;
65206 return 0;
65208 _ACEOF
65209 rm -f conftest.$ac_objext conftest$ac_exeext
65210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65211 (eval $ac_link) 2>conftest.er1
65212 ac_status=$?
65213 grep -v '^ *+' conftest.er1 >conftest.err
65214 rm -f conftest.er1
65215 cat conftest.err >&5
65216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65217 (exit $ac_status); } &&
65218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65220 (eval $ac_try) 2>&5
65221 ac_status=$?
65222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65223 (exit $ac_status); }; } &&
65224 { ac_try='test -s conftest$ac_exeext'
65225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65226 (eval $ac_try) 2>&5
65227 ac_status=$?
65228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65229 (exit $ac_status); }; }; then
65230 eval "$as_ac_var=yes"
65231 else
65232 echo "$as_me: failed program was:" >&5
65233 sed 's/^/| /' conftest.$ac_ext >&5
65235 eval "$as_ac_var=no"
65237 rm -f conftest.err conftest.$ac_objext \
65238 conftest$ac_exeext conftest.$ac_ext
65240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65242 if test `eval echo '${'$as_ac_var'}'` = yes; then
65243 cat >>confdefs.h <<_ACEOF
65244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65245 _ACEOF
65247 else
65248 ac_wfuncs=no
65250 done
65253 # Checks for names injected into std:: by the c_std headers.
65300 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
65301 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
65302 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
65303 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
65304 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
65305 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
65307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65308 echo "$as_me:$LINENO: checking for $ac_func" >&5
65309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65310 if eval "test \"\${$as_ac_var+set}\" = set"; then
65311 echo $ECHO_N "(cached) $ECHO_C" >&6
65312 else
65313 if test x$gcc_no_link = xyes; then
65314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65316 { (exit 1); exit 1; }; }
65318 cat >conftest.$ac_ext <<_ACEOF
65319 /* confdefs.h. */
65320 _ACEOF
65321 cat confdefs.h >>conftest.$ac_ext
65322 cat >>conftest.$ac_ext <<_ACEOF
65323 /* end confdefs.h. */
65324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65326 #define $ac_func innocuous_$ac_func
65328 /* System header to define __stub macros and hopefully few prototypes,
65329 which can conflict with char $ac_func (); below.
65330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65331 <limits.h> exists even on freestanding compilers. */
65333 #ifdef __STDC__
65334 # include <limits.h>
65335 #else
65336 # include <assert.h>
65337 #endif
65339 #undef $ac_func
65341 /* Override any gcc2 internal prototype to avoid an error. */
65342 #ifdef __cplusplus
65343 extern "C"
65345 #endif
65346 /* We use char because int might match the return type of a gcc2
65347 builtin and then its argument prototype would still apply. */
65348 char $ac_func ();
65349 /* The GNU C library defines this for functions which it implements
65350 to always fail with ENOSYS. Some functions are actually named
65351 something starting with __ and the normal name is an alias. */
65352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65353 choke me
65354 #else
65355 char (*f) () = $ac_func;
65356 #endif
65357 #ifdef __cplusplus
65359 #endif
65362 main ()
65364 return f != $ac_func;
65366 return 0;
65368 _ACEOF
65369 rm -f conftest.$ac_objext conftest$ac_exeext
65370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65371 (eval $ac_link) 2>conftest.er1
65372 ac_status=$?
65373 grep -v '^ *+' conftest.er1 >conftest.err
65374 rm -f conftest.er1
65375 cat conftest.err >&5
65376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65377 (exit $ac_status); } &&
65378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65380 (eval $ac_try) 2>&5
65381 ac_status=$?
65382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65383 (exit $ac_status); }; } &&
65384 { ac_try='test -s conftest$ac_exeext'
65385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65386 (eval $ac_try) 2>&5
65387 ac_status=$?
65388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65389 (exit $ac_status); }; }; then
65390 eval "$as_ac_var=yes"
65391 else
65392 echo "$as_me: failed program was:" >&5
65393 sed 's/^/| /' conftest.$ac_ext >&5
65395 eval "$as_ac_var=no"
65397 rm -f conftest.err conftest.$ac_objext \
65398 conftest$ac_exeext conftest.$ac_ext
65400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65402 if test `eval echo '${'$as_ac_var'}'` = yes; then
65403 cat >>confdefs.h <<_ACEOF
65404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65405 _ACEOF
65407 else
65408 ac_wfuncs=no
65410 done
65413 # Checks for wide character functions that are not required
65414 # for basic wchar_t support. Don't disable support if they are missing.
65415 # Injection of these is wrapped with guard macros.
65421 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
65423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65424 echo "$as_me:$LINENO: checking for $ac_func" >&5
65425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65426 if eval "test \"\${$as_ac_var+set}\" = set"; then
65427 echo $ECHO_N "(cached) $ECHO_C" >&6
65428 else
65429 if test x$gcc_no_link = xyes; then
65430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65432 { (exit 1); exit 1; }; }
65434 cat >conftest.$ac_ext <<_ACEOF
65435 /* confdefs.h. */
65436 _ACEOF
65437 cat confdefs.h >>conftest.$ac_ext
65438 cat >>conftest.$ac_ext <<_ACEOF
65439 /* end confdefs.h. */
65440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65442 #define $ac_func innocuous_$ac_func
65444 /* System header to define __stub macros and hopefully few prototypes,
65445 which can conflict with char $ac_func (); below.
65446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65447 <limits.h> exists even on freestanding compilers. */
65449 #ifdef __STDC__
65450 # include <limits.h>
65451 #else
65452 # include <assert.h>
65453 #endif
65455 #undef $ac_func
65457 /* Override any gcc2 internal prototype to avoid an error. */
65458 #ifdef __cplusplus
65459 extern "C"
65461 #endif
65462 /* We use char because int might match the return type of a gcc2
65463 builtin and then its argument prototype would still apply. */
65464 char $ac_func ();
65465 /* The GNU C library defines this for functions which it implements
65466 to always fail with ENOSYS. Some functions are actually named
65467 something starting with __ and the normal name is an alias. */
65468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65469 choke me
65470 #else
65471 char (*f) () = $ac_func;
65472 #endif
65473 #ifdef __cplusplus
65475 #endif
65478 main ()
65480 return f != $ac_func;
65482 return 0;
65484 _ACEOF
65485 rm -f conftest.$ac_objext conftest$ac_exeext
65486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65487 (eval $ac_link) 2>conftest.er1
65488 ac_status=$?
65489 grep -v '^ *+' conftest.er1 >conftest.err
65490 rm -f conftest.er1
65491 cat conftest.err >&5
65492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65493 (exit $ac_status); } &&
65494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65496 (eval $ac_try) 2>&5
65497 ac_status=$?
65498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65499 (exit $ac_status); }; } &&
65500 { ac_try='test -s conftest$ac_exeext'
65501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65502 (eval $ac_try) 2>&5
65503 ac_status=$?
65504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65505 (exit $ac_status); }; }; then
65506 eval "$as_ac_var=yes"
65507 else
65508 echo "$as_me: failed program was:" >&5
65509 sed 's/^/| /' conftest.$ac_ext >&5
65511 eval "$as_ac_var=no"
65513 rm -f conftest.err conftest.$ac_objext \
65514 conftest$ac_exeext conftest.$ac_ext
65516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65518 if test `eval echo '${'$as_ac_var'}'` = yes; then
65519 cat >>confdefs.h <<_ACEOF
65520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65521 _ACEOF
65524 done
65527 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
65528 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
65529 if test x"$has_weof" = xyes &&
65530 test x"$has_wchar_minmax" = xyes &&
65531 test x"$ac_wfuncs" = xyes;
65532 then
65533 ac_isoC99_wchar_t=yes
65534 else
65535 ac_isoC99_wchar_t=no
65537 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
65538 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
65540 # Use iconv for wchar_t to char conversions. As such, check for
65541 # X/Open Portability Guide, version 2 features (XPG2).
65542 if test "${ac_cv_header_iconv_h+set}" = set; then
65543 echo "$as_me:$LINENO: checking for iconv.h" >&5
65544 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
65545 if test "${ac_cv_header_iconv_h+set}" = set; then
65546 echo $ECHO_N "(cached) $ECHO_C" >&6
65548 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
65549 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
65550 else
65551 # Is the header compilable?
65552 echo "$as_me:$LINENO: checking iconv.h usability" >&5
65553 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
65554 cat >conftest.$ac_ext <<_ACEOF
65555 /* confdefs.h. */
65556 _ACEOF
65557 cat confdefs.h >>conftest.$ac_ext
65558 cat >>conftest.$ac_ext <<_ACEOF
65559 /* end confdefs.h. */
65560 $ac_includes_default
65561 #include <iconv.h>
65562 _ACEOF
65563 rm -f conftest.$ac_objext
65564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65565 (eval $ac_compile) 2>conftest.er1
65566 ac_status=$?
65567 grep -v '^ *+' conftest.er1 >conftest.err
65568 rm -f conftest.er1
65569 cat conftest.err >&5
65570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65571 (exit $ac_status); } &&
65572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65574 (eval $ac_try) 2>&5
65575 ac_status=$?
65576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65577 (exit $ac_status); }; } &&
65578 { ac_try='test -s conftest.$ac_objext'
65579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65580 (eval $ac_try) 2>&5
65581 ac_status=$?
65582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65583 (exit $ac_status); }; }; then
65584 ac_header_compiler=yes
65585 else
65586 echo "$as_me: failed program was:" >&5
65587 sed 's/^/| /' conftest.$ac_ext >&5
65589 ac_header_compiler=no
65591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65593 echo "${ECHO_T}$ac_header_compiler" >&6
65595 # Is the header present?
65596 echo "$as_me:$LINENO: checking iconv.h presence" >&5
65597 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
65598 cat >conftest.$ac_ext <<_ACEOF
65599 /* confdefs.h. */
65600 _ACEOF
65601 cat confdefs.h >>conftest.$ac_ext
65602 cat >>conftest.$ac_ext <<_ACEOF
65603 /* end confdefs.h. */
65604 #include <iconv.h>
65605 _ACEOF
65606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
65607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
65608 ac_status=$?
65609 grep -v '^ *+' conftest.er1 >conftest.err
65610 rm -f conftest.er1
65611 cat conftest.err >&5
65612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65613 (exit $ac_status); } >/dev/null; then
65614 if test -s conftest.err; then
65615 ac_cpp_err=$ac_c_preproc_warn_flag
65616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65617 else
65618 ac_cpp_err=
65620 else
65621 ac_cpp_err=yes
65623 if test -z "$ac_cpp_err"; then
65624 ac_header_preproc=yes
65625 else
65626 echo "$as_me: failed program was:" >&5
65627 sed 's/^/| /' conftest.$ac_ext >&5
65629 ac_header_preproc=no
65631 rm -f conftest.err conftest.$ac_ext
65632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65633 echo "${ECHO_T}$ac_header_preproc" >&6
65635 # So? What about this header?
65636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65637 yes:no: )
65638 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
65639 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65640 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
65641 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
65642 ac_header_preproc=yes
65644 no:yes:* )
65645 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
65646 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
65647 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
65648 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
65649 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
65650 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
65651 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
65652 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
65653 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
65654 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
65655 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
65656 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
65658 cat <<\_ASBOX
65659 ## ----------------------------------------- ##
65660 ## Report this to the package-unused lists. ##
65661 ## ----------------------------------------- ##
65662 _ASBOX
65664 sed "s/^/$as_me: WARNING: /" >&2
65666 esac
65667 echo "$as_me:$LINENO: checking for iconv.h" >&5
65668 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
65669 if test "${ac_cv_header_iconv_h+set}" = set; then
65670 echo $ECHO_N "(cached) $ECHO_C" >&6
65671 else
65672 ac_cv_header_iconv_h=$ac_header_preproc
65674 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
65675 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
65678 if test $ac_cv_header_iconv_h = yes; then
65679 ac_has_iconv_h=yes
65680 else
65681 ac_has_iconv_h=no
65685 if test "${ac_cv_header_langinfo_h+set}" = set; then
65686 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65687 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65688 if test "${ac_cv_header_langinfo_h+set}" = set; then
65689 echo $ECHO_N "(cached) $ECHO_C" >&6
65691 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65692 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65693 else
65694 # Is the header compilable?
65695 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
65696 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
65697 cat >conftest.$ac_ext <<_ACEOF
65698 /* confdefs.h. */
65699 _ACEOF
65700 cat confdefs.h >>conftest.$ac_ext
65701 cat >>conftest.$ac_ext <<_ACEOF
65702 /* end confdefs.h. */
65703 $ac_includes_default
65704 #include <langinfo.h>
65705 _ACEOF
65706 rm -f conftest.$ac_objext
65707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65708 (eval $ac_compile) 2>conftest.er1
65709 ac_status=$?
65710 grep -v '^ *+' conftest.er1 >conftest.err
65711 rm -f conftest.er1
65712 cat conftest.err >&5
65713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65714 (exit $ac_status); } &&
65715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65717 (eval $ac_try) 2>&5
65718 ac_status=$?
65719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65720 (exit $ac_status); }; } &&
65721 { ac_try='test -s conftest.$ac_objext'
65722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65723 (eval $ac_try) 2>&5
65724 ac_status=$?
65725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65726 (exit $ac_status); }; }; then
65727 ac_header_compiler=yes
65728 else
65729 echo "$as_me: failed program was:" >&5
65730 sed 's/^/| /' conftest.$ac_ext >&5
65732 ac_header_compiler=no
65734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65736 echo "${ECHO_T}$ac_header_compiler" >&6
65738 # Is the header present?
65739 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
65740 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
65741 cat >conftest.$ac_ext <<_ACEOF
65742 /* confdefs.h. */
65743 _ACEOF
65744 cat confdefs.h >>conftest.$ac_ext
65745 cat >>conftest.$ac_ext <<_ACEOF
65746 /* end confdefs.h. */
65747 #include <langinfo.h>
65748 _ACEOF
65749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
65750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
65751 ac_status=$?
65752 grep -v '^ *+' conftest.er1 >conftest.err
65753 rm -f conftest.er1
65754 cat conftest.err >&5
65755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65756 (exit $ac_status); } >/dev/null; then
65757 if test -s conftest.err; then
65758 ac_cpp_err=$ac_c_preproc_warn_flag
65759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65760 else
65761 ac_cpp_err=
65763 else
65764 ac_cpp_err=yes
65766 if test -z "$ac_cpp_err"; then
65767 ac_header_preproc=yes
65768 else
65769 echo "$as_me: failed program was:" >&5
65770 sed 's/^/| /' conftest.$ac_ext >&5
65772 ac_header_preproc=no
65774 rm -f conftest.err conftest.$ac_ext
65775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65776 echo "${ECHO_T}$ac_header_preproc" >&6
65778 # So? What about this header?
65779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65780 yes:no: )
65781 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
65782 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65783 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
65784 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
65785 ac_header_preproc=yes
65787 no:yes:* )
65788 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
65789 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
65790 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
65791 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
65792 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
65793 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
65794 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
65795 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
65796 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
65797 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
65798 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
65799 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
65801 cat <<\_ASBOX
65802 ## ----------------------------------------- ##
65803 ## Report this to the package-unused lists. ##
65804 ## ----------------------------------------- ##
65805 _ASBOX
65807 sed "s/^/$as_me: WARNING: /" >&2
65809 esac
65810 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65811 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65812 if test "${ac_cv_header_langinfo_h+set}" = set; then
65813 echo $ECHO_N "(cached) $ECHO_C" >&6
65814 else
65815 ac_cv_header_langinfo_h=$ac_header_preproc
65817 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65818 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65821 if test $ac_cv_header_langinfo_h = yes; then
65822 ac_has_langinfo_h=yes
65823 else
65824 ac_has_langinfo_h=no
65829 # Check for existence of libiconv.a providing XPG2 wchar_t support.
65830 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65831 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65832 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65833 echo $ECHO_N "(cached) $ECHO_C" >&6
65834 else
65835 ac_check_lib_save_LIBS=$LIBS
65836 LIBS="-liconv $LIBS"
65837 if test x$gcc_no_link = xyes; then
65838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65840 { (exit 1); exit 1; }; }
65842 cat >conftest.$ac_ext <<_ACEOF
65843 /* confdefs.h. */
65844 _ACEOF
65845 cat confdefs.h >>conftest.$ac_ext
65846 cat >>conftest.$ac_ext <<_ACEOF
65847 /* end confdefs.h. */
65849 /* Override any gcc2 internal prototype to avoid an error. */
65850 #ifdef __cplusplus
65851 extern "C"
65852 #endif
65853 /* We use char because int might match the return type of a gcc2
65854 builtin and then its argument prototype would still apply. */
65855 char iconv ();
65857 main ()
65859 iconv ();
65861 return 0;
65863 _ACEOF
65864 rm -f conftest.$ac_objext conftest$ac_exeext
65865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65866 (eval $ac_link) 2>conftest.er1
65867 ac_status=$?
65868 grep -v '^ *+' conftest.er1 >conftest.err
65869 rm -f conftest.er1
65870 cat conftest.err >&5
65871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65872 (exit $ac_status); } &&
65873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65875 (eval $ac_try) 2>&5
65876 ac_status=$?
65877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65878 (exit $ac_status); }; } &&
65879 { ac_try='test -s conftest$ac_exeext'
65880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65881 (eval $ac_try) 2>&5
65882 ac_status=$?
65883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65884 (exit $ac_status); }; }; then
65885 ac_cv_lib_iconv_iconv=yes
65886 else
65887 echo "$as_me: failed program was:" >&5
65888 sed 's/^/| /' conftest.$ac_ext >&5
65890 ac_cv_lib_iconv_iconv=no
65892 rm -f conftest.err conftest.$ac_objext \
65893 conftest$ac_exeext conftest.$ac_ext
65894 LIBS=$ac_check_lib_save_LIBS
65896 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65897 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65898 if test $ac_cv_lib_iconv_iconv = yes; then
65899 libiconv="-liconv"
65902 ac_save_LIBS="$LIBS"
65903 LIBS="$LIBS $libiconv"
65909 for ac_func in iconv_open iconv_close iconv nl_langinfo
65911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65912 echo "$as_me:$LINENO: checking for $ac_func" >&5
65913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65914 if eval "test \"\${$as_ac_var+set}\" = set"; then
65915 echo $ECHO_N "(cached) $ECHO_C" >&6
65916 else
65917 if test x$gcc_no_link = xyes; then
65918 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65919 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65920 { (exit 1); exit 1; }; }
65922 cat >conftest.$ac_ext <<_ACEOF
65923 /* confdefs.h. */
65924 _ACEOF
65925 cat confdefs.h >>conftest.$ac_ext
65926 cat >>conftest.$ac_ext <<_ACEOF
65927 /* end confdefs.h. */
65928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65930 #define $ac_func innocuous_$ac_func
65932 /* System header to define __stub macros and hopefully few prototypes,
65933 which can conflict with char $ac_func (); below.
65934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65935 <limits.h> exists even on freestanding compilers. */
65937 #ifdef __STDC__
65938 # include <limits.h>
65939 #else
65940 # include <assert.h>
65941 #endif
65943 #undef $ac_func
65945 /* Override any gcc2 internal prototype to avoid an error. */
65946 #ifdef __cplusplus
65947 extern "C"
65949 #endif
65950 /* We use char because int might match the return type of a gcc2
65951 builtin and then its argument prototype would still apply. */
65952 char $ac_func ();
65953 /* The GNU C library defines this for functions which it implements
65954 to always fail with ENOSYS. Some functions are actually named
65955 something starting with __ and the normal name is an alias. */
65956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65957 choke me
65958 #else
65959 char (*f) () = $ac_func;
65960 #endif
65961 #ifdef __cplusplus
65963 #endif
65966 main ()
65968 return f != $ac_func;
65970 return 0;
65972 _ACEOF
65973 rm -f conftest.$ac_objext conftest$ac_exeext
65974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65975 (eval $ac_link) 2>conftest.er1
65976 ac_status=$?
65977 grep -v '^ *+' conftest.er1 >conftest.err
65978 rm -f conftest.er1
65979 cat conftest.err >&5
65980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65981 (exit $ac_status); } &&
65982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
65983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65984 (eval $ac_try) 2>&5
65985 ac_status=$?
65986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65987 (exit $ac_status); }; } &&
65988 { ac_try='test -s conftest$ac_exeext'
65989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65990 (eval $ac_try) 2>&5
65991 ac_status=$?
65992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65993 (exit $ac_status); }; }; then
65994 eval "$as_ac_var=yes"
65995 else
65996 echo "$as_me: failed program was:" >&5
65997 sed 's/^/| /' conftest.$ac_ext >&5
65999 eval "$as_ac_var=no"
66001 rm -f conftest.err conftest.$ac_objext \
66002 conftest$ac_exeext conftest.$ac_ext
66004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66006 if test `eval echo '${'$as_ac_var'}'` = yes; then
66007 cat >>confdefs.h <<_ACEOF
66008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66009 _ACEOF
66010 ac_XPG2funcs=yes
66011 else
66012 ac_XPG2funcs=no
66014 done
66017 LIBS="$ac_save_LIBS"
66019 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
66020 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
66021 if test x"$ac_has_iconv_h" = xyes &&
66022 test x"$ac_has_langinfo_h" = xyes &&
66023 test x"$ac_XPG2funcs" = xyes;
66024 then
66025 ac_XPG2_wchar_t=yes
66026 else
66027 ac_XPG2_wchar_t=no
66029 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
66030 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
66032 # At the moment, only enable wchar_t specializations if all the
66033 # above support is present.
66034 if test x"$ac_isoC99_wchar_t" = xyes &&
66035 test x"$ac_XPG2_wchar_t" = xyes;
66036 then
66037 cat >>confdefs.h <<\_ACEOF
66038 #define _GLIBCXX_USE_WCHAR_T 1
66039 _ACEOF
66041 enable_wchar_t=yes
66044 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
66045 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
66046 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
66047 echo "${ECHO_T}$enable_wchar_t" >&6
66049 cat >>confdefs.h <<\_ACEOF
66050 #define HAVE_COSF 1
66051 _ACEOF
66053 cat >>confdefs.h <<\_ACEOF
66054 #define HAVE_COSL 1
66055 _ACEOF
66057 cat >>confdefs.h <<\_ACEOF
66058 #define HAVE_COSHF 1
66059 _ACEOF
66061 cat >>confdefs.h <<\_ACEOF
66062 #define HAVE_COSHL 1
66063 _ACEOF
66065 cat >>confdefs.h <<\_ACEOF
66066 #define HAVE_LOGF 1
66067 _ACEOF
66069 cat >>confdefs.h <<\_ACEOF
66070 #define HAVE_LOGL 1
66071 _ACEOF
66073 cat >>confdefs.h <<\_ACEOF
66074 #define HAVE_LOG10F 1
66075 _ACEOF
66077 cat >>confdefs.h <<\_ACEOF
66078 #define HAVE_LOG10L 1
66079 _ACEOF
66081 cat >>confdefs.h <<\_ACEOF
66082 #define HAVE_SINF 1
66083 _ACEOF
66085 cat >>confdefs.h <<\_ACEOF
66086 #define HAVE_SINL 1
66087 _ACEOF
66089 cat >>confdefs.h <<\_ACEOF
66090 #define HAVE_SINHF 1
66091 _ACEOF
66093 cat >>confdefs.h <<\_ACEOF
66094 #define HAVE_SINHL 1
66095 _ACEOF
66098 *-solaris*)
66099 case "$target" in
66100 # *-solaris2.5)
66101 # os_include_dir="os/solaris/solaris2.5"
66102 # ;;
66103 # *-solaris2.6)
66104 # os_include_dir="os/solaris/solaris2.6"
66105 # ;;
66106 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
66107 cat >>confdefs.h <<\_ACEOF
66108 #define HAVE_GETPAGESIZE 1
66109 _ACEOF
66111 cat >>confdefs.h <<\_ACEOF
66112 #define HAVE_SIGSETJMP 1
66113 _ACEOF
66115 cat >>confdefs.h <<\_ACEOF
66116 #define HAVE_MBSTATE_T 1
66117 _ACEOF
66119 cat >>confdefs.h <<\_ACEOF
66120 #define HAVE_POLL 1
66121 _ACEOF
66123 cat >>confdefs.h <<\_ACEOF
66124 #define HAVE_S_ISREG 1
66125 _ACEOF
66127 cat >>confdefs.h <<\_ACEOF
66128 #define HAVE_LC_MESSAGES 1
66129 _ACEOF
66131 cat >>confdefs.h <<\_ACEOF
66132 #define HAVE_BTOWC 1
66133 _ACEOF
66135 cat >>confdefs.h <<\_ACEOF
66136 #define HAVE_FGETWC 1
66137 _ACEOF
66139 cat >>confdefs.h <<\_ACEOF
66140 #define HAVE_FGETWS 1
66141 _ACEOF
66143 cat >>confdefs.h <<\_ACEOF
66144 #define HAVE_FINITE 1
66145 _ACEOF
66147 cat >>confdefs.h <<\_ACEOF
66148 #define HAVE_FPCLASS 1
66149 _ACEOF
66151 cat >>confdefs.h <<\_ACEOF
66152 #define HAVE_FPUTWC 1
66153 _ACEOF
66155 cat >>confdefs.h <<\_ACEOF
66156 #define HAVE_FPUTWS 1
66157 _ACEOF
66159 cat >>confdefs.h <<\_ACEOF
66160 #define HAVE_FWIDE 1
66161 _ACEOF
66163 cat >>confdefs.h <<\_ACEOF
66164 #define HAVE_FWPRINTF 1
66165 _ACEOF
66167 cat >>confdefs.h <<\_ACEOF
66168 #define HAVE_FWSCANF 1
66169 _ACEOF
66171 cat >>confdefs.h <<\_ACEOF
66172 #define HAVE_GETPAGESIZE 1
66173 _ACEOF
66175 cat >>confdefs.h <<\_ACEOF
66176 #define HAVE_GETWC 1
66177 _ACEOF
66179 cat >>confdefs.h <<\_ACEOF
66180 #define HAVE_GETWCHAR 1
66181 _ACEOF
66183 cat >>confdefs.h <<\_ACEOF
66184 #define HAVE_MBRLEN 1
66185 _ACEOF
66187 cat >>confdefs.h <<\_ACEOF
66188 #define HAVE_MBRTOWC 1
66189 _ACEOF
66191 cat >>confdefs.h <<\_ACEOF
66192 #define HAVE_MBSINIT 1
66193 _ACEOF
66195 cat >>confdefs.h <<\_ACEOF
66196 #define HAVE_MBSRTOWCS 1
66197 _ACEOF
66199 cat >>confdefs.h <<\_ACEOF
66200 #define HAVE_NL_LANGINFO 1
66201 _ACEOF
66203 cat >>confdefs.h <<\_ACEOF
66204 #define HAVE_PUTWC 1
66205 _ACEOF
66207 cat >>confdefs.h <<\_ACEOF
66208 #define HAVE_PUTWCHAR 1
66209 _ACEOF
66211 cat >>confdefs.h <<\_ACEOF
66212 #define HAVE_SWPRINTF 1
66213 _ACEOF
66215 cat >>confdefs.h <<\_ACEOF
66216 #define HAVE_SWSCANF 1
66217 _ACEOF
66219 cat >>confdefs.h <<\_ACEOF
66220 #define HAVE_UNGETWC 1
66221 _ACEOF
66223 cat >>confdefs.h <<\_ACEOF
66224 #define HAVE_VFWPRINTF 1
66225 _ACEOF
66227 cat >>confdefs.h <<\_ACEOF
66228 #define HAVE_VSWPRINTF 1
66229 _ACEOF
66231 cat >>confdefs.h <<\_ACEOF
66232 #define HAVE_VWPRINTF 1
66233 _ACEOF
66235 cat >>confdefs.h <<\_ACEOF
66236 #define HAVE_WCRTOMB 1
66237 _ACEOF
66239 cat >>confdefs.h <<\_ACEOF
66240 #define HAVE_WCSCAT 1
66241 _ACEOF
66243 cat >>confdefs.h <<\_ACEOF
66244 #define HAVE_WCSCHR 1
66245 _ACEOF
66247 cat >>confdefs.h <<\_ACEOF
66248 #define HAVE_WCSCMP 1
66249 _ACEOF
66251 cat >>confdefs.h <<\_ACEOF
66252 #define HAVE_WCSCOLL 1
66253 _ACEOF
66255 cat >>confdefs.h <<\_ACEOF
66256 #define HAVE_WCSCPY 1
66257 _ACEOF
66259 cat >>confdefs.h <<\_ACEOF
66260 #define HAVE_WCSCSPN 1
66261 _ACEOF
66263 cat >>confdefs.h <<\_ACEOF
66264 #define HAVE_WCSFTIME 1
66265 _ACEOF
66267 cat >>confdefs.h <<\_ACEOF
66268 #define HAVE_WCSLEN 1
66269 _ACEOF
66271 cat >>confdefs.h <<\_ACEOF
66272 #define HAVE_WCSNCAT 1
66273 _ACEOF
66275 cat >>confdefs.h <<\_ACEOF
66276 #define HAVE_WCSNCMP 1
66277 _ACEOF
66279 cat >>confdefs.h <<\_ACEOF
66280 #define HAVE_WCSNCPY 1
66281 _ACEOF
66283 cat >>confdefs.h <<\_ACEOF
66284 #define HAVE_WCSPBRK 1
66285 _ACEOF
66287 cat >>confdefs.h <<\_ACEOF
66288 #define HAVE_WCSRCHR 1
66289 _ACEOF
66291 cat >>confdefs.h <<\_ACEOF
66292 #define HAVE_WCSRTOMBS 1
66293 _ACEOF
66295 cat >>confdefs.h <<\_ACEOF
66296 #define HAVE_WCSSPN 1
66297 _ACEOF
66299 cat >>confdefs.h <<\_ACEOF
66300 #define HAVE_WCSSTR 1
66301 _ACEOF
66303 cat >>confdefs.h <<\_ACEOF
66304 #define HAVE_WCSTOD 1
66305 _ACEOF
66307 cat >>confdefs.h <<\_ACEOF
66308 #define HAVE_WCSTOK 1
66309 _ACEOF
66311 cat >>confdefs.h <<\_ACEOF
66312 #define HAVE_WCSTOL 1
66313 _ACEOF
66315 cat >>confdefs.h <<\_ACEOF
66316 #define HAVE_WCSTOUL 1
66317 _ACEOF
66319 cat >>confdefs.h <<\_ACEOF
66320 #define HAVE_WCSXFRM 1
66321 _ACEOF
66323 cat >>confdefs.h <<\_ACEOF
66324 #define HAVE_WCTOB 1
66325 _ACEOF
66327 cat >>confdefs.h <<\_ACEOF
66328 #define HAVE_WMEMCHR 1
66329 _ACEOF
66331 cat >>confdefs.h <<\_ACEOF
66332 #define HAVE_WMEMCMP 1
66333 _ACEOF
66335 cat >>confdefs.h <<\_ACEOF
66336 #define HAVE_WMEMCPY 1
66337 _ACEOF
66339 cat >>confdefs.h <<\_ACEOF
66340 #define HAVE_WMEMMOVE 1
66341 _ACEOF
66343 cat >>confdefs.h <<\_ACEOF
66344 #define HAVE_WMEMSET 1
66345 _ACEOF
66347 cat >>confdefs.h <<\_ACEOF
66348 #define HAVE_WPRINTF 1
66349 _ACEOF
66351 cat >>confdefs.h <<\_ACEOF
66352 #define HAVE_WSCANF 1
66353 _ACEOF
66355 cat >>confdefs.h <<\_ACEOF
66356 #define HAVE_ICONV 1
66357 _ACEOF
66359 cat >>confdefs.h <<\_ACEOF
66360 #define HAVE_ICONV_CLOSE 1
66361 _ACEOF
66363 cat >>confdefs.h <<\_ACEOF
66364 #define HAVE_ICONV_OPEN 1
66365 _ACEOF
66367 # Look for the pieces required for wchar_t support in order to
66368 # get all the right HAVE_* macros defined.
66370 # Test wchar.h for mbstate_t, which is needed for char_traits and
66371 # others even if wchar_t support is not on.
66372 echo "$as_me:$LINENO: checking for mbstate_t" >&5
66373 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
66374 cat >conftest.$ac_ext <<_ACEOF
66375 /* confdefs.h. */
66376 _ACEOF
66377 cat confdefs.h >>conftest.$ac_ext
66378 cat >>conftest.$ac_ext <<_ACEOF
66379 /* end confdefs.h. */
66380 #include <wchar.h>
66382 main ()
66384 mbstate_t teststate;
66386 return 0;
66388 _ACEOF
66389 rm -f conftest.$ac_objext
66390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66391 (eval $ac_compile) 2>conftest.er1
66392 ac_status=$?
66393 grep -v '^ *+' conftest.er1 >conftest.err
66394 rm -f conftest.er1
66395 cat conftest.err >&5
66396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66397 (exit $ac_status); } &&
66398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66400 (eval $ac_try) 2>&5
66401 ac_status=$?
66402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66403 (exit $ac_status); }; } &&
66404 { ac_try='test -s conftest.$ac_objext'
66405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66406 (eval $ac_try) 2>&5
66407 ac_status=$?
66408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66409 (exit $ac_status); }; }; then
66410 have_mbstate_t=yes
66411 else
66412 echo "$as_me: failed program was:" >&5
66413 sed 's/^/| /' conftest.$ac_ext >&5
66415 have_mbstate_t=no
66417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66418 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
66419 echo "${ECHO_T}$have_mbstate_t" >&6
66420 if test x"$have_mbstate_t" = xyes; then
66421 cat >>confdefs.h <<\_ACEOF
66422 #define HAVE_MBSTATE_T 1
66423 _ACEOF
66427 # Sanity check for existence of ISO C99 headers for extended encoding.
66429 for ac_header in wchar.h
66431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66433 echo "$as_me:$LINENO: checking for $ac_header" >&5
66434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66436 echo $ECHO_N "(cached) $ECHO_C" >&6
66438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66440 else
66441 # Is the header compilable?
66442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66444 cat >conftest.$ac_ext <<_ACEOF
66445 /* confdefs.h. */
66446 _ACEOF
66447 cat confdefs.h >>conftest.$ac_ext
66448 cat >>conftest.$ac_ext <<_ACEOF
66449 /* end confdefs.h. */
66450 $ac_includes_default
66451 #include <$ac_header>
66452 _ACEOF
66453 rm -f conftest.$ac_objext
66454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66455 (eval $ac_compile) 2>conftest.er1
66456 ac_status=$?
66457 grep -v '^ *+' conftest.er1 >conftest.err
66458 rm -f conftest.er1
66459 cat conftest.err >&5
66460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66461 (exit $ac_status); } &&
66462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66464 (eval $ac_try) 2>&5
66465 ac_status=$?
66466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66467 (exit $ac_status); }; } &&
66468 { ac_try='test -s conftest.$ac_objext'
66469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66470 (eval $ac_try) 2>&5
66471 ac_status=$?
66472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66473 (exit $ac_status); }; }; then
66474 ac_header_compiler=yes
66475 else
66476 echo "$as_me: failed program was:" >&5
66477 sed 's/^/| /' conftest.$ac_ext >&5
66479 ac_header_compiler=no
66481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66483 echo "${ECHO_T}$ac_header_compiler" >&6
66485 # Is the header present?
66486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66488 cat >conftest.$ac_ext <<_ACEOF
66489 /* confdefs.h. */
66490 _ACEOF
66491 cat confdefs.h >>conftest.$ac_ext
66492 cat >>conftest.$ac_ext <<_ACEOF
66493 /* end confdefs.h. */
66494 #include <$ac_header>
66495 _ACEOF
66496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66498 ac_status=$?
66499 grep -v '^ *+' conftest.er1 >conftest.err
66500 rm -f conftest.er1
66501 cat conftest.err >&5
66502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66503 (exit $ac_status); } >/dev/null; then
66504 if test -s conftest.err; then
66505 ac_cpp_err=$ac_c_preproc_warn_flag
66506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66507 else
66508 ac_cpp_err=
66510 else
66511 ac_cpp_err=yes
66513 if test -z "$ac_cpp_err"; then
66514 ac_header_preproc=yes
66515 else
66516 echo "$as_me: failed program was:" >&5
66517 sed 's/^/| /' conftest.$ac_ext >&5
66519 ac_header_preproc=no
66521 rm -f conftest.err conftest.$ac_ext
66522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66523 echo "${ECHO_T}$ac_header_preproc" >&6
66525 # So? What about this header?
66526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66527 yes:no: )
66528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66532 ac_header_preproc=yes
66534 no:yes:* )
66535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66548 cat <<\_ASBOX
66549 ## ----------------------------------------- ##
66550 ## Report this to the package-unused lists. ##
66551 ## ----------------------------------------- ##
66552 _ASBOX
66554 sed "s/^/$as_me: WARNING: /" >&2
66556 esac
66557 echo "$as_me:$LINENO: checking for $ac_header" >&5
66558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66560 echo $ECHO_N "(cached) $ECHO_C" >&6
66561 else
66562 eval "$as_ac_Header=\$ac_header_preproc"
66564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66569 cat >>confdefs.h <<_ACEOF
66570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66571 _ACEOF
66572 ac_has_wchar_h=yes
66573 else
66574 ac_has_wchar_h=no
66577 done
66580 for ac_header in wctype.h
66582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66584 echo "$as_me:$LINENO: checking for $ac_header" >&5
66585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66587 echo $ECHO_N "(cached) $ECHO_C" >&6
66589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66591 else
66592 # Is the header compilable?
66593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66595 cat >conftest.$ac_ext <<_ACEOF
66596 /* confdefs.h. */
66597 _ACEOF
66598 cat confdefs.h >>conftest.$ac_ext
66599 cat >>conftest.$ac_ext <<_ACEOF
66600 /* end confdefs.h. */
66601 $ac_includes_default
66602 #include <$ac_header>
66603 _ACEOF
66604 rm -f conftest.$ac_objext
66605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66606 (eval $ac_compile) 2>conftest.er1
66607 ac_status=$?
66608 grep -v '^ *+' conftest.er1 >conftest.err
66609 rm -f conftest.er1
66610 cat conftest.err >&5
66611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66612 (exit $ac_status); } &&
66613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66615 (eval $ac_try) 2>&5
66616 ac_status=$?
66617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66618 (exit $ac_status); }; } &&
66619 { ac_try='test -s conftest.$ac_objext'
66620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66621 (eval $ac_try) 2>&5
66622 ac_status=$?
66623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66624 (exit $ac_status); }; }; then
66625 ac_header_compiler=yes
66626 else
66627 echo "$as_me: failed program was:" >&5
66628 sed 's/^/| /' conftest.$ac_ext >&5
66630 ac_header_compiler=no
66632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66634 echo "${ECHO_T}$ac_header_compiler" >&6
66636 # Is the header present?
66637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66639 cat >conftest.$ac_ext <<_ACEOF
66640 /* confdefs.h. */
66641 _ACEOF
66642 cat confdefs.h >>conftest.$ac_ext
66643 cat >>conftest.$ac_ext <<_ACEOF
66644 /* end confdefs.h. */
66645 #include <$ac_header>
66646 _ACEOF
66647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66649 ac_status=$?
66650 grep -v '^ *+' conftest.er1 >conftest.err
66651 rm -f conftest.er1
66652 cat conftest.err >&5
66653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66654 (exit $ac_status); } >/dev/null; then
66655 if test -s conftest.err; then
66656 ac_cpp_err=$ac_c_preproc_warn_flag
66657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66658 else
66659 ac_cpp_err=
66661 else
66662 ac_cpp_err=yes
66664 if test -z "$ac_cpp_err"; then
66665 ac_header_preproc=yes
66666 else
66667 echo "$as_me: failed program was:" >&5
66668 sed 's/^/| /' conftest.$ac_ext >&5
66670 ac_header_preproc=no
66672 rm -f conftest.err conftest.$ac_ext
66673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66674 echo "${ECHO_T}$ac_header_preproc" >&6
66676 # So? What about this header?
66677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66678 yes:no: )
66679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66683 ac_header_preproc=yes
66685 no:yes:* )
66686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66699 cat <<\_ASBOX
66700 ## ----------------------------------------- ##
66701 ## Report this to the package-unused lists. ##
66702 ## ----------------------------------------- ##
66703 _ASBOX
66705 sed "s/^/$as_me: WARNING: /" >&2
66707 esac
66708 echo "$as_me:$LINENO: checking for $ac_header" >&5
66709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66711 echo $ECHO_N "(cached) $ECHO_C" >&6
66712 else
66713 eval "$as_ac_Header=\$ac_header_preproc"
66715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66720 cat >>confdefs.h <<_ACEOF
66721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66722 _ACEOF
66723 ac_has_wctype_h=yes
66724 else
66725 ac_has_wctype_h=no
66728 done
66731 # Only continue checking if the ISO C99 headers exist and support is on.
66732 if test x"$ac_has_wchar_h" = xyes &&
66733 test x"$ac_has_wctype_h" = xyes &&
66734 test x"$enable_c_mbchar" != xno; then
66736 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66737 # numeric_limits can instantiate type_traits<wchar_t>
66738 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66739 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66740 cat >conftest.$ac_ext <<_ACEOF
66741 /* confdefs.h. */
66742 _ACEOF
66743 cat confdefs.h >>conftest.$ac_ext
66744 cat >>conftest.$ac_ext <<_ACEOF
66745 /* end confdefs.h. */
66746 #include <wchar.h>
66748 main ()
66750 int i = WCHAR_MIN; int j = WCHAR_MAX;
66752 return 0;
66754 _ACEOF
66755 rm -f conftest.$ac_objext
66756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66757 (eval $ac_compile) 2>conftest.er1
66758 ac_status=$?
66759 grep -v '^ *+' conftest.er1 >conftest.err
66760 rm -f conftest.er1
66761 cat conftest.err >&5
66762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66763 (exit $ac_status); } &&
66764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66766 (eval $ac_try) 2>&5
66767 ac_status=$?
66768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66769 (exit $ac_status); }; } &&
66770 { ac_try='test -s conftest.$ac_objext'
66771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66772 (eval $ac_try) 2>&5
66773 ac_status=$?
66774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66775 (exit $ac_status); }; }; then
66776 has_wchar_minmax=yes
66777 else
66778 echo "$as_me: failed program was:" >&5
66779 sed 's/^/| /' conftest.$ac_ext >&5
66781 has_wchar_minmax=no
66783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66784 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66785 echo "${ECHO_T}$has_wchar_minmax" >&6
66787 # Test wchar.h for WEOF, which is what we use to determine whether
66788 # to specialize for char_traits<wchar_t> or not.
66789 echo "$as_me:$LINENO: checking for WEOF" >&5
66790 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66791 cat >conftest.$ac_ext <<_ACEOF
66792 /* confdefs.h. */
66793 _ACEOF
66794 cat confdefs.h >>conftest.$ac_ext
66795 cat >>conftest.$ac_ext <<_ACEOF
66796 /* end confdefs.h. */
66798 #include <wchar.h>
66799 #include <stddef.h>
66801 main ()
66803 wint_t i = WEOF;
66805 return 0;
66807 _ACEOF
66808 rm -f conftest.$ac_objext
66809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66810 (eval $ac_compile) 2>conftest.er1
66811 ac_status=$?
66812 grep -v '^ *+' conftest.er1 >conftest.err
66813 rm -f conftest.er1
66814 cat conftest.err >&5
66815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66816 (exit $ac_status); } &&
66817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66819 (eval $ac_try) 2>&5
66820 ac_status=$?
66821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66822 (exit $ac_status); }; } &&
66823 { ac_try='test -s conftest.$ac_objext'
66824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66825 (eval $ac_try) 2>&5
66826 ac_status=$?
66827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66828 (exit $ac_status); }; }; then
66829 has_weof=yes
66830 else
66831 echo "$as_me: failed program was:" >&5
66832 sed 's/^/| /' conftest.$ac_ext >&5
66834 has_weof=no
66836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66837 echo "$as_me:$LINENO: result: $has_weof" >&5
66838 echo "${ECHO_T}$has_weof" >&6
66840 # Tests for wide character functions used in char_traits<wchar_t>.
66841 ac_wfuncs=yes
66848 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66851 echo "$as_me:$LINENO: checking for $ac_func" >&5
66852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66853 if eval "test \"\${$as_ac_var+set}\" = set"; then
66854 echo $ECHO_N "(cached) $ECHO_C" >&6
66855 else
66856 if test x$gcc_no_link = xyes; then
66857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66859 { (exit 1); exit 1; }; }
66861 cat >conftest.$ac_ext <<_ACEOF
66862 /* confdefs.h. */
66863 _ACEOF
66864 cat confdefs.h >>conftest.$ac_ext
66865 cat >>conftest.$ac_ext <<_ACEOF
66866 /* end confdefs.h. */
66867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66869 #define $ac_func innocuous_$ac_func
66871 /* System header to define __stub macros and hopefully few prototypes,
66872 which can conflict with char $ac_func (); below.
66873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66874 <limits.h> exists even on freestanding compilers. */
66876 #ifdef __STDC__
66877 # include <limits.h>
66878 #else
66879 # include <assert.h>
66880 #endif
66882 #undef $ac_func
66884 /* Override any gcc2 internal prototype to avoid an error. */
66885 #ifdef __cplusplus
66886 extern "C"
66888 #endif
66889 /* We use char because int might match the return type of a gcc2
66890 builtin and then its argument prototype would still apply. */
66891 char $ac_func ();
66892 /* The GNU C library defines this for functions which it implements
66893 to always fail with ENOSYS. Some functions are actually named
66894 something starting with __ and the normal name is an alias. */
66895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66896 choke me
66897 #else
66898 char (*f) () = $ac_func;
66899 #endif
66900 #ifdef __cplusplus
66902 #endif
66905 main ()
66907 return f != $ac_func;
66909 return 0;
66911 _ACEOF
66912 rm -f conftest.$ac_objext conftest$ac_exeext
66913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66914 (eval $ac_link) 2>conftest.er1
66915 ac_status=$?
66916 grep -v '^ *+' conftest.er1 >conftest.err
66917 rm -f conftest.er1
66918 cat conftest.err >&5
66919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66920 (exit $ac_status); } &&
66921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
66922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66923 (eval $ac_try) 2>&5
66924 ac_status=$?
66925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66926 (exit $ac_status); }; } &&
66927 { ac_try='test -s conftest$ac_exeext'
66928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66929 (eval $ac_try) 2>&5
66930 ac_status=$?
66931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66932 (exit $ac_status); }; }; then
66933 eval "$as_ac_var=yes"
66934 else
66935 echo "$as_me: failed program was:" >&5
66936 sed 's/^/| /' conftest.$ac_ext >&5
66938 eval "$as_ac_var=no"
66940 rm -f conftest.err conftest.$ac_objext \
66941 conftest$ac_exeext conftest.$ac_ext
66943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66945 if test `eval echo '${'$as_ac_var'}'` = yes; then
66946 cat >>confdefs.h <<_ACEOF
66947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66948 _ACEOF
66950 else
66951 ac_wfuncs=no
66953 done
66956 # Checks for names injected into std:: by the c_std headers.
67003 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
67004 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
67005 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
67006 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
67007 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
67008 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
67010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67011 echo "$as_me:$LINENO: checking for $ac_func" >&5
67012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67013 if eval "test \"\${$as_ac_var+set}\" = set"; then
67014 echo $ECHO_N "(cached) $ECHO_C" >&6
67015 else
67016 if test x$gcc_no_link = xyes; then
67017 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67019 { (exit 1); exit 1; }; }
67021 cat >conftest.$ac_ext <<_ACEOF
67022 /* confdefs.h. */
67023 _ACEOF
67024 cat confdefs.h >>conftest.$ac_ext
67025 cat >>conftest.$ac_ext <<_ACEOF
67026 /* end confdefs.h. */
67027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67029 #define $ac_func innocuous_$ac_func
67031 /* System header to define __stub macros and hopefully few prototypes,
67032 which can conflict with char $ac_func (); below.
67033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67034 <limits.h> exists even on freestanding compilers. */
67036 #ifdef __STDC__
67037 # include <limits.h>
67038 #else
67039 # include <assert.h>
67040 #endif
67042 #undef $ac_func
67044 /* Override any gcc2 internal prototype to avoid an error. */
67045 #ifdef __cplusplus
67046 extern "C"
67048 #endif
67049 /* We use char because int might match the return type of a gcc2
67050 builtin and then its argument prototype would still apply. */
67051 char $ac_func ();
67052 /* The GNU C library defines this for functions which it implements
67053 to always fail with ENOSYS. Some functions are actually named
67054 something starting with __ and the normal name is an alias. */
67055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67056 choke me
67057 #else
67058 char (*f) () = $ac_func;
67059 #endif
67060 #ifdef __cplusplus
67062 #endif
67065 main ()
67067 return f != $ac_func;
67069 return 0;
67071 _ACEOF
67072 rm -f conftest.$ac_objext conftest$ac_exeext
67073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67074 (eval $ac_link) 2>conftest.er1
67075 ac_status=$?
67076 grep -v '^ *+' conftest.er1 >conftest.err
67077 rm -f conftest.er1
67078 cat conftest.err >&5
67079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67080 (exit $ac_status); } &&
67081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
67082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67083 (eval $ac_try) 2>&5
67084 ac_status=$?
67085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67086 (exit $ac_status); }; } &&
67087 { ac_try='test -s conftest$ac_exeext'
67088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67089 (eval $ac_try) 2>&5
67090 ac_status=$?
67091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67092 (exit $ac_status); }; }; then
67093 eval "$as_ac_var=yes"
67094 else
67095 echo "$as_me: failed program was:" >&5
67096 sed 's/^/| /' conftest.$ac_ext >&5
67098 eval "$as_ac_var=no"
67100 rm -f conftest.err conftest.$ac_objext \
67101 conftest$ac_exeext conftest.$ac_ext
67103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67105 if test `eval echo '${'$as_ac_var'}'` = yes; then
67106 cat >>confdefs.h <<_ACEOF
67107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67108 _ACEOF
67110 else
67111 ac_wfuncs=no
67113 done
67116 # Checks for wide character functions that are not required
67117 # for basic wchar_t support. Don't disable support if they are missing.
67118 # Injection of these is wrapped with guard macros.
67124 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
67126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67127 echo "$as_me:$LINENO: checking for $ac_func" >&5
67128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67129 if eval "test \"\${$as_ac_var+set}\" = set"; then
67130 echo $ECHO_N "(cached) $ECHO_C" >&6
67131 else
67132 if test x$gcc_no_link = xyes; then
67133 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67134 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67135 { (exit 1); exit 1; }; }
67137 cat >conftest.$ac_ext <<_ACEOF
67138 /* confdefs.h. */
67139 _ACEOF
67140 cat confdefs.h >>conftest.$ac_ext
67141 cat >>conftest.$ac_ext <<_ACEOF
67142 /* end confdefs.h. */
67143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67145 #define $ac_func innocuous_$ac_func
67147 /* System header to define __stub macros and hopefully few prototypes,
67148 which can conflict with char $ac_func (); below.
67149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67150 <limits.h> exists even on freestanding compilers. */
67152 #ifdef __STDC__
67153 # include <limits.h>
67154 #else
67155 # include <assert.h>
67156 #endif
67158 #undef $ac_func
67160 /* Override any gcc2 internal prototype to avoid an error. */
67161 #ifdef __cplusplus
67162 extern "C"
67164 #endif
67165 /* We use char because int might match the return type of a gcc2
67166 builtin and then its argument prototype would still apply. */
67167 char $ac_func ();
67168 /* The GNU C library defines this for functions which it implements
67169 to always fail with ENOSYS. Some functions are actually named
67170 something starting with __ and the normal name is an alias. */
67171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67172 choke me
67173 #else
67174 char (*f) () = $ac_func;
67175 #endif
67176 #ifdef __cplusplus
67178 #endif
67181 main ()
67183 return f != $ac_func;
67185 return 0;
67187 _ACEOF
67188 rm -f conftest.$ac_objext conftest$ac_exeext
67189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67190 (eval $ac_link) 2>conftest.er1
67191 ac_status=$?
67192 grep -v '^ *+' conftest.er1 >conftest.err
67193 rm -f conftest.er1
67194 cat conftest.err >&5
67195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67196 (exit $ac_status); } &&
67197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
67198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67199 (eval $ac_try) 2>&5
67200 ac_status=$?
67201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67202 (exit $ac_status); }; } &&
67203 { ac_try='test -s conftest$ac_exeext'
67204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67205 (eval $ac_try) 2>&5
67206 ac_status=$?
67207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67208 (exit $ac_status); }; }; then
67209 eval "$as_ac_var=yes"
67210 else
67211 echo "$as_me: failed program was:" >&5
67212 sed 's/^/| /' conftest.$ac_ext >&5
67214 eval "$as_ac_var=no"
67216 rm -f conftest.err conftest.$ac_objext \
67217 conftest$ac_exeext conftest.$ac_ext
67219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67221 if test `eval echo '${'$as_ac_var'}'` = yes; then
67222 cat >>confdefs.h <<_ACEOF
67223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67224 _ACEOF
67227 done
67230 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
67231 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
67232 if test x"$has_weof" = xyes &&
67233 test x"$has_wchar_minmax" = xyes &&
67234 test x"$ac_wfuncs" = xyes;
67235 then
67236 ac_isoC99_wchar_t=yes
67237 else
67238 ac_isoC99_wchar_t=no
67240 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
67241 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
67243 # Use iconv for wchar_t to char conversions. As such, check for
67244 # X/Open Portability Guide, version 2 features (XPG2).
67245 if test "${ac_cv_header_iconv_h+set}" = set; then
67246 echo "$as_me:$LINENO: checking for iconv.h" >&5
67247 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67248 if test "${ac_cv_header_iconv_h+set}" = set; then
67249 echo $ECHO_N "(cached) $ECHO_C" >&6
67251 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67252 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67253 else
67254 # Is the header compilable?
67255 echo "$as_me:$LINENO: checking iconv.h usability" >&5
67256 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
67257 cat >conftest.$ac_ext <<_ACEOF
67258 /* confdefs.h. */
67259 _ACEOF
67260 cat confdefs.h >>conftest.$ac_ext
67261 cat >>conftest.$ac_ext <<_ACEOF
67262 /* end confdefs.h. */
67263 $ac_includes_default
67264 #include <iconv.h>
67265 _ACEOF
67266 rm -f conftest.$ac_objext
67267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67268 (eval $ac_compile) 2>conftest.er1
67269 ac_status=$?
67270 grep -v '^ *+' conftest.er1 >conftest.err
67271 rm -f conftest.er1
67272 cat conftest.err >&5
67273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67274 (exit $ac_status); } &&
67275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
67276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67277 (eval $ac_try) 2>&5
67278 ac_status=$?
67279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67280 (exit $ac_status); }; } &&
67281 { ac_try='test -s conftest.$ac_objext'
67282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67283 (eval $ac_try) 2>&5
67284 ac_status=$?
67285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67286 (exit $ac_status); }; }; then
67287 ac_header_compiler=yes
67288 else
67289 echo "$as_me: failed program was:" >&5
67290 sed 's/^/| /' conftest.$ac_ext >&5
67292 ac_header_compiler=no
67294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67296 echo "${ECHO_T}$ac_header_compiler" >&6
67298 # Is the header present?
67299 echo "$as_me:$LINENO: checking iconv.h presence" >&5
67300 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
67301 cat >conftest.$ac_ext <<_ACEOF
67302 /* confdefs.h. */
67303 _ACEOF
67304 cat confdefs.h >>conftest.$ac_ext
67305 cat >>conftest.$ac_ext <<_ACEOF
67306 /* end confdefs.h. */
67307 #include <iconv.h>
67308 _ACEOF
67309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67311 ac_status=$?
67312 grep -v '^ *+' conftest.er1 >conftest.err
67313 rm -f conftest.er1
67314 cat conftest.err >&5
67315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67316 (exit $ac_status); } >/dev/null; then
67317 if test -s conftest.err; then
67318 ac_cpp_err=$ac_c_preproc_warn_flag
67319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67320 else
67321 ac_cpp_err=
67323 else
67324 ac_cpp_err=yes
67326 if test -z "$ac_cpp_err"; then
67327 ac_header_preproc=yes
67328 else
67329 echo "$as_me: failed program was:" >&5
67330 sed 's/^/| /' conftest.$ac_ext >&5
67332 ac_header_preproc=no
67334 rm -f conftest.err conftest.$ac_ext
67335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67336 echo "${ECHO_T}$ac_header_preproc" >&6
67338 # So? What about this header?
67339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67340 yes:no: )
67341 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
67342 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67343 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
67344 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
67345 ac_header_preproc=yes
67347 no:yes:* )
67348 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
67349 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
67350 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
67351 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
67352 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
67353 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
67354 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
67355 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
67356 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
67357 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
67358 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
67359 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
67361 cat <<\_ASBOX
67362 ## ----------------------------------------- ##
67363 ## Report this to the package-unused lists. ##
67364 ## ----------------------------------------- ##
67365 _ASBOX
67367 sed "s/^/$as_me: WARNING: /" >&2
67369 esac
67370 echo "$as_me:$LINENO: checking for iconv.h" >&5
67371 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67372 if test "${ac_cv_header_iconv_h+set}" = set; then
67373 echo $ECHO_N "(cached) $ECHO_C" >&6
67374 else
67375 ac_cv_header_iconv_h=$ac_header_preproc
67377 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67378 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67381 if test $ac_cv_header_iconv_h = yes; then
67382 ac_has_iconv_h=yes
67383 else
67384 ac_has_iconv_h=no
67388 if test "${ac_cv_header_langinfo_h+set}" = set; then
67389 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67390 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67391 if test "${ac_cv_header_langinfo_h+set}" = set; then
67392 echo $ECHO_N "(cached) $ECHO_C" >&6
67394 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67395 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67396 else
67397 # Is the header compilable?
67398 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
67399 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
67400 cat >conftest.$ac_ext <<_ACEOF
67401 /* confdefs.h. */
67402 _ACEOF
67403 cat confdefs.h >>conftest.$ac_ext
67404 cat >>conftest.$ac_ext <<_ACEOF
67405 /* end confdefs.h. */
67406 $ac_includes_default
67407 #include <langinfo.h>
67408 _ACEOF
67409 rm -f conftest.$ac_objext
67410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67411 (eval $ac_compile) 2>conftest.er1
67412 ac_status=$?
67413 grep -v '^ *+' conftest.er1 >conftest.err
67414 rm -f conftest.er1
67415 cat conftest.err >&5
67416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67417 (exit $ac_status); } &&
67418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
67419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67420 (eval $ac_try) 2>&5
67421 ac_status=$?
67422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67423 (exit $ac_status); }; } &&
67424 { ac_try='test -s conftest.$ac_objext'
67425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67426 (eval $ac_try) 2>&5
67427 ac_status=$?
67428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67429 (exit $ac_status); }; }; then
67430 ac_header_compiler=yes
67431 else
67432 echo "$as_me: failed program was:" >&5
67433 sed 's/^/| /' conftest.$ac_ext >&5
67435 ac_header_compiler=no
67437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67439 echo "${ECHO_T}$ac_header_compiler" >&6
67441 # Is the header present?
67442 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67443 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67444 cat >conftest.$ac_ext <<_ACEOF
67445 /* confdefs.h. */
67446 _ACEOF
67447 cat confdefs.h >>conftest.$ac_ext
67448 cat >>conftest.$ac_ext <<_ACEOF
67449 /* end confdefs.h. */
67450 #include <langinfo.h>
67451 _ACEOF
67452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67454 ac_status=$?
67455 grep -v '^ *+' conftest.er1 >conftest.err
67456 rm -f conftest.er1
67457 cat conftest.err >&5
67458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67459 (exit $ac_status); } >/dev/null; then
67460 if test -s conftest.err; then
67461 ac_cpp_err=$ac_c_preproc_warn_flag
67462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67463 else
67464 ac_cpp_err=
67466 else
67467 ac_cpp_err=yes
67469 if test -z "$ac_cpp_err"; then
67470 ac_header_preproc=yes
67471 else
67472 echo "$as_me: failed program was:" >&5
67473 sed 's/^/| /' conftest.$ac_ext >&5
67475 ac_header_preproc=no
67477 rm -f conftest.err conftest.$ac_ext
67478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67479 echo "${ECHO_T}$ac_header_preproc" >&6
67481 # So? What about this header?
67482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67483 yes:no: )
67484 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67485 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67486 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67487 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67488 ac_header_preproc=yes
67490 no:yes:* )
67491 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67492 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67493 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
67494 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
67495 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67496 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67497 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
67498 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
67499 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67500 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67501 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67502 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67504 cat <<\_ASBOX
67505 ## ----------------------------------------- ##
67506 ## Report this to the package-unused lists. ##
67507 ## ----------------------------------------- ##
67508 _ASBOX
67510 sed "s/^/$as_me: WARNING: /" >&2
67512 esac
67513 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67514 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67515 if test "${ac_cv_header_langinfo_h+set}" = set; then
67516 echo $ECHO_N "(cached) $ECHO_C" >&6
67517 else
67518 ac_cv_header_langinfo_h=$ac_header_preproc
67520 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67521 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67524 if test $ac_cv_header_langinfo_h = yes; then
67525 ac_has_langinfo_h=yes
67526 else
67527 ac_has_langinfo_h=no
67532 # Check for existence of libiconv.a providing XPG2 wchar_t support.
67533 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67534 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67535 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67536 echo $ECHO_N "(cached) $ECHO_C" >&6
67537 else
67538 ac_check_lib_save_LIBS=$LIBS
67539 LIBS="-liconv $LIBS"
67540 if test x$gcc_no_link = xyes; then
67541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67543 { (exit 1); exit 1; }; }
67545 cat >conftest.$ac_ext <<_ACEOF
67546 /* confdefs.h. */
67547 _ACEOF
67548 cat confdefs.h >>conftest.$ac_ext
67549 cat >>conftest.$ac_ext <<_ACEOF
67550 /* end confdefs.h. */
67552 /* Override any gcc2 internal prototype to avoid an error. */
67553 #ifdef __cplusplus
67554 extern "C"
67555 #endif
67556 /* We use char because int might match the return type of a gcc2
67557 builtin and then its argument prototype would still apply. */
67558 char iconv ();
67560 main ()
67562 iconv ();
67564 return 0;
67566 _ACEOF
67567 rm -f conftest.$ac_objext conftest$ac_exeext
67568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67569 (eval $ac_link) 2>conftest.er1
67570 ac_status=$?
67571 grep -v '^ *+' conftest.er1 >conftest.err
67572 rm -f conftest.er1
67573 cat conftest.err >&5
67574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67575 (exit $ac_status); } &&
67576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
67577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67578 (eval $ac_try) 2>&5
67579 ac_status=$?
67580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67581 (exit $ac_status); }; } &&
67582 { ac_try='test -s conftest$ac_exeext'
67583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67584 (eval $ac_try) 2>&5
67585 ac_status=$?
67586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67587 (exit $ac_status); }; }; then
67588 ac_cv_lib_iconv_iconv=yes
67589 else
67590 echo "$as_me: failed program was:" >&5
67591 sed 's/^/| /' conftest.$ac_ext >&5
67593 ac_cv_lib_iconv_iconv=no
67595 rm -f conftest.err conftest.$ac_objext \
67596 conftest$ac_exeext conftest.$ac_ext
67597 LIBS=$ac_check_lib_save_LIBS
67599 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67600 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67601 if test $ac_cv_lib_iconv_iconv = yes; then
67602 libiconv="-liconv"
67605 ac_save_LIBS="$LIBS"
67606 LIBS="$LIBS $libiconv"
67612 for ac_func in iconv_open iconv_close iconv nl_langinfo
67614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67615 echo "$as_me:$LINENO: checking for $ac_func" >&5
67616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67617 if eval "test \"\${$as_ac_var+set}\" = set"; then
67618 echo $ECHO_N "(cached) $ECHO_C" >&6
67619 else
67620 if test x$gcc_no_link = xyes; then
67621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67623 { (exit 1); exit 1; }; }
67625 cat >conftest.$ac_ext <<_ACEOF
67626 /* confdefs.h. */
67627 _ACEOF
67628 cat confdefs.h >>conftest.$ac_ext
67629 cat >>conftest.$ac_ext <<_ACEOF
67630 /* end confdefs.h. */
67631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67633 #define $ac_func innocuous_$ac_func
67635 /* System header to define __stub macros and hopefully few prototypes,
67636 which can conflict with char $ac_func (); below.
67637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67638 <limits.h> exists even on freestanding compilers. */
67640 #ifdef __STDC__
67641 # include <limits.h>
67642 #else
67643 # include <assert.h>
67644 #endif
67646 #undef $ac_func
67648 /* Override any gcc2 internal prototype to avoid an error. */
67649 #ifdef __cplusplus
67650 extern "C"
67652 #endif
67653 /* We use char because int might match the return type of a gcc2
67654 builtin and then its argument prototype would still apply. */
67655 char $ac_func ();
67656 /* The GNU C library defines this for functions which it implements
67657 to always fail with ENOSYS. Some functions are actually named
67658 something starting with __ and the normal name is an alias. */
67659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67660 choke me
67661 #else
67662 char (*f) () = $ac_func;
67663 #endif
67664 #ifdef __cplusplus
67666 #endif
67669 main ()
67671 return f != $ac_func;
67673 return 0;
67675 _ACEOF
67676 rm -f conftest.$ac_objext conftest$ac_exeext
67677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67678 (eval $ac_link) 2>conftest.er1
67679 ac_status=$?
67680 grep -v '^ *+' conftest.er1 >conftest.err
67681 rm -f conftest.er1
67682 cat conftest.err >&5
67683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67684 (exit $ac_status); } &&
67685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
67686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67687 (eval $ac_try) 2>&5
67688 ac_status=$?
67689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67690 (exit $ac_status); }; } &&
67691 { ac_try='test -s conftest$ac_exeext'
67692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67693 (eval $ac_try) 2>&5
67694 ac_status=$?
67695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67696 (exit $ac_status); }; }; then
67697 eval "$as_ac_var=yes"
67698 else
67699 echo "$as_me: failed program was:" >&5
67700 sed 's/^/| /' conftest.$ac_ext >&5
67702 eval "$as_ac_var=no"
67704 rm -f conftest.err conftest.$ac_objext \
67705 conftest$ac_exeext conftest.$ac_ext
67707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67709 if test `eval echo '${'$as_ac_var'}'` = yes; then
67710 cat >>confdefs.h <<_ACEOF
67711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67712 _ACEOF
67713 ac_XPG2funcs=yes
67714 else
67715 ac_XPG2funcs=no
67717 done
67720 LIBS="$ac_save_LIBS"
67722 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67723 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67724 if test x"$ac_has_iconv_h" = xyes &&
67725 test x"$ac_has_langinfo_h" = xyes &&
67726 test x"$ac_XPG2funcs" = xyes;
67727 then
67728 ac_XPG2_wchar_t=yes
67729 else
67730 ac_XPG2_wchar_t=no
67732 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67733 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67735 # At the moment, only enable wchar_t specializations if all the
67736 # above support is present.
67737 if test x"$ac_isoC99_wchar_t" = xyes &&
67738 test x"$ac_XPG2_wchar_t" = xyes;
67739 then
67740 cat >>confdefs.h <<\_ACEOF
67741 #define _GLIBCXX_USE_WCHAR_T 1
67742 _ACEOF
67744 enable_wchar_t=yes
67747 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67748 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67749 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67750 echo "${ECHO_T}$enable_wchar_t" >&6
67752 # All of the dependencies for wide character support are here, so
67753 # turn it on. This requires some syncronization with the
67754 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
67755 cat >>confdefs.h <<\_ACEOF
67756 #define _GLIBCXX_USE_WCHAR_T 1
67757 _ACEOF
67759 # Are these tested for even when cross?
67760 cat >>confdefs.h <<\_ACEOF
67761 #define HAVE_FLOAT_H 1
67762 _ACEOF
67764 cat >>confdefs.h <<\_ACEOF
67765 #define HAVE_IEEEFP_H 1
67766 _ACEOF
67768 cat >>confdefs.h <<\_ACEOF
67769 #define HAVE_INTTYPES_H 1
67770 _ACEOF
67772 cat >>confdefs.h <<\_ACEOF
67773 #define HAVE_LOCALE_H 1
67774 _ACEOF
67776 cat >>confdefs.h <<\_ACEOF
67777 #define HAVE_NAN_H 1
67778 _ACEOF
67780 cat >>confdefs.h <<\_ACEOF
67781 #define HAVE_SYS_FILIO_H 1
67782 _ACEOF
67784 cat >>confdefs.h <<\_ACEOF
67785 #define HAVE_SYS_IOCTL_H 1
67786 _ACEOF
67788 cat >>confdefs.h <<\_ACEOF
67789 #define HAVE_SYS_ISA_DEFS_H 1
67790 _ACEOF
67792 cat >>confdefs.h <<\_ACEOF
67793 #define HAVE_SYS_RESOURCE_H 1
67794 _ACEOF
67796 cat >>confdefs.h <<\_ACEOF
67797 #define HAVE_SYS_TIME_H 1
67798 _ACEOF
67800 cat >>confdefs.h <<\_ACEOF
67801 #define HAVE_SYS_TYPES_H 1
67802 _ACEOF
67804 cat >>confdefs.h <<\_ACEOF
67805 #define HAVE_UNISTD_H 1
67806 _ACEOF
67808 cat >>confdefs.h <<\_ACEOF
67809 #define HAVE_WCHAR_H 1
67810 _ACEOF
67812 cat >>confdefs.h <<\_ACEOF
67813 #define HAVE_WCTYPE_H 1
67814 _ACEOF
67816 cat >>confdefs.h <<\_ACEOF
67817 #define HAVE_LIBM 1
67818 _ACEOF
67821 esac
67822 case "$target" in
67823 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
67824 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
67825 cat >>confdefs.h <<\_ACEOF
67826 #define HAVE___BUILTIN_ABS 1
67827 _ACEOF
67829 cat >>confdefs.h <<\_ACEOF
67830 #define HAVE___BUILTIN_LABS 1
67831 _ACEOF
67833 cat >>confdefs.h <<\_ACEOF
67834 #define HAVE___BUILTIN_FABS 1
67835 _ACEOF
67837 cat >>confdefs.h <<\_ACEOF
67838 #define HAVE___BUILTIN_FABSF 1
67839 _ACEOF
67841 cat >>confdefs.h <<\_ACEOF
67842 #define HAVE___BUILTIN_FABSL 1
67843 _ACEOF
67845 cat >>confdefs.h <<\_ACEOF
67846 #define HAVE___BUILTIN_COS 1
67847 _ACEOF
67849 cat >>confdefs.h <<\_ACEOF
67850 #define HAVE___BUILTIN_COSF 1
67851 _ACEOF
67853 cat >>confdefs.h <<\_ACEOF
67854 #define HAVE___BUILTIN_SIN 1
67855 _ACEOF
67857 cat >>confdefs.h <<\_ACEOF
67858 #define HAVE___BUILTIN_SINF 1
67859 _ACEOF
67862 esac
67863 cat >>confdefs.h <<\_ACEOF
67864 #define HAVE_STRTOF 1
67865 _ACEOF
67867 cat >>confdefs.h <<\_ACEOF
67868 #define HAVE_STRTOLD 1
67869 _ACEOF
67871 cat >>confdefs.h <<\_ACEOF
67872 #define HAVE_MMAP 1
67873 _ACEOF
67875 cat >>confdefs.h <<\_ACEOF
67876 #define HAVE_COPYSIGN 1
67877 _ACEOF
67879 cat >>confdefs.h <<\_ACEOF
67880 #define HAVE_ISNAN 1
67881 _ACEOF
67883 cat >>confdefs.h <<\_ACEOF
67884 #define HAVE_ISNANF 1
67885 _ACEOF
67887 cat >>confdefs.h <<\_ACEOF
67888 #define HAVE_MODFF 1
67889 _ACEOF
67891 cat >>confdefs.h <<\_ACEOF
67892 #define HAVE_HYPOT 1
67893 _ACEOF
67896 *-vxworks)
67897 cat >>confdefs.h <<\_ACEOF
67898 #define HAVE_MMAP 1
67899 _ACEOF
67901 cat >>confdefs.h <<\_ACEOF
67902 #define HAVE_ACOSF 1
67903 _ACEOF
67905 cat >>confdefs.h <<\_ACEOF
67906 #define HAVE_ASINF 1
67907 _ACEOF
67909 cat >>confdefs.h <<\_ACEOF
67910 #define HAVE_ATAN2F 1
67911 _ACEOF
67913 cat >>confdefs.h <<\_ACEOF
67914 #define HAVE_ATANF 1
67915 _ACEOF
67917 cat >>confdefs.h <<\_ACEOF
67918 #define HAVE_CEILF 1
67919 _ACEOF
67921 cat >>confdefs.h <<\_ACEOF
67922 #define HAVE_COSF 1
67923 _ACEOF
67925 cat >>confdefs.h <<\_ACEOF
67926 #define HAVE_COSHF 1
67927 _ACEOF
67929 cat >>confdefs.h <<\_ACEOF
67930 #define HAVE_EXPF 1
67931 _ACEOF
67933 cat >>confdefs.h <<\_ACEOF
67934 #define HAVE_FABSF 1
67935 _ACEOF
67937 cat >>confdefs.h <<\_ACEOF
67938 #define HAVE_FLOORF 1
67939 _ACEOF
67941 cat >>confdefs.h <<\_ACEOF
67942 #define HAVE_FMODF 1
67943 _ACEOF
67945 cat >>confdefs.h <<\_ACEOF
67946 #define HAVE_HYPOT 1
67947 _ACEOF
67949 cat >>confdefs.h <<\_ACEOF
67950 #define HAVE_LOG10F 1
67951 _ACEOF
67953 cat >>confdefs.h <<\_ACEOF
67954 #define HAVE_LOGF 1
67955 _ACEOF
67957 cat >>confdefs.h <<\_ACEOF
67958 #define HAVE_POWF 1
67959 _ACEOF
67961 cat >>confdefs.h <<\_ACEOF
67962 #define HAVE_SINF 1
67963 _ACEOF
67965 cat >>confdefs.h <<\_ACEOF
67966 #define HAVE_SINHF 1
67967 _ACEOF
67969 cat >>confdefs.h <<\_ACEOF
67970 #define HAVE_SQRTF 1
67971 _ACEOF
67973 cat >>confdefs.h <<\_ACEOF
67974 #define HAVE_TANF 1
67975 _ACEOF
67977 cat >>confdefs.h <<\_ACEOF
67978 #define HAVE_TANHF 1
67979 _ACEOF
67982 *-windiss*)
67983 cat >>confdefs.h <<\_ACEOF
67984 #define HAVE_ACOSF 1
67985 _ACEOF
67987 cat >>confdefs.h <<\_ACEOF
67988 #define HAVE_ACOSL 1
67989 _ACEOF
67991 cat >>confdefs.h <<\_ACEOF
67992 #define HAVE_ASINF 1
67993 _ACEOF
67995 cat >>confdefs.h <<\_ACEOF
67996 #define HAVE_ASINL 1
67997 _ACEOF
67999 cat >>confdefs.h <<\_ACEOF
68000 #define HAVE_ATAN2F 1
68001 _ACEOF
68003 cat >>confdefs.h <<\_ACEOF
68004 #define HAVE_ATAN2L 1
68005 _ACEOF
68007 cat >>confdefs.h <<\_ACEOF
68008 #define HAVE_ATANF 1
68009 _ACEOF
68011 cat >>confdefs.h <<\_ACEOF
68012 #define HAVE_ATANL 1
68013 _ACEOF
68015 cat >>confdefs.h <<\_ACEOF
68016 #define HAVE_CEILF 1
68017 _ACEOF
68019 cat >>confdefs.h <<\_ACEOF
68020 #define HAVE_CEILL 1
68021 _ACEOF
68023 cat >>confdefs.h <<\_ACEOF
68024 #define HAVE_COPYSIGN 1
68025 _ACEOF
68027 cat >>confdefs.h <<\_ACEOF
68028 #define HAVE_COPYSIGNF 1
68029 _ACEOF
68031 cat >>confdefs.h <<\_ACEOF
68032 #define HAVE_COSF 1
68033 _ACEOF
68035 cat >>confdefs.h <<\_ACEOF
68036 #define HAVE_COSL 1
68037 _ACEOF
68039 cat >>confdefs.h <<\_ACEOF
68040 #define HAVE_COSHF 1
68041 _ACEOF
68043 cat >>confdefs.h <<\_ACEOF
68044 #define HAVE_COSHL 1
68045 _ACEOF
68047 cat >>confdefs.h <<\_ACEOF
68048 #define HAVE_EXPF 1
68049 _ACEOF
68051 cat >>confdefs.h <<\_ACEOF
68052 #define HAVE_EXPL 1
68053 _ACEOF
68055 cat >>confdefs.h <<\_ACEOF
68056 #define HAVE_FABSF 1
68057 _ACEOF
68059 cat >>confdefs.h <<\_ACEOF
68060 #define HAVE_FABSL 1
68061 _ACEOF
68063 cat >>confdefs.h <<\_ACEOF
68064 #define HAVE_FLOORF 1
68065 _ACEOF
68067 cat >>confdefs.h <<\_ACEOF
68068 #define HAVE_FLOORL 1
68069 _ACEOF
68071 cat >>confdefs.h <<\_ACEOF
68072 #define HAVE_FMODF 1
68073 _ACEOF
68075 cat >>confdefs.h <<\_ACEOF
68076 #define HAVE_FMODL 1
68077 _ACEOF
68079 cat >>confdefs.h <<\_ACEOF
68080 #define HAVE_FREXPF 1
68081 _ACEOF
68083 cat >>confdefs.h <<\_ACEOF
68084 #define HAVE_FREXPL 1
68085 _ACEOF
68087 cat >>confdefs.h <<\_ACEOF
68088 #define HAVE_LDEXPF 1
68089 _ACEOF
68091 cat >>confdefs.h <<\_ACEOF
68092 #define HAVE_LDEXPL 1
68093 _ACEOF
68095 cat >>confdefs.h <<\_ACEOF
68096 #define HAVE_LOG10F 1
68097 _ACEOF
68099 cat >>confdefs.h <<\_ACEOF
68100 #define HAVE_LOG10L 1
68101 _ACEOF
68103 cat >>confdefs.h <<\_ACEOF
68104 #define HAVE_LOGF 1
68105 _ACEOF
68107 cat >>confdefs.h <<\_ACEOF
68108 #define HAVE_MODFF 1
68109 _ACEOF
68111 cat >>confdefs.h <<\_ACEOF
68112 #define HAVE_MODFL 1
68113 _ACEOF
68115 cat >>confdefs.h <<\_ACEOF
68116 #define HAVE_POWF 1
68117 _ACEOF
68119 cat >>confdefs.h <<\_ACEOF
68120 #define HAVE_POWL 1
68121 _ACEOF
68123 cat >>confdefs.h <<\_ACEOF
68124 #define HAVE_SINF 1
68125 _ACEOF
68127 cat >>confdefs.h <<\_ACEOF
68128 #define HAVE_SINL 1
68129 _ACEOF
68131 cat >>confdefs.h <<\_ACEOF
68132 #define HAVE_SINHF 1
68133 _ACEOF
68135 cat >>confdefs.h <<\_ACEOF
68136 #define HAVE_SINHL 1
68137 _ACEOF
68139 cat >>confdefs.h <<\_ACEOF
68140 #define HAVE_SQRTF 1
68141 _ACEOF
68143 cat >>confdefs.h <<\_ACEOF
68144 #define HAVE_SQRTL 1
68145 _ACEOF
68147 cat >>confdefs.h <<\_ACEOF
68148 #define HAVE_TANF 1
68149 _ACEOF
68151 cat >>confdefs.h <<\_ACEOF
68152 #define HAVE_TANL 1
68153 _ACEOF
68155 cat >>confdefs.h <<\_ACEOF
68156 #define HAVE_TANHF 1
68157 _ACEOF
68159 cat >>confdefs.h <<\_ACEOF
68160 #define HAVE_TANHL 1
68161 _ACEOF
68165 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
68166 echo "$as_me: error: No support for this host/target combination." >&2;}
68167 { (exit 1); exit 1; }; }
68169 esac
68174 # At some point, we should differentiate between architectures
68175 # like x86, which have long double versions, and alpha/powerpc/etc.,
68176 # which don't. For the time being, punt.
68177 if test x"long_double_math_on_this_cpu" = x"yes"; then
68178 cat >>confdefs.h <<\_ACEOF
68179 #define HAVE_ACOSL 1
68180 _ACEOF
68182 cat >>confdefs.h <<\_ACEOF
68183 #define HAVE_ASINL 1
68184 _ACEOF
68186 cat >>confdefs.h <<\_ACEOF
68187 #define HAVE_ATAN2L 1
68188 _ACEOF
68190 cat >>confdefs.h <<\_ACEOF
68191 #define HAVE_ATANL 1
68192 _ACEOF
68194 cat >>confdefs.h <<\_ACEOF
68195 #define HAVE_CEILL 1
68196 _ACEOF
68198 cat >>confdefs.h <<\_ACEOF
68199 #define HAVE_COPYSIGNL 1
68200 _ACEOF
68202 cat >>confdefs.h <<\_ACEOF
68203 #define HAVE_COSL 1
68204 _ACEOF
68206 cat >>confdefs.h <<\_ACEOF
68207 #define HAVE_COSHL 1
68208 _ACEOF
68210 cat >>confdefs.h <<\_ACEOF
68211 #define HAVE_EXPL 1
68212 _ACEOF
68214 cat >>confdefs.h <<\_ACEOF
68215 #define HAVE_FABSL 1
68216 _ACEOF
68218 cat >>confdefs.h <<\_ACEOF
68219 #define HAVE_FLOORL 1
68220 _ACEOF
68222 cat >>confdefs.h <<\_ACEOF
68223 #define HAVE_FMODL 1
68224 _ACEOF
68226 cat >>confdefs.h <<\_ACEOF
68227 #define HAVE_FREXPL 1
68228 _ACEOF
68230 cat >>confdefs.h <<\_ACEOF
68231 #define HAVE_LDEXPL 1
68232 _ACEOF
68234 cat >>confdefs.h <<\_ACEOF
68235 #define HAVE_LOG10L 1
68236 _ACEOF
68238 cat >>confdefs.h <<\_ACEOF
68239 #define HAVE_LOGL 1
68240 _ACEOF
68242 cat >>confdefs.h <<\_ACEOF
68243 #define HAVE_MODFL 1
68244 _ACEOF
68246 cat >>confdefs.h <<\_ACEOF
68247 #define HAVE_POWL 1
68248 _ACEOF
68250 cat >>confdefs.h <<\_ACEOF
68251 #define HAVE_SINCOSL 1
68252 _ACEOF
68254 cat >>confdefs.h <<\_ACEOF
68255 #define HAVE_SINL 1
68256 _ACEOF
68258 cat >>confdefs.h <<\_ACEOF
68259 #define HAVE_SINHL 1
68260 _ACEOF
68262 cat >>confdefs.h <<\_ACEOF
68263 #define HAVE_SQRTL 1
68264 _ACEOF
68266 cat >>confdefs.h <<\_ACEOF
68267 #define HAVE_TANL 1
68268 _ACEOF
68270 cat >>confdefs.h <<\_ACEOF
68271 #define HAVE_TANHL 1
68272 _ACEOF
68278 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
68281 # Check whether --enable-symvers or --disable-symvers was given.
68282 if test "${enable_symvers+set}" = set; then
68283 enableval="$enable_symvers"
68285 case "$enableval" in
68286 yes|no|gnu) ;;
68287 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
68288 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
68289 { (exit 1); exit 1; }; } ;;
68290 esac
68292 else
68293 enable_symvers=yes
68297 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
68298 # don't know enough about $LD to do tricks...
68300 # FIXME The following test is too strict, in theory.
68301 if test $enable_shared = no ||
68302 test "x$LD" = x ||
68303 test x$glibcxx_gnu_ld_version = x; then
68304 enable_symvers=no
68307 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
68308 if test $enable_symvers != no; then
68309 echo "$as_me:$LINENO: checking for shared libgcc" >&5
68310 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
68311 ac_save_CFLAGS="$CFLAGS"
68312 CFLAGS=' -lgcc_s'
68313 if test x$gcc_no_link = xyes; then
68314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68316 { (exit 1); exit 1; }; }
68318 cat >conftest.$ac_ext <<_ACEOF
68319 /* confdefs.h. */
68320 _ACEOF
68321 cat confdefs.h >>conftest.$ac_ext
68322 cat >>conftest.$ac_ext <<_ACEOF
68323 /* end confdefs.h. */
68326 main ()
68328 return 0;
68330 return 0;
68332 _ACEOF
68333 rm -f conftest.$ac_objext conftest$ac_exeext
68334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68335 (eval $ac_link) 2>conftest.er1
68336 ac_status=$?
68337 grep -v '^ *+' conftest.er1 >conftest.err
68338 rm -f conftest.er1
68339 cat conftest.err >&5
68340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68341 (exit $ac_status); } &&
68342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68344 (eval $ac_try) 2>&5
68345 ac_status=$?
68346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68347 (exit $ac_status); }; } &&
68348 { ac_try='test -s conftest$ac_exeext'
68349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68350 (eval $ac_try) 2>&5
68351 ac_status=$?
68352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68353 (exit $ac_status); }; }; then
68354 glibcxx_shared_libgcc=yes
68355 else
68356 echo "$as_me: failed program was:" >&5
68357 sed 's/^/| /' conftest.$ac_ext >&5
68359 glibcxx_shared_libgcc=no
68361 rm -f conftest.err conftest.$ac_objext \
68362 conftest$ac_exeext conftest.$ac_ext
68363 CFLAGS="$ac_save_CFLAGS"
68364 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
68365 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
68368 # For GNU ld, we need at least this version. The format is described in
68369 # GLIBCXX_CHECK_LINKER_FEATURES above.
68370 glibcxx_min_gnu_ld_version=21400
68371 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
68373 # Check to see if unspecified "yes" value can win, given results above.
68374 # Change "yes" into either "no" or a style name.
68375 if test $enable_symvers = yes; then
68376 if test $with_gnu_ld = yes &&
68377 test $glibcxx_shared_libgcc = yes;
68378 then
68379 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
68380 enable_symvers=gnu
68381 else
68382 # The right tools, the right setup, but too old. Fallbacks?
68383 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
68384 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
68385 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
68386 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
68387 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
68388 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
68389 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
68390 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
68391 if test $glibcxx_gnu_ld_version -ge 21200 ; then
68392 # Globbing fix is present, proper block support is not.
68393 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
68394 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
68395 enable_symvers=no
68396 else
68397 # 2.11 or older.
68398 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
68399 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
68400 enable_symvers=no
68403 else
68404 # just fail for now
68405 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
68406 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
68407 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
68408 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
68409 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
68410 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
68411 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
68412 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
68413 enable_symvers=no
68417 # Everything parsed; figure out what file to use.
68418 case $enable_symvers in
68420 SYMVER_MAP=config/linker-map.dummy
68422 gnu)
68423 SYMVER_MAP=config/linker-map.gnu
68424 cat >>confdefs.h <<\_ACEOF
68425 #define _GLIBCXX_SYMVER 1
68426 _ACEOF
68429 esac
68434 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
68435 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
68438 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
68440 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
68441 # Do checks for memory limit functions.
68443 setrlimit_have_headers=yes
68447 for ac_header in unistd.h sys/time.h sys/resource.h
68449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
68450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68451 echo "$as_me:$LINENO: checking for $ac_header" >&5
68452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68454 echo $ECHO_N "(cached) $ECHO_C" >&6
68456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68458 else
68459 # Is the header compilable?
68460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
68461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
68462 cat >conftest.$ac_ext <<_ACEOF
68463 /* confdefs.h. */
68464 _ACEOF
68465 cat confdefs.h >>conftest.$ac_ext
68466 cat >>conftest.$ac_ext <<_ACEOF
68467 /* end confdefs.h. */
68468 $ac_includes_default
68469 #include <$ac_header>
68470 _ACEOF
68471 rm -f conftest.$ac_objext
68472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68473 (eval $ac_compile) 2>conftest.er1
68474 ac_status=$?
68475 grep -v '^ *+' conftest.er1 >conftest.err
68476 rm -f conftest.er1
68477 cat conftest.err >&5
68478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68479 (exit $ac_status); } &&
68480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68482 (eval $ac_try) 2>&5
68483 ac_status=$?
68484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68485 (exit $ac_status); }; } &&
68486 { ac_try='test -s conftest.$ac_objext'
68487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68488 (eval $ac_try) 2>&5
68489 ac_status=$?
68490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68491 (exit $ac_status); }; }; then
68492 ac_header_compiler=yes
68493 else
68494 echo "$as_me: failed program was:" >&5
68495 sed 's/^/| /' conftest.$ac_ext >&5
68497 ac_header_compiler=no
68499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68501 echo "${ECHO_T}$ac_header_compiler" >&6
68503 # Is the header present?
68504 echo "$as_me:$LINENO: checking $ac_header presence" >&5
68505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
68506 cat >conftest.$ac_ext <<_ACEOF
68507 /* confdefs.h. */
68508 _ACEOF
68509 cat confdefs.h >>conftest.$ac_ext
68510 cat >>conftest.$ac_ext <<_ACEOF
68511 /* end confdefs.h. */
68512 #include <$ac_header>
68513 _ACEOF
68514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68516 ac_status=$?
68517 grep -v '^ *+' conftest.er1 >conftest.err
68518 rm -f conftest.er1
68519 cat conftest.err >&5
68520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68521 (exit $ac_status); } >/dev/null; then
68522 if test -s conftest.err; then
68523 ac_cpp_err=$ac_c_preproc_warn_flag
68524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68525 else
68526 ac_cpp_err=
68528 else
68529 ac_cpp_err=yes
68531 if test -z "$ac_cpp_err"; then
68532 ac_header_preproc=yes
68533 else
68534 echo "$as_me: failed program was:" >&5
68535 sed 's/^/| /' conftest.$ac_ext >&5
68537 ac_header_preproc=no
68539 rm -f conftest.err conftest.$ac_ext
68540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68541 echo "${ECHO_T}$ac_header_preproc" >&6
68543 # So? What about this header?
68544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68545 yes:no: )
68546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68550 ac_header_preproc=yes
68552 no:yes:* )
68553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
68556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
68557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
68560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
68561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68566 cat <<\_ASBOX
68567 ## ----------------------------------------- ##
68568 ## Report this to the package-unused lists. ##
68569 ## ----------------------------------------- ##
68570 _ASBOX
68572 sed "s/^/$as_me: WARNING: /" >&2
68574 esac
68575 echo "$as_me:$LINENO: checking for $ac_header" >&5
68576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68578 echo $ECHO_N "(cached) $ECHO_C" >&6
68579 else
68580 eval "$as_ac_Header=\$ac_header_preproc"
68582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68587 cat >>confdefs.h <<_ACEOF
68588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68589 _ACEOF
68591 else
68592 setrlimit_have_headers=no
68595 done
68597 # If don't have the headers, then we can't run the tests now, and we
68598 # won't be seeing any of these during testsuite compilation.
68599 if test $setrlimit_have_headers = yes; then
68600 # Can't do these in a loop, else the resulting syntax is wrong.
68602 cat >conftest.$ac_ext <<_ACEOF
68603 /* confdefs.h. */
68604 _ACEOF
68605 cat confdefs.h >>conftest.$ac_ext
68606 cat >>conftest.$ac_ext <<_ACEOF
68607 /* end confdefs.h. */
68608 #include <unistd.h>
68609 #include <sys/time.h>
68610 #include <sys/resource.h>
68613 main ()
68615 int f = RLIMIT_DATA ;
68617 return 0;
68619 _ACEOF
68620 rm -f conftest.$ac_objext
68621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68622 (eval $ac_compile) 2>conftest.er1
68623 ac_status=$?
68624 grep -v '^ *+' conftest.er1 >conftest.err
68625 rm -f conftest.er1
68626 cat conftest.err >&5
68627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68628 (exit $ac_status); } &&
68629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68631 (eval $ac_try) 2>&5
68632 ac_status=$?
68633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68634 (exit $ac_status); }; } &&
68635 { ac_try='test -s conftest.$ac_objext'
68636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68637 (eval $ac_try) 2>&5
68638 ac_status=$?
68639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68640 (exit $ac_status); }; }; then
68641 glibcxx_mresult=1
68642 else
68643 echo "$as_me: failed program was:" >&5
68644 sed 's/^/| /' conftest.$ac_ext >&5
68646 glibcxx_mresult=0
68648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68650 cat >>confdefs.h <<_ACEOF
68651 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
68652 _ACEOF
68656 cat >conftest.$ac_ext <<_ACEOF
68657 /* confdefs.h. */
68658 _ACEOF
68659 cat confdefs.h >>conftest.$ac_ext
68660 cat >>conftest.$ac_ext <<_ACEOF
68661 /* end confdefs.h. */
68662 #include <unistd.h>
68663 #include <sys/time.h>
68664 #include <sys/resource.h>
68667 main ()
68669 int f = RLIMIT_RSS ;
68671 return 0;
68673 _ACEOF
68674 rm -f conftest.$ac_objext
68675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68676 (eval $ac_compile) 2>conftest.er1
68677 ac_status=$?
68678 grep -v '^ *+' conftest.er1 >conftest.err
68679 rm -f conftest.er1
68680 cat conftest.err >&5
68681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68682 (exit $ac_status); } &&
68683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68685 (eval $ac_try) 2>&5
68686 ac_status=$?
68687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68688 (exit $ac_status); }; } &&
68689 { ac_try='test -s conftest.$ac_objext'
68690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68691 (eval $ac_try) 2>&5
68692 ac_status=$?
68693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68694 (exit $ac_status); }; }; then
68695 glibcxx_mresult=1
68696 else
68697 echo "$as_me: failed program was:" >&5
68698 sed 's/^/| /' conftest.$ac_ext >&5
68700 glibcxx_mresult=0
68702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68704 cat >>confdefs.h <<_ACEOF
68705 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
68706 _ACEOF
68710 cat >conftest.$ac_ext <<_ACEOF
68711 /* confdefs.h. */
68712 _ACEOF
68713 cat confdefs.h >>conftest.$ac_ext
68714 cat >>conftest.$ac_ext <<_ACEOF
68715 /* end confdefs.h. */
68716 #include <unistd.h>
68717 #include <sys/time.h>
68718 #include <sys/resource.h>
68721 main ()
68723 int f = RLIMIT_VMEM ;
68725 return 0;
68727 _ACEOF
68728 rm -f conftest.$ac_objext
68729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68730 (eval $ac_compile) 2>conftest.er1
68731 ac_status=$?
68732 grep -v '^ *+' conftest.er1 >conftest.err
68733 rm -f conftest.er1
68734 cat conftest.err >&5
68735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68736 (exit $ac_status); } &&
68737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68739 (eval $ac_try) 2>&5
68740 ac_status=$?
68741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68742 (exit $ac_status); }; } &&
68743 { ac_try='test -s conftest.$ac_objext'
68744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68745 (eval $ac_try) 2>&5
68746 ac_status=$?
68747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68748 (exit $ac_status); }; }; then
68749 glibcxx_mresult=1
68750 else
68751 echo "$as_me: failed program was:" >&5
68752 sed 's/^/| /' conftest.$ac_ext >&5
68754 glibcxx_mresult=0
68756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68758 cat >>confdefs.h <<_ACEOF
68759 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
68760 _ACEOF
68764 cat >conftest.$ac_ext <<_ACEOF
68765 /* confdefs.h. */
68766 _ACEOF
68767 cat confdefs.h >>conftest.$ac_ext
68768 cat >>conftest.$ac_ext <<_ACEOF
68769 /* end confdefs.h. */
68770 #include <unistd.h>
68771 #include <sys/time.h>
68772 #include <sys/resource.h>
68775 main ()
68777 int f = RLIMIT_AS ;
68779 return 0;
68781 _ACEOF
68782 rm -f conftest.$ac_objext
68783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68784 (eval $ac_compile) 2>conftest.er1
68785 ac_status=$?
68786 grep -v '^ *+' conftest.er1 >conftest.err
68787 rm -f conftest.er1
68788 cat conftest.err >&5
68789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68790 (exit $ac_status); } &&
68791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68793 (eval $ac_try) 2>&5
68794 ac_status=$?
68795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68796 (exit $ac_status); }; } &&
68797 { ac_try='test -s conftest.$ac_objext'
68798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68799 (eval $ac_try) 2>&5
68800 ac_status=$?
68801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68802 (exit $ac_status); }; }; then
68803 glibcxx_mresult=1
68804 else
68805 echo "$as_me: failed program was:" >&5
68806 sed 's/^/| /' conftest.$ac_ext >&5
68808 glibcxx_mresult=0
68810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68812 cat >>confdefs.h <<_ACEOF
68813 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
68814 _ACEOF
68818 # Check for rlimit, setrlimit.
68819 if test "${ac_setrlimit+set}" = set; then
68820 echo $ECHO_N "(cached) $ECHO_C" >&6
68821 else
68823 cat >conftest.$ac_ext <<_ACEOF
68824 /* confdefs.h. */
68825 _ACEOF
68826 cat confdefs.h >>conftest.$ac_ext
68827 cat >>conftest.$ac_ext <<_ACEOF
68828 /* end confdefs.h. */
68829 #include <unistd.h>
68830 #include <sys/time.h>
68831 #include <sys/resource.h>
68834 main ()
68836 struct rlimit r;
68837 setrlimit(0, &r);
68839 return 0;
68841 _ACEOF
68842 rm -f conftest.$ac_objext
68843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68844 (eval $ac_compile) 2>conftest.er1
68845 ac_status=$?
68846 grep -v '^ *+' conftest.er1 >conftest.err
68847 rm -f conftest.er1
68848 cat conftest.err >&5
68849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68850 (exit $ac_status); } &&
68851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
68852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68853 (eval $ac_try) 2>&5
68854 ac_status=$?
68855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68856 (exit $ac_status); }; } &&
68857 { ac_try='test -s conftest.$ac_objext'
68858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68859 (eval $ac_try) 2>&5
68860 ac_status=$?
68861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68862 (exit $ac_status); }; }; then
68863 ac_setrlimit=yes
68864 else
68865 echo "$as_me: failed program was:" >&5
68866 sed 's/^/| /' conftest.$ac_ext >&5
68868 ac_setrlimit=no
68870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68876 echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
68877 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
68878 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
68879 ac_mem_limits=yes
68880 cat >>confdefs.h <<\_ACEOF
68881 #define _GLIBCXX_MEM_LIMITS 1
68882 _ACEOF
68884 else
68885 ac_mem_limits=no
68887 echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
68888 echo "${ECHO_T}$ac_mem_limits" >&6
68891 # Look for setenv, so that extended locale tests can be performed.
68893 echo "$as_me:$LINENO: checking for setenv declaration" >&5
68894 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
68895 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
68896 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
68897 echo $ECHO_N "(cached) $ECHO_C" >&6
68898 else
68902 ac_ext=cc
68903 ac_cpp='$CXXCPP $CPPFLAGS'
68904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
68908 cat >conftest.$ac_ext <<_ACEOF
68909 /* confdefs.h. */
68910 _ACEOF
68911 cat confdefs.h >>conftest.$ac_ext
68912 cat >>conftest.$ac_ext <<_ACEOF
68913 /* end confdefs.h. */
68914 #include <stdlib.h>
68916 main ()
68918 setenv(0, 0, 0);
68920 return 0;
68922 _ACEOF
68923 rm -f conftest.$ac_objext
68924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68925 (eval $ac_compile) 2>conftest.er1
68926 ac_status=$?
68927 grep -v '^ *+' conftest.er1 >conftest.err
68928 rm -f conftest.er1
68929 cat conftest.err >&5
68930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68931 (exit $ac_status); } &&
68932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
68933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68934 (eval $ac_try) 2>&5
68935 ac_status=$?
68936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68937 (exit $ac_status); }; } &&
68938 { ac_try='test -s conftest.$ac_objext'
68939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68940 (eval $ac_try) 2>&5
68941 ac_status=$?
68942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68943 (exit $ac_status); }; }; then
68944 glibcxx_cv_func_setenv_use=yes
68945 else
68946 echo "$as_me: failed program was:" >&5
68947 sed 's/^/| /' conftest.$ac_ext >&5
68949 glibcxx_cv_func_setenv_use=no
68951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68952 ac_ext=c
68953 ac_cpp='$CPP $CPPFLAGS'
68954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
68962 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
68963 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
68964 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
68966 for ac_func in setenv
68968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68969 echo "$as_me:$LINENO: checking for $ac_func" >&5
68970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68971 if eval "test \"\${$as_ac_var+set}\" = set"; then
68972 echo $ECHO_N "(cached) $ECHO_C" >&6
68973 else
68974 if test x$gcc_no_link = xyes; then
68975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68977 { (exit 1); exit 1; }; }
68979 cat >conftest.$ac_ext <<_ACEOF
68980 /* confdefs.h. */
68981 _ACEOF
68982 cat confdefs.h >>conftest.$ac_ext
68983 cat >>conftest.$ac_ext <<_ACEOF
68984 /* end confdefs.h. */
68985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68987 #define $ac_func innocuous_$ac_func
68989 /* System header to define __stub macros and hopefully few prototypes,
68990 which can conflict with char $ac_func (); below.
68991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68992 <limits.h> exists even on freestanding compilers. */
68994 #ifdef __STDC__
68995 # include <limits.h>
68996 #else
68997 # include <assert.h>
68998 #endif
69000 #undef $ac_func
69002 /* Override any gcc2 internal prototype to avoid an error. */
69003 #ifdef __cplusplus
69004 extern "C"
69006 #endif
69007 /* We use char because int might match the return type of a gcc2
69008 builtin and then its argument prototype would still apply. */
69009 char $ac_func ();
69010 /* The GNU C library defines this for functions which it implements
69011 to always fail with ENOSYS. Some functions are actually named
69012 something starting with __ and the normal name is an alias. */
69013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69014 choke me
69015 #else
69016 char (*f) () = $ac_func;
69017 #endif
69018 #ifdef __cplusplus
69020 #endif
69023 main ()
69025 return f != $ac_func;
69027 return 0;
69029 _ACEOF
69030 rm -f conftest.$ac_objext conftest$ac_exeext
69031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69032 (eval $ac_link) 2>conftest.er1
69033 ac_status=$?
69034 grep -v '^ *+' conftest.er1 >conftest.err
69035 rm -f conftest.er1
69036 cat conftest.err >&5
69037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69038 (exit $ac_status); } &&
69039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
69040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69041 (eval $ac_try) 2>&5
69042 ac_status=$?
69043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69044 (exit $ac_status); }; } &&
69045 { ac_try='test -s conftest$ac_exeext'
69046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69047 (eval $ac_try) 2>&5
69048 ac_status=$?
69049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69050 (exit $ac_status); }; }; then
69051 eval "$as_ac_var=yes"
69052 else
69053 echo "$as_me: failed program was:" >&5
69054 sed 's/^/| /' conftest.$ac_ext >&5
69056 eval "$as_ac_var=no"
69058 rm -f conftest.err conftest.$ac_objext \
69059 conftest$ac_exeext conftest.$ac_ext
69061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69063 if test `eval echo '${'$as_ac_var'}'` = yes; then
69064 cat >>confdefs.h <<_ACEOF
69065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69066 _ACEOF
69069 done
69074 if test $enable_symvers = no; then
69075 enable_abi_check=no
69076 else
69077 case "$host" in
69078 *-*-cygwin*)
69079 enable_abi_check=no ;;
69081 enable_abi_check=yes ;;
69082 esac
69084 else
69085 # Only build this as native, since automake does not understand
69086 # CXX_FOR_BUILD.
69087 enable_abi_check=no
69090 # Export file names for ABI checking.
69091 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
69098 # Propagate the target-specific source directories through the build chain.
69099 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
69100 # uses it, and it only gets used in this file.)
69101 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
69102 OS_INC_SRCDIR=config/${os_include_dir}
69106 # Determine cross-compile flags and AM_CONDITIONALs.
69107 #AC_SUBST(GLIBCXX_IS_NATIVE)
69108 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
69109 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
69110 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
69113 if test $is_hosted = yes; then
69114 GLIBCXX_HOSTED_TRUE=
69115 GLIBCXX_HOSTED_FALSE='#'
69116 else
69117 GLIBCXX_HOSTED_TRUE='#'
69118 GLIBCXX_HOSTED_FALSE=
69124 if test $enable_libstdcxx_pch = yes; then
69125 GLIBCXX_BUILD_PCH_TRUE=
69126 GLIBCXX_BUILD_PCH_FALSE='#'
69127 else
69128 GLIBCXX_BUILD_PCH_TRUE='#'
69129 GLIBCXX_BUILD_PCH_FALSE=
69135 if test $enable_cheaders = c; then
69136 GLIBCXX_C_HEADERS_C_TRUE=
69137 GLIBCXX_C_HEADERS_C_FALSE='#'
69138 else
69139 GLIBCXX_C_HEADERS_C_TRUE='#'
69140 GLIBCXX_C_HEADERS_C_FALSE=
69146 if test $enable_cheaders = c_std; then
69147 GLIBCXX_C_HEADERS_C_STD_TRUE=
69148 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
69149 else
69150 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
69151 GLIBCXX_C_HEADERS_C_STD_FALSE=
69157 if test $c_compatibility = yes; then
69158 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
69159 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
69160 else
69161 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
69162 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
69168 if test $enable_libstdcxx_debug = yes; then
69169 GLIBCXX_BUILD_DEBUG_TRUE=
69170 GLIBCXX_BUILD_DEBUG_FALSE='#'
69171 else
69172 GLIBCXX_BUILD_DEBUG_TRUE='#'
69173 GLIBCXX_BUILD_DEBUG_FALSE=
69179 if test $enable_symvers != no; then
69180 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
69181 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
69182 else
69183 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
69184 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
69190 if test $enable_wchar_t = yes; then
69191 GLIBCXX_TEST_WCHAR_T_TRUE=
69192 GLIBCXX_TEST_WCHAR_T_FALSE='#'
69193 else
69194 GLIBCXX_TEST_WCHAR_T_TRUE='#'
69195 GLIBCXX_TEST_WCHAR_T_FALSE=
69201 if test $enable_abi_check = yes; then
69202 GLIBCXX_TEST_ABI_TRUE=
69203 GLIBCXX_TEST_ABI_FALSE='#'
69204 else
69205 GLIBCXX_TEST_ABI_TRUE='#'
69206 GLIBCXX_TEST_ABI_FALSE=
69212 cat >confcache <<\_ACEOF
69213 # This file is a shell script that caches the results of configure
69214 # tests run on this system so they can be shared between configure
69215 # scripts and configure runs, see configure's option --config-cache.
69216 # It is not useful on other systems. If it contains results you don't
69217 # want to keep, you may remove or edit it.
69219 # config.status only pays attention to the cache file if you give it
69220 # the --recheck option to rerun configure.
69222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
69223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
69224 # following values.
69226 _ACEOF
69228 # The following way of writing the cache mishandles newlines in values,
69229 # but we know of no workaround that is simple, portable, and efficient.
69230 # So, don't put newlines in cache variables' values.
69231 # Ultrix sh set writes to stderr and can't be redirected directly,
69232 # and sets the high bit in the cache file unless we assign to the vars.
69234 (set) 2>&1 |
69235 case `(ac_space=' '; set | grep ac_space) 2>&1` in
69236 *ac_space=\ *)
69237 # `set' does not quote correctly, so add quotes (double-quote
69238 # substitution turns \\\\ into \\, and sed turns \\ into \).
69239 sed -n \
69240 "s/'/'\\\\''/g;
69241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
69244 # `set' quotes correctly as required by POSIX, so do not add quotes.
69245 sed -n \
69246 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
69248 esac;
69250 sed '
69251 t clear
69252 : clear
69253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
69254 t end
69255 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
69256 : end' >>confcache
69257 if diff $cache_file confcache >/dev/null 2>&1; then :; else
69258 if test -w $cache_file; then
69259 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
69260 cat confcache >$cache_file
69261 else
69262 echo "not updating unwritable cache $cache_file"
69265 rm -f confcache
69267 if test ${multilib} = yes; then
69268 multilib_arg="--enable-multilib"
69269 else
69270 multilib_arg=
69273 # Export all the install information.
69275 glibcxx_toolexecdir=no
69276 glibcxx_toolexeclibdir=no
69277 glibcxx_prefixdir=$prefix
69279 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
69280 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
69282 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
69283 if test "${with_gxx_include_dir+set}" = set; then
69284 withval="$with_gxx_include_dir"
69285 case "$withval" in
69286 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
69287 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
69288 { (exit 1); exit 1; }; } ;;
69289 no) gxx_include_dir=no ;;
69290 *) gxx_include_dir=$withval ;;
69291 esac
69292 else
69293 gxx_include_dir=no
69295 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
69296 echo "${ECHO_T}$gxx_include_dir" >&6
69298 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
69299 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
69300 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
69301 if test "${enable_version_specific_runtime_libs+set}" = set; then
69302 enableval="$enable_version_specific_runtime_libs"
69303 case "$enableval" in
69304 yes) version_specific_libs=yes ;;
69305 no) version_specific_libs=no ;;
69306 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
69307 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
69308 { (exit 1); exit 1; }; };;
69309 esac
69310 else
69311 version_specific_libs=no
69313 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
69314 echo "${ECHO_T}$version_specific_libs" >&6
69316 # Default case for install directory for include files.
69317 if test $version_specific_libs = no && test $gxx_include_dir = no; then
69318 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
69321 # Version-specific runtime libs processing.
69322 if test $version_specific_libs = yes; then
69323 # Need the gcc compiler version to know where to install libraries
69324 # and header files if --enable-version-specific-runtime-libs option
69325 # is selected.
69326 if test x"$gxx_include_dir" = x"no"; then
69327 gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
69329 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
69330 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
69333 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
69334 # Install a library built with a cross compiler in tooldir, not libdir.
69335 if test x"$glibcxx_toolexecdir" = x"no"; then
69336 if test -n "$with_cross_host" &&
69337 test x"$with_cross_host" != x"no"; then
69338 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
69339 glibcxx_toolexeclibdir='${toolexecdir}/lib'
69340 else
69341 glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
69342 glibcxx_toolexeclibdir='${libdir}'
69344 multi_os_directory=`$CXX -print-multi-os-directory`
69345 case $multi_os_directory in
69346 .) ;; # Avoid trailing /.
69347 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
69348 esac
69351 echo "$as_me:$LINENO: checking for install location" >&5
69352 echo $ECHO_N "checking for install location... $ECHO_C" >&6
69353 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
69354 echo "${ECHO_T}$gxx_include_dir" >&6
69362 # Export all the include and flag information to Makefiles.
69364 # Used for every C++ compile we perform.
69365 GLIBCXX_INCLUDES="\
69366 -I$glibcxx_builddir/include/$host_alias \
69367 -I$glibcxx_builddir/include \
69368 -I$glibcxx_srcdir/libsupc++"
69370 # For Canadian crosses, pick this up too.
69371 if test $CANADIAN = yes; then
69372 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
69375 # Stuff in the actual top level. Currently only used by libsupc++ to
69376 # get unwind* headers from the gcc dir.
69377 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
69378 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
69380 # Now, export this to all the little Makefiles....
69385 # Optimization flags that are probably a good idea for thrill-seekers. Just
69386 # uncomment the lines below and make, everything else is ready to go...
69387 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
69388 OPTIMIZE_CXXFLAGS=
69391 WARN_FLAGS='-Wall -W -Wwrite-strings -Wcast-qual'
69395 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
69396 grep "enable shared" > /dev/null;
69397 then
69398 LIBSUPCXX_PICFLAGS=-prefer-pic
69399 else
69400 LIBSUPCXX_PICFLAGS=
69404 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
69406 ac_config_files="$ac_config_files scripts/check_survey"
69408 ac_config_files="$ac_config_files scripts/testsuite_flags"
69411 ac_config_commands="$ac_config_commands default"
69414 cat >confcache <<\_ACEOF
69415 # This file is a shell script that caches the results of configure
69416 # tests run on this system so they can be shared between configure
69417 # scripts and configure runs, see configure's option --config-cache.
69418 # It is not useful on other systems. If it contains results you don't
69419 # want to keep, you may remove or edit it.
69421 # config.status only pays attention to the cache file if you give it
69422 # the --recheck option to rerun configure.
69424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
69425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
69426 # following values.
69428 _ACEOF
69430 # The following way of writing the cache mishandles newlines in values,
69431 # but we know of no workaround that is simple, portable, and efficient.
69432 # So, don't put newlines in cache variables' values.
69433 # Ultrix sh set writes to stderr and can't be redirected directly,
69434 # and sets the high bit in the cache file unless we assign to the vars.
69436 (set) 2>&1 |
69437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
69438 *ac_space=\ *)
69439 # `set' does not quote correctly, so add quotes (double-quote
69440 # substitution turns \\\\ into \\, and sed turns \\ into \).
69441 sed -n \
69442 "s/'/'\\\\''/g;
69443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
69446 # `set' quotes correctly as required by POSIX, so do not add quotes.
69447 sed -n \
69448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
69450 esac;
69452 sed '
69453 t clear
69454 : clear
69455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
69456 t end
69457 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
69458 : end' >>confcache
69459 if diff $cache_file confcache >/dev/null 2>&1; then :; else
69460 if test -w $cache_file; then
69461 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
69462 cat confcache >$cache_file
69463 else
69464 echo "not updating unwritable cache $cache_file"
69467 rm -f confcache
69469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
69470 # Let make expand exec_prefix.
69471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
69473 # VPATH may cause trouble with some makes, so we remove $(srcdir),
69474 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
69475 # trailing colons and then remove the whole line if VPATH becomes empty
69476 # (actually we leave an empty line to preserve line numbers).
69477 if test "x$srcdir" = x.; then
69478 ac_vpsub='/^[ ]*VPATH[ ]*=/{
69479 s/:*\$(srcdir):*/:/;
69480 s/:*\${srcdir}:*/:/;
69481 s/:*@srcdir@:*/:/;
69482 s/^\([^=]*=[ ]*\):*/\1/;
69483 s/:*$//;
69484 s/^[^=]*=[ ]*$//;
69488 DEFS=-DHAVE_CONFIG_H
69490 ac_libobjs=
69491 ac_ltlibobjs=
69492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
69493 # 1. Remove the extension, and $U if already installed.
69494 ac_i=`echo "$ac_i" |
69495 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
69496 # 2. Add them.
69497 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
69498 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
69499 done
69500 LIBOBJS=$ac_libobjs
69502 LTLIBOBJS=$ac_ltlibobjs
69505 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
69506 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
69507 Usually this means the macro was only invoked conditionally." >&5
69508 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
69509 Usually this means the macro was only invoked conditionally." >&2;}
69510 { (exit 1); exit 1; }; }
69512 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
69513 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
69514 Usually this means the macro was only invoked conditionally." >&5
69515 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
69516 Usually this means the macro was only invoked conditionally." >&2;}
69517 { (exit 1); exit 1; }; }
69519 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
69520 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
69521 Usually this means the macro was only invoked conditionally." >&5
69522 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
69523 Usually this means the macro was only invoked conditionally." >&2;}
69524 { (exit 1); exit 1; }; }
69526 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
69527 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
69528 Usually this means the macro was only invoked conditionally." >&5
69529 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
69530 Usually this means the macro was only invoked conditionally." >&2;}
69531 { (exit 1); exit 1; }; }
69533 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
69534 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
69535 Usually this means the macro was only invoked conditionally." >&5
69536 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
69537 Usually this means the macro was only invoked conditionally." >&2;}
69538 { (exit 1); exit 1; }; }
69540 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
69541 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
69542 Usually this means the macro was only invoked conditionally." >&5
69543 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
69544 Usually this means the macro was only invoked conditionally." >&2;}
69545 { (exit 1); exit 1; }; }
69547 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
69548 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
69549 Usually this means the macro was only invoked conditionally." >&5
69550 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
69551 Usually this means the macro was only invoked conditionally." >&2;}
69552 { (exit 1); exit 1; }; }
69554 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
69555 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
69556 Usually this means the macro was only invoked conditionally." >&5
69557 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
69558 Usually this means the macro was only invoked conditionally." >&2;}
69559 { (exit 1); exit 1; }; }
69561 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
69562 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
69563 Usually this means the macro was only invoked conditionally." >&5
69564 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
69565 Usually this means the macro was only invoked conditionally." >&2;}
69566 { (exit 1); exit 1; }; }
69568 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
69569 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
69570 Usually this means the macro was only invoked conditionally." >&5
69571 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
69572 Usually this means the macro was only invoked conditionally." >&2;}
69573 { (exit 1); exit 1; }; }
69576 : ${CONFIG_STATUS=./config.status}
69577 ac_clean_files_save=$ac_clean_files
69578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
69579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
69580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
69581 cat >$CONFIG_STATUS <<_ACEOF
69582 #! $SHELL
69583 # Generated by $as_me.
69584 # Run this file to recreate the current configuration.
69585 # Compiler output produced by configure, useful for debugging
69586 # configure, is in config.log if it exists.
69588 debug=false
69589 ac_cs_recheck=false
69590 ac_cs_silent=false
69591 SHELL=\${CONFIG_SHELL-$SHELL}
69592 _ACEOF
69594 cat >>$CONFIG_STATUS <<\_ACEOF
69595 ## --------------------- ##
69596 ## M4sh Initialization. ##
69597 ## --------------------- ##
69599 # Be Bourne compatible
69600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
69601 emulate sh
69602 NULLCMD=:
69603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
69604 # is contrary to our usage. Disable this feature.
69605 alias -g '${1+"$@"}'='"$@"'
69606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
69607 set -o posix
69609 DUALCASE=1; export DUALCASE # for MKS sh
69611 # Support unset when possible.
69612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
69613 as_unset=unset
69614 else
69615 as_unset=false
69619 # Work around bugs in pre-3.0 UWIN ksh.
69620 $as_unset ENV MAIL MAILPATH
69621 PS1='$ '
69622 PS2='> '
69623 PS4='+ '
69625 # NLS nuisances.
69626 for as_var in \
69627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
69628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
69629 LC_TELEPHONE LC_TIME
69631 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
69632 eval $as_var=C; export $as_var
69633 else
69634 $as_unset $as_var
69636 done
69638 # Required to use basename.
69639 if expr a : '\(a\)' >/dev/null 2>&1; then
69640 as_expr=expr
69641 else
69642 as_expr=false
69645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69646 as_basename=basename
69647 else
69648 as_basename=false
69652 # Name of the executable.
69653 as_me=`$as_basename "$0" ||
69654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69655 X"$0" : 'X\(//\)$' \| \
69656 X"$0" : 'X\(/\)$' \| \
69657 . : '\(.\)' 2>/dev/null ||
69658 echo X/"$0" |
69659 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
69660 /^X\/\(\/\/\)$/{ s//\1/; q; }
69661 /^X\/\(\/\).*/{ s//\1/; q; }
69662 s/.*/./; q'`
69665 # PATH needs CR, and LINENO needs CR and PATH.
69666 # Avoid depending upon Character Ranges.
69667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
69668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
69669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
69670 as_cr_digits='0123456789'
69671 as_cr_alnum=$as_cr_Letters$as_cr_digits
69673 # The user is always right.
69674 if test "${PATH_SEPARATOR+set}" != set; then
69675 echo "#! /bin/sh" >conf$$.sh
69676 echo "exit 0" >>conf$$.sh
69677 chmod +x conf$$.sh
69678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
69679 PATH_SEPARATOR=';'
69680 else
69681 PATH_SEPARATOR=:
69683 rm -f conf$$.sh
69687 as_lineno_1=$LINENO
69688 as_lineno_2=$LINENO
69689 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
69690 test "x$as_lineno_1" != "x$as_lineno_2" &&
69691 test "x$as_lineno_3" = "x$as_lineno_2" || {
69692 # Find who we are. Look in the path if we contain no path at all
69693 # relative or not.
69694 case $0 in
69695 *[\\/]* ) as_myself=$0 ;;
69696 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69697 for as_dir in $PATH
69699 IFS=$as_save_IFS
69700 test -z "$as_dir" && as_dir=.
69701 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
69702 done
69705 esac
69706 # We did not find ourselves, most probably we were run as `sh COMMAND'
69707 # in which case we are not to be found in the path.
69708 if test "x$as_myself" = x; then
69709 as_myself=$0
69711 if test ! -f "$as_myself"; then
69712 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
69713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
69714 { (exit 1); exit 1; }; }
69716 case $CONFIG_SHELL in
69718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
69721 IFS=$as_save_IFS
69722 test -z "$as_dir" && as_dir=.
69723 for as_base in sh bash ksh sh5; do
69724 case $as_dir in
69726 if ("$as_dir/$as_base" -c '
69727 as_lineno_1=$LINENO
69728 as_lineno_2=$LINENO
69729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
69730 test "x$as_lineno_1" != "x$as_lineno_2" &&
69731 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
69732 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
69733 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
69734 CONFIG_SHELL=$as_dir/$as_base
69735 export CONFIG_SHELL
69736 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
69737 fi;;
69738 esac
69739 done
69740 done
69742 esac
69744 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
69745 # uniformly replaced by the line number. The first 'sed' inserts a
69746 # line-number line before each line; the second 'sed' does the real
69747 # work. The second script uses 'N' to pair each line-number line
69748 # with the numbered line, and appends trailing '-' during
69749 # substitution so that $LINENO is not a special case at line end.
69750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
69751 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
69752 sed '=' <$as_myself |
69753 sed '
69755 s,$,-,
69756 : loop
69757 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
69758 t loop
69759 s,-$,,
69760 s,^['$as_cr_digits']*\n,,
69761 ' >$as_me.lineno &&
69762 chmod +x $as_me.lineno ||
69763 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
69764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
69765 { (exit 1); exit 1; }; }
69767 # Don't try to exec as it changes $[0], causing all sort of problems
69768 # (the dirname of $[0] is not the place where we might find the
69769 # original and so on. Autoconf is especially sensible to this).
69770 . ./$as_me.lineno
69771 # Exit status is that of the last command.
69772 exit
69776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
69777 *c*,-n*) ECHO_N= ECHO_C='
69778 ' ECHO_T=' ' ;;
69779 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
69780 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
69781 esac
69783 if expr a : '\(a\)' >/dev/null 2>&1; then
69784 as_expr=expr
69785 else
69786 as_expr=false
69789 rm -f conf$$ conf$$.exe conf$$.file
69790 echo >conf$$.file
69791 if ln -s conf$$.file conf$$ 2>/dev/null; then
69792 # We could just check for DJGPP; but this test a) works b) is more generic
69793 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
69794 if test -f conf$$.exe; then
69795 # Don't use ln at all; we don't have any links
69796 as_ln_s='cp -p'
69797 else
69798 as_ln_s='ln -s'
69800 elif ln conf$$.file conf$$ 2>/dev/null; then
69801 as_ln_s=ln
69802 else
69803 as_ln_s='cp -p'
69805 rm -f conf$$ conf$$.exe conf$$.file
69807 if mkdir -p . 2>/dev/null; then
69808 as_mkdir_p=:
69809 else
69810 test -d ./-p && rmdir ./-p
69811 as_mkdir_p=false
69814 as_executable_p="test -f"
69816 # Sed expression to map a string onto a valid CPP name.
69817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
69819 # Sed expression to map a string onto a valid variable name.
69820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
69823 # IFS
69824 # We need space, tab and new line, in precisely that order.
69825 as_nl='
69827 IFS=" $as_nl"
69829 # CDPATH.
69830 $as_unset CDPATH
69832 exec 6>&1
69834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
69835 # report actual input values of CONFIG_FILES etc. instead of their
69836 # values after options handling. Logging --version etc. is OK.
69837 exec 5>>config.log
69839 echo
69840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69841 ## Running $as_me. ##
69842 _ASBOX
69843 } >&5
69844 cat >&5 <<_CSEOF
69846 This file was extended by package-unused $as_me version-unused, which was
69847 generated by GNU Autoconf 2.58. Invocation command line was
69849 CONFIG_FILES = $CONFIG_FILES
69850 CONFIG_HEADERS = $CONFIG_HEADERS
69851 CONFIG_LINKS = $CONFIG_LINKS
69852 CONFIG_COMMANDS = $CONFIG_COMMANDS
69853 $ $0 $@
69855 _CSEOF
69856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
69857 echo >&5
69858 _ACEOF
69860 # Files that config.status was made for.
69861 if test -n "$ac_config_files"; then
69862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
69865 if test -n "$ac_config_headers"; then
69866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
69869 if test -n "$ac_config_links"; then
69870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
69873 if test -n "$ac_config_commands"; then
69874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
69877 cat >>$CONFIG_STATUS <<\_ACEOF
69879 ac_cs_usage="\
69880 \`$as_me' instantiates files from templates according to the
69881 current configuration.
69883 Usage: $0 [OPTIONS] [FILE]...
69885 -h, --help print this help, then exit
69886 -V, --version print version number, then exit
69887 -q, --quiet do not print progress messages
69888 -d, --debug don't remove temporary files
69889 --recheck update $as_me by reconfiguring in the same conditions
69890 --file=FILE[:TEMPLATE]
69891 instantiate the configuration file FILE
69892 --header=FILE[:TEMPLATE]
69893 instantiate the configuration header FILE
69895 Configuration files:
69896 $config_files
69898 Configuration headers:
69899 $config_headers
69901 Configuration commands:
69902 $config_commands
69904 Report bugs to <bug-autoconf@gnu.org>."
69905 _ACEOF
69907 cat >>$CONFIG_STATUS <<_ACEOF
69908 ac_cs_version="\\
69909 package-unused config.status version-unused
69910 configured by $0, generated by GNU Autoconf 2.58,
69911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
69913 Copyright (C) 2003 Free Software Foundation, Inc.
69914 This config.status script is free software; the Free Software Foundation
69915 gives unlimited permission to copy, distribute and modify it."
69916 srcdir=$srcdir
69917 INSTALL="$INSTALL"
69918 _ACEOF
69920 cat >>$CONFIG_STATUS <<\_ACEOF
69921 # If no file are specified by the user, then we need to provide default
69922 # value. By we need to know if files were specified by the user.
69923 ac_need_defaults=:
69924 while test $# != 0
69926 case $1 in
69927 --*=*)
69928 ac_option=`expr "x$1" : 'x\([^=]*\)='`
69929 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
69930 ac_shift=:
69933 ac_option=$1
69934 ac_optarg=$2
69935 ac_shift=shift
69937 *) # This is not an option, so the user has probably given explicit
69938 # arguments.
69939 ac_option=$1
69940 ac_need_defaults=false;;
69941 esac
69943 case $ac_option in
69944 # Handling of the options.
69945 _ACEOF
69946 cat >>$CONFIG_STATUS <<\_ACEOF
69947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
69948 ac_cs_recheck=: ;;
69949 --version | --vers* | -V )
69950 echo "$ac_cs_version"; exit 0 ;;
69951 --he | --h)
69952 # Conflict between --help and --header
69953 { { echo "$as_me:$LINENO: error: ambiguous option: $1
69954 Try \`$0 --help' for more information." >&5
69955 echo "$as_me: error: ambiguous option: $1
69956 Try \`$0 --help' for more information." >&2;}
69957 { (exit 1); exit 1; }; };;
69958 --help | --hel | -h )
69959 echo "$ac_cs_usage"; exit 0 ;;
69960 --debug | --d* | -d )
69961 debug=: ;;
69962 --file | --fil | --fi | --f )
69963 $ac_shift
69964 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
69965 ac_need_defaults=false;;
69966 --header | --heade | --head | --hea )
69967 $ac_shift
69968 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
69969 ac_need_defaults=false;;
69970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
69972 ac_cs_silent=: ;;
69974 # This is an error.
69975 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
69976 Try \`$0 --help' for more information." >&5
69977 echo "$as_me: error: unrecognized option: $1
69978 Try \`$0 --help' for more information." >&2;}
69979 { (exit 1); exit 1; }; } ;;
69981 *) ac_config_targets="$ac_config_targets $1" ;;
69983 esac
69984 shift
69985 done
69987 ac_configure_extra_args=
69989 if $ac_cs_silent; then
69990 exec 6>/dev/null
69991 ac_configure_extra_args="$ac_configure_extra_args --silent"
69994 _ACEOF
69995 cat >>$CONFIG_STATUS <<_ACEOF
69996 if \$ac_cs_recheck; then
69997 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
69998 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
70001 _ACEOF
70003 cat >>$CONFIG_STATUS <<_ACEOF
70005 # INIT-COMMANDS section.
70009 srcdir="$srcdir"
70010 host="$host"
70011 target="$target"
70012 with_multisubdir="$with_multisubdir"
70013 with_multisrctop="$with_multisrctop"
70014 with_target_subdir="$with_target_subdir"
70015 ac_configure_args="${multilib_arg} ${ac_configure_args}"
70016 multi_basedir="$multi_basedir"
70017 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
70018 CC="$CC"
70020 # Variables needed in config.status (file generation) which aren't already
70021 # passed by autoconf.
70022 SUBDIRS="$SUBDIRS"
70025 _ACEOF
70029 cat >>$CONFIG_STATUS <<\_ACEOF
70030 for ac_config_target in $ac_config_targets
70032 case "$ac_config_target" in
70033 # Handling of arguments.
70034 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
70035 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
70036 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
70037 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
70038 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
70039 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
70040 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
70041 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
70042 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
70043 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
70044 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
70045 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
70046 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
70047 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
70048 { (exit 1); exit 1; }; };;
70049 esac
70050 done
70052 # If the user did not use the arguments to specify the items to instantiate,
70053 # then the envvar interface is used. Set only those that are not.
70054 # We use the long form for the default assignment because of an extremely
70055 # bizarre bug on SunOS 4.1.3.
70056 if $ac_need_defaults; then
70057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
70058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
70059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
70062 # Have a temporary directory for convenience. Make it in the build tree
70063 # simply because there is no reason to put it here, and in addition,
70064 # creating and moving files from /tmp can sometimes cause problems.
70065 # Create a temporary directory, and hook for its removal unless debugging.
70066 $debug ||
70068 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
70069 trap '{ (exit 1); exit 1; }' 1 2 13 15
70072 # Create a (secure) tmp directory for tmp files.
70075 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
70076 test -n "$tmp" && test -d "$tmp"
70077 } ||
70079 tmp=./confstat$$-$RANDOM
70080 (umask 077 && mkdir $tmp)
70081 } ||
70083 echo "$me: cannot create a temporary directory in ." >&2
70084 { (exit 1); exit 1; }
70087 _ACEOF
70089 cat >>$CONFIG_STATUS <<_ACEOF
70092 # CONFIG_FILES section.
70095 # No need to generate the scripts if there are no CONFIG_FILES.
70096 # This happens for instance when ./config.status config.h
70097 if test -n "\$CONFIG_FILES"; then
70098 # Protect against being on the right side of a sed subst in config.status.
70099 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
70100 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
70101 s,@SHELL@,$SHELL,;t t
70102 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
70103 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
70104 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
70105 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
70106 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
70107 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
70108 s,@exec_prefix@,$exec_prefix,;t t
70109 s,@prefix@,$prefix,;t t
70110 s,@program_transform_name@,$program_transform_name,;t t
70111 s,@bindir@,$bindir,;t t
70112 s,@sbindir@,$sbindir,;t t
70113 s,@libexecdir@,$libexecdir,;t t
70114 s,@datadir@,$datadir,;t t
70115 s,@sysconfdir@,$sysconfdir,;t t
70116 s,@sharedstatedir@,$sharedstatedir,;t t
70117 s,@localstatedir@,$localstatedir,;t t
70118 s,@libdir@,$libdir,;t t
70119 s,@includedir@,$includedir,;t t
70120 s,@oldincludedir@,$oldincludedir,;t t
70121 s,@infodir@,$infodir,;t t
70122 s,@mandir@,$mandir,;t t
70123 s,@build_alias@,$build_alias,;t t
70124 s,@host_alias@,$host_alias,;t t
70125 s,@target_alias@,$target_alias,;t t
70126 s,@DEFS@,$DEFS,;t t
70127 s,@ECHO_C@,$ECHO_C,;t t
70128 s,@ECHO_N@,$ECHO_N,;t t
70129 s,@ECHO_T@,$ECHO_T,;t t
70130 s,@LIBS@,$LIBS,;t t
70131 s,@libtool_VERSION@,$libtool_VERSION,;t t
70132 s,@multi_basedir@,$multi_basedir,;t t
70133 s,@build@,$build,;t t
70134 s,@build_cpu@,$build_cpu,;t t
70135 s,@build_vendor@,$build_vendor,;t t
70136 s,@build_os@,$build_os,;t t
70137 s,@host@,$host,;t t
70138 s,@host_cpu@,$host_cpu,;t t
70139 s,@host_vendor@,$host_vendor,;t t
70140 s,@host_os@,$host_os,;t t
70141 s,@target@,$target,;t t
70142 s,@target_cpu@,$target_cpu,;t t
70143 s,@target_vendor@,$target_vendor,;t t
70144 s,@target_os@,$target_os,;t t
70145 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
70146 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
70147 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
70148 s,@CYGPATH_W@,$CYGPATH_W,;t t
70149 s,@PACKAGE@,$PACKAGE,;t t
70150 s,@VERSION@,$VERSION,;t t
70151 s,@ACLOCAL@,$ACLOCAL,;t t
70152 s,@AUTOCONF@,$AUTOCONF,;t t
70153 s,@AUTOMAKE@,$AUTOMAKE,;t t
70154 s,@AUTOHEADER@,$AUTOHEADER,;t t
70155 s,@MAKEINFO@,$MAKEINFO,;t t
70156 s,@AMTAR@,$AMTAR,;t t
70157 s,@install_sh@,$install_sh,;t t
70158 s,@STRIP@,$STRIP,;t t
70159 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
70160 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
70161 s,@AWK@,$AWK,;t t
70162 s,@SET_MAKE@,$SET_MAKE,;t t
70163 s,@am__leading_dot@,$am__leading_dot,;t t
70164 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
70165 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
70166 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
70167 s,@CC@,$CC,;t t
70168 s,@ac_ct_CC@,$ac_ct_CC,;t t
70169 s,@EXEEXT@,$EXEEXT,;t t
70170 s,@OBJEXT@,$OBJEXT,;t t
70171 s,@CXX@,$CXX,;t t
70172 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
70173 s,@CFLAGS@,$CFLAGS,;t t
70174 s,@CXXFLAGS@,$CXXFLAGS,;t t
70175 s,@LN_S@,$LN_S,;t t
70176 s,@AS@,$AS,;t t
70177 s,@ac_ct_AS@,$ac_ct_AS,;t t
70178 s,@AR@,$AR,;t t
70179 s,@ac_ct_AR@,$ac_ct_AR,;t t
70180 s,@RANLIB@,$RANLIB,;t t
70181 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
70182 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
70183 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
70184 s,@MAINT@,$MAINT,;t t
70185 s,@LIBTOOL@,$LIBTOOL,;t t
70186 s,@CXXCPP@,$CXXCPP,;t t
70187 s,@CPPFLAGS@,$CPPFLAGS,;t t
70188 s,@enable_shared@,$enable_shared,;t t
70189 s,@enable_static@,$enable_static,;t t
70190 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
70191 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
70192 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
70193 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
70194 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
70195 s,@CSTDIO_H@,$CSTDIO_H,;t t
70196 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
70197 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
70198 s,@CPP@,$CPP,;t t
70199 s,@EGREP@,$EGREP,;t t
70200 s,@check_msgfmt@,$check_msgfmt,;t t
70201 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
70202 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
70203 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
70204 s,@USE_NLS@,$USE_NLS,;t t
70205 s,@CLOCALE_H@,$CLOCALE_H,;t t
70206 s,@CCODECVT_H@,$CCODECVT_H,;t t
70207 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
70208 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
70209 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
70210 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
70211 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
70212 s,@CMONEY_CC@,$CMONEY_CC,;t t
70213 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
70214 s,@CTIME_H@,$CTIME_H,;t t
70215 s,@CTIME_CC@,$CTIME_CC,;t t
70216 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
70217 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
70218 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
70219 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
70220 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
70221 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
70222 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
70223 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
70224 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
70225 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
70226 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
70227 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
70228 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
70229 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
70230 s,@WERROR@,$WERROR,;t t
70231 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
70232 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
70233 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
70234 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
70235 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
70236 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
70237 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
70238 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
70239 s,@baseline_dir@,$baseline_dir,;t t
70240 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
70241 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
70242 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
70243 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
70244 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
70245 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
70246 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
70247 s,@gxx_include_dir@,$gxx_include_dir,;t t
70248 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
70249 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
70250 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
70251 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
70252 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
70253 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
70254 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
70255 s,@LIBOBJS@,$LIBOBJS,;t t
70256 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
70257 CEOF
70259 _ACEOF
70261 cat >>$CONFIG_STATUS <<\_ACEOF
70262 # Split the substitutions into bite-sized pieces for seds with
70263 # small command number limits, like on Digital OSF/1 and HP-UX.
70264 ac_max_sed_lines=48
70265 ac_sed_frag=1 # Number of current file.
70266 ac_beg=1 # First line for current file.
70267 ac_end=$ac_max_sed_lines # Line after last line for current file.
70268 ac_more_lines=:
70269 ac_sed_cmds=
70270 while $ac_more_lines; do
70271 if test $ac_beg -gt 1; then
70272 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
70273 else
70274 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
70276 if test ! -s $tmp/subs.frag; then
70277 ac_more_lines=false
70278 else
70279 # The purpose of the label and of the branching condition is to
70280 # speed up the sed processing (if there are no `@' at all, there
70281 # is no need to browse any of the substitutions).
70282 # These are the two extra sed commands mentioned above.
70283 (echo ':t
70284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
70285 if test -z "$ac_sed_cmds"; then
70286 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
70287 else
70288 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
70290 ac_sed_frag=`expr $ac_sed_frag + 1`
70291 ac_beg=$ac_end
70292 ac_end=`expr $ac_end + $ac_max_sed_lines`
70294 done
70295 if test -z "$ac_sed_cmds"; then
70296 ac_sed_cmds=cat
70298 fi # test -n "$CONFIG_FILES"
70300 _ACEOF
70301 cat >>$CONFIG_STATUS <<\_ACEOF
70302 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
70303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
70304 case $ac_file in
70305 - | *:- | *:-:* ) # input from stdin
70306 cat >$tmp/stdin
70307 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
70308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
70309 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
70310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
70311 * ) ac_file_in=$ac_file.in ;;
70312 esac
70314 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
70315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
70316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70317 X"$ac_file" : 'X\(//\)[^/]' \| \
70318 X"$ac_file" : 'X\(//\)$' \| \
70319 X"$ac_file" : 'X\(/\)' \| \
70320 . : '\(.\)' 2>/dev/null ||
70321 echo X"$ac_file" |
70322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70324 /^X\(\/\/\)$/{ s//\1/; q; }
70325 /^X\(\/\).*/{ s//\1/; q; }
70326 s/.*/./; q'`
70327 { if $as_mkdir_p; then
70328 mkdir -p "$ac_dir"
70329 else
70330 as_dir="$ac_dir"
70331 as_dirs=
70332 while test ! -d "$as_dir"; do
70333 as_dirs="$as_dir $as_dirs"
70334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
70335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70336 X"$as_dir" : 'X\(//\)[^/]' \| \
70337 X"$as_dir" : 'X\(//\)$' \| \
70338 X"$as_dir" : 'X\(/\)' \| \
70339 . : '\(.\)' 2>/dev/null ||
70340 echo X"$as_dir" |
70341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70343 /^X\(\/\/\)$/{ s//\1/; q; }
70344 /^X\(\/\).*/{ s//\1/; q; }
70345 s/.*/./; q'`
70346 done
70347 test ! -n "$as_dirs" || mkdir $as_dirs
70348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
70349 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
70350 { (exit 1); exit 1; }; }; }
70352 ac_builddir=.
70354 if test "$ac_dir" != .; then
70355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
70356 # A "../" for each directory in $ac_dir_suffix.
70357 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
70358 else
70359 ac_dir_suffix= ac_top_builddir=
70362 case $srcdir in
70363 .) # No --srcdir option. We are building in place.
70364 ac_srcdir=.
70365 if test -z "$ac_top_builddir"; then
70366 ac_top_srcdir=.
70367 else
70368 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
70369 fi ;;
70370 [\\/]* | ?:[\\/]* ) # Absolute path.
70371 ac_srcdir=$srcdir$ac_dir_suffix;
70372 ac_top_srcdir=$srcdir ;;
70373 *) # Relative path.
70374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
70375 ac_top_srcdir=$ac_top_builddir$srcdir ;;
70376 esac
70378 # Do not use `cd foo && pwd` to compute absolute paths, because
70379 # the directories may not exist.
70380 case `pwd` in
70381 .) ac_abs_builddir="$ac_dir";;
70383 case "$ac_dir" in
70384 .) ac_abs_builddir=`pwd`;;
70385 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
70386 *) ac_abs_builddir=`pwd`/"$ac_dir";;
70387 esac;;
70388 esac
70389 case $ac_abs_builddir in
70390 .) ac_abs_top_builddir=${ac_top_builddir}.;;
70392 case ${ac_top_builddir}. in
70393 .) ac_abs_top_builddir=$ac_abs_builddir;;
70394 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
70395 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
70396 esac;;
70397 esac
70398 case $ac_abs_builddir in
70399 .) ac_abs_srcdir=$ac_srcdir;;
70401 case $ac_srcdir in
70402 .) ac_abs_srcdir=$ac_abs_builddir;;
70403 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
70404 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
70405 esac;;
70406 esac
70407 case $ac_abs_builddir in
70408 .) ac_abs_top_srcdir=$ac_top_srcdir;;
70410 case $ac_top_srcdir in
70411 .) ac_abs_top_srcdir=$ac_abs_builddir;;
70412 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
70413 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
70414 esac;;
70415 esac
70418 case $INSTALL in
70419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
70420 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
70421 esac
70423 if test x"$ac_file" != x-; then
70424 { echo "$as_me:$LINENO: creating $ac_file" >&5
70425 echo "$as_me: creating $ac_file" >&6;}
70426 rm -f "$ac_file"
70428 # Let's still pretend it is `configure' which instantiates (i.e., don't
70429 # use $as_me), people would be surprised to read:
70430 # /* config.h. Generated by config.status. */
70431 if test x"$ac_file" = x-; then
70432 configure_input=
70433 else
70434 configure_input="$ac_file. "
70436 configure_input=$configure_input"Generated from `echo $ac_file_in |
70437 sed 's,.*/,,'` by configure."
70439 # First look for the input files in the build tree, otherwise in the
70440 # src tree.
70441 ac_file_inputs=`IFS=:
70442 for f in $ac_file_in; do
70443 case $f in
70444 -) echo $tmp/stdin ;;
70445 [\\/$]*)
70446 # Absolute (can't be DOS-style, as IFS=:)
70447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
70448 echo "$as_me: error: cannot find input file: $f" >&2;}
70449 { (exit 1); exit 1; }; }
70450 echo "$f";;
70451 *) # Relative
70452 if test -f "$f"; then
70453 # Build tree
70454 echo "$f"
70455 elif test -f "$srcdir/$f"; then
70456 # Source tree
70457 echo "$srcdir/$f"
70458 else
70459 # /dev/null tree
70460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
70461 echo "$as_me: error: cannot find input file: $f" >&2;}
70462 { (exit 1); exit 1; }; }
70463 fi;;
70464 esac
70465 done` || { (exit 1); exit 1; }
70466 _ACEOF
70467 cat >>$CONFIG_STATUS <<_ACEOF
70468 sed "$ac_vpsub
70469 $extrasub
70470 _ACEOF
70471 cat >>$CONFIG_STATUS <<\_ACEOF
70473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70474 s,@configure_input@,$configure_input,;t t
70475 s,@srcdir@,$ac_srcdir,;t t
70476 s,@abs_srcdir@,$ac_abs_srcdir,;t t
70477 s,@top_srcdir@,$ac_top_srcdir,;t t
70478 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
70479 s,@builddir@,$ac_builddir,;t t
70480 s,@abs_builddir@,$ac_abs_builddir,;t t
70481 s,@top_builddir@,$ac_top_builddir,;t t
70482 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
70483 s,@INSTALL@,$ac_INSTALL,;t t
70484 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
70485 rm -f $tmp/stdin
70486 if test x"$ac_file" != x-; then
70487 mv $tmp/out $ac_file
70488 else
70489 cat $tmp/out
70490 rm -f $tmp/out
70493 # Run the commands associated with the file.
70494 case $ac_file in
70495 scripts/check_survey ) chmod +x scripts/check_survey ;;
70496 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
70497 esac
70498 done
70499 _ACEOF
70500 cat >>$CONFIG_STATUS <<\_ACEOF
70503 # CONFIG_HEADER section.
70506 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
70507 # NAME is the cpp macro being defined and VALUE is the value it is being given.
70509 # ac_d sets the value in "#define NAME VALUE" lines.
70510 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
70511 ac_dB='[ ].*$,\1#\2'
70512 ac_dC=' '
70513 ac_dD=',;t'
70514 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
70515 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
70516 ac_uB='$,\1#\2define\3'
70517 ac_uC=' '
70518 ac_uD=',;t'
70520 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
70521 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
70522 case $ac_file in
70523 - | *:- | *:-:* ) # input from stdin
70524 cat >$tmp/stdin
70525 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
70526 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
70527 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
70528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
70529 * ) ac_file_in=$ac_file.in ;;
70530 esac
70532 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
70533 echo "$as_me: creating $ac_file" >&6;}
70535 # First look for the input files in the build tree, otherwise in the
70536 # src tree.
70537 ac_file_inputs=`IFS=:
70538 for f in $ac_file_in; do
70539 case $f in
70540 -) echo $tmp/stdin ;;
70541 [\\/$]*)
70542 # Absolute (can't be DOS-style, as IFS=:)
70543 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
70544 echo "$as_me: error: cannot find input file: $f" >&2;}
70545 { (exit 1); exit 1; }; }
70546 # Do quote $f, to prevent DOS paths from being IFS'd.
70547 echo "$f";;
70548 *) # Relative
70549 if test -f "$f"; then
70550 # Build tree
70551 echo "$f"
70552 elif test -f "$srcdir/$f"; then
70553 # Source tree
70554 echo "$srcdir/$f"
70555 else
70556 # /dev/null tree
70557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
70558 echo "$as_me: error: cannot find input file: $f" >&2;}
70559 { (exit 1); exit 1; }; }
70560 fi;;
70561 esac
70562 done` || { (exit 1); exit 1; }
70563 # Remove the trailing spaces.
70564 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
70566 _ACEOF
70568 # Transform confdefs.h into two sed scripts, `conftest.defines' and
70569 # `conftest.undefs', that substitutes the proper values into
70570 # config.h.in to produce config.h. The first handles `#define'
70571 # templates, and the second `#undef' templates.
70572 # And first: Protect against being on the right side of a sed subst in
70573 # config.status. Protect against being in an unquoted here document
70574 # in config.status.
70575 rm -f conftest.defines conftest.undefs
70576 # Using a here document instead of a string reduces the quoting nightmare.
70577 # Putting comments in sed scripts is not portable.
70579 # `end' is used to avoid that the second main sed command (meant for
70580 # 0-ary CPP macros) applies to n-ary macro definitions.
70581 # See the Autoconf documentation for `clear'.
70582 cat >confdef2sed.sed <<\_ACEOF
70583 s/[\\&,]/\\&/g
70584 s,[\\$`],\\&,g
70585 t clear
70586 : clear
70587 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
70588 t end
70589 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
70590 : end
70591 _ACEOF
70592 # If some macros were called several times there might be several times
70593 # the same #defines, which is useless. Nevertheless, we may not want to
70594 # sort them, since we want the *last* AC-DEFINE to be honored.
70595 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
70596 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
70597 rm -f confdef2sed.sed
70599 # This sed command replaces #undef with comments. This is necessary, for
70600 # example, in the case of _POSIX_SOURCE, which is predefined and required
70601 # on some systems where configure will not decide to define it.
70602 cat >>conftest.undefs <<\_ACEOF
70603 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
70604 _ACEOF
70606 # Break up conftest.defines because some shells have a limit on the size
70607 # of here documents, and old seds have small limits too (100 cmds).
70608 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
70609 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
70610 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
70611 echo ' :' >>$CONFIG_STATUS
70612 rm -f conftest.tail
70613 while grep . conftest.defines >/dev/null
70615 # Write a limited-size here document to $tmp/defines.sed.
70616 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
70617 # Speed up: don't consider the non `#define' lines.
70618 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
70619 # Work around the forget-to-reset-the-flag bug.
70620 echo 't clr' >>$CONFIG_STATUS
70621 echo ': clr' >>$CONFIG_STATUS
70622 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
70623 echo 'CEOF
70624 sed -f $tmp/defines.sed $tmp/in >$tmp/out
70625 rm -f $tmp/in
70626 mv $tmp/out $tmp/in
70627 ' >>$CONFIG_STATUS
70628 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
70629 rm -f conftest.defines
70630 mv conftest.tail conftest.defines
70631 done
70632 rm -f conftest.defines
70633 echo ' fi # grep' >>$CONFIG_STATUS
70634 echo >>$CONFIG_STATUS
70636 # Break up conftest.undefs because some shells have a limit on the size
70637 # of here documents, and old seds have small limits too (100 cmds).
70638 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
70639 rm -f conftest.tail
70640 while grep . conftest.undefs >/dev/null
70642 # Write a limited-size here document to $tmp/undefs.sed.
70643 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
70644 # Speed up: don't consider the non `#undef'
70645 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
70646 # Work around the forget-to-reset-the-flag bug.
70647 echo 't clr' >>$CONFIG_STATUS
70648 echo ': clr' >>$CONFIG_STATUS
70649 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
70650 echo 'CEOF
70651 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
70652 rm -f $tmp/in
70653 mv $tmp/out $tmp/in
70654 ' >>$CONFIG_STATUS
70655 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
70656 rm -f conftest.undefs
70657 mv conftest.tail conftest.undefs
70658 done
70659 rm -f conftest.undefs
70661 cat >>$CONFIG_STATUS <<\_ACEOF
70662 # Let's still pretend it is `configure' which instantiates (i.e., don't
70663 # use $as_me), people would be surprised to read:
70664 # /* config.h. Generated by config.status. */
70665 if test x"$ac_file" = x-; then
70666 echo "/* Generated by configure. */" >$tmp/config.h
70667 else
70668 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
70670 cat $tmp/in >>$tmp/config.h
70671 rm -f $tmp/in
70672 if test x"$ac_file" != x-; then
70673 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
70674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
70675 echo "$as_me: $ac_file is unchanged" >&6;}
70676 else
70677 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
70678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70679 X"$ac_file" : 'X\(//\)[^/]' \| \
70680 X"$ac_file" : 'X\(//\)$' \| \
70681 X"$ac_file" : 'X\(/\)' \| \
70682 . : '\(.\)' 2>/dev/null ||
70683 echo X"$ac_file" |
70684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70686 /^X\(\/\/\)$/{ s//\1/; q; }
70687 /^X\(\/\).*/{ s//\1/; q; }
70688 s/.*/./; q'`
70689 { if $as_mkdir_p; then
70690 mkdir -p "$ac_dir"
70691 else
70692 as_dir="$ac_dir"
70693 as_dirs=
70694 while test ! -d "$as_dir"; do
70695 as_dirs="$as_dir $as_dirs"
70696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
70697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70698 X"$as_dir" : 'X\(//\)[^/]' \| \
70699 X"$as_dir" : 'X\(//\)$' \| \
70700 X"$as_dir" : 'X\(/\)' \| \
70701 . : '\(.\)' 2>/dev/null ||
70702 echo X"$as_dir" |
70703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70705 /^X\(\/\/\)$/{ s//\1/; q; }
70706 /^X\(\/\).*/{ s//\1/; q; }
70707 s/.*/./; q'`
70708 done
70709 test ! -n "$as_dirs" || mkdir $as_dirs
70710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
70711 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
70712 { (exit 1); exit 1; }; }; }
70714 rm -f $ac_file
70715 mv $tmp/config.h $ac_file
70717 else
70718 cat $tmp/config.h
70719 rm -f $tmp/config.h
70721 # Compute $ac_file's index in $config_headers.
70722 _am_stamp_count=1
70723 for _am_header in $config_headers :; do
70724 case $_am_header in
70725 $ac_file | $ac_file:* )
70726 break ;;
70728 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
70729 esac
70730 done
70731 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
70732 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70733 X$ac_file : 'X\(//\)[^/]' \| \
70734 X$ac_file : 'X\(//\)$' \| \
70735 X$ac_file : 'X\(/\)' \| \
70736 . : '\(.\)' 2>/dev/null ||
70737 echo X$ac_file |
70738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70740 /^X\(\/\/\)$/{ s//\1/; q; }
70741 /^X\(\/\).*/{ s//\1/; q; }
70742 s/.*/./; q'`/stamp-h$_am_stamp_count
70743 done
70744 _ACEOF
70745 cat >>$CONFIG_STATUS <<\_ACEOF
70748 # CONFIG_COMMANDS section.
70750 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
70751 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
70752 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
70753 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
70754 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70755 X"$ac_dest" : 'X\(//\)[^/]' \| \
70756 X"$ac_dest" : 'X\(//\)$' \| \
70757 X"$ac_dest" : 'X\(/\)' \| \
70758 . : '\(.\)' 2>/dev/null ||
70759 echo X"$ac_dest" |
70760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70762 /^X\(\/\/\)$/{ s//\1/; q; }
70763 /^X\(\/\).*/{ s//\1/; q; }
70764 s/.*/./; q'`
70765 { if $as_mkdir_p; then
70766 mkdir -p "$ac_dir"
70767 else
70768 as_dir="$ac_dir"
70769 as_dirs=
70770 while test ! -d "$as_dir"; do
70771 as_dirs="$as_dir $as_dirs"
70772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
70773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70774 X"$as_dir" : 'X\(//\)[^/]' \| \
70775 X"$as_dir" : 'X\(//\)$' \| \
70776 X"$as_dir" : 'X\(/\)' \| \
70777 . : '\(.\)' 2>/dev/null ||
70778 echo X"$as_dir" |
70779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
70780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
70781 /^X\(\/\/\)$/{ s//\1/; q; }
70782 /^X\(\/\).*/{ s//\1/; q; }
70783 s/.*/./; q'`
70784 done
70785 test ! -n "$as_dirs" || mkdir $as_dirs
70786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
70787 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
70788 { (exit 1); exit 1; }; }; }
70790 ac_builddir=.
70792 if test "$ac_dir" != .; then
70793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
70794 # A "../" for each directory in $ac_dir_suffix.
70795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
70796 else
70797 ac_dir_suffix= ac_top_builddir=
70800 case $srcdir in
70801 .) # No --srcdir option. We are building in place.
70802 ac_srcdir=.
70803 if test -z "$ac_top_builddir"; then
70804 ac_top_srcdir=.
70805 else
70806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
70807 fi ;;
70808 [\\/]* | ?:[\\/]* ) # Absolute path.
70809 ac_srcdir=$srcdir$ac_dir_suffix;
70810 ac_top_srcdir=$srcdir ;;
70811 *) # Relative path.
70812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
70813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
70814 esac
70816 # Do not use `cd foo && pwd` to compute absolute paths, because
70817 # the directories may not exist.
70818 case `pwd` in
70819 .) ac_abs_builddir="$ac_dir";;
70821 case "$ac_dir" in
70822 .) ac_abs_builddir=`pwd`;;
70823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
70824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
70825 esac;;
70826 esac
70827 case $ac_abs_builddir in
70828 .) ac_abs_top_builddir=${ac_top_builddir}.;;
70830 case ${ac_top_builddir}. in
70831 .) ac_abs_top_builddir=$ac_abs_builddir;;
70832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
70833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
70834 esac;;
70835 esac
70836 case $ac_abs_builddir in
70837 .) ac_abs_srcdir=$ac_srcdir;;
70839 case $ac_srcdir in
70840 .) ac_abs_srcdir=$ac_abs_builddir;;
70841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
70842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
70843 esac;;
70844 esac
70845 case $ac_abs_builddir in
70846 .) ac_abs_top_srcdir=$ac_top_srcdir;;
70848 case $ac_top_srcdir in
70849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
70850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
70851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
70852 esac;;
70853 esac
70856 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
70857 echo "$as_me: executing $ac_dest commands" >&6;}
70858 case $ac_dest in
70859 default-1 )
70860 # Only add multilib support code if we just rebuilt the top-level
70861 # Makefile.
70862 case " $CONFIG_FILES " in
70863 *" Makefile "*)
70864 ac_file=Makefile . ${multi_basedir}/config-ml.in
70866 esac ;;
70867 default ) if test -n "$CONFIG_FILES"; then
70868 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
70869 # that multilib installs will end up installed in the correct place.
70870 # The testsuite needs it for multilib-aware ABI baseline files.
70871 # To work around this not being passed down from config-ml.in ->
70872 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
70873 # append it here. Only modify Makefiles that have just been created.
70875 # Also, get rid of this simulated-VPATH thing that automake does.
70876 cat > vpsed << \_EOF
70877 s!`test -f '$<' || echo '$(srcdir)/'`!!
70878 _EOF
70879 for i in $SUBDIRS; do
70880 case $CONFIG_FILES in
70881 *${i}/Makefile*)
70882 #echo "Adding MULTISUBDIR to $i/Makefile"
70883 sed -f vpsed $i/Makefile > tmp
70884 grep '^MULTISUBDIR =' Makefile >> tmp
70885 mv tmp $i/Makefile
70887 esac
70888 done
70889 rm vpsed
70891 (cd include && ${MAKE-make})
70893 esac
70894 done
70895 _ACEOF
70897 cat >>$CONFIG_STATUS <<\_ACEOF
70899 { (exit 0); exit 0; }
70900 _ACEOF
70901 chmod +x $CONFIG_STATUS
70902 ac_clean_files=$ac_clean_files_save
70905 # configure is writing to config.log, and then calls config.status.
70906 # config.status does its own redirection, appending to config.log.
70907 # Unfortunately, on DOS this fails, as config.log is still kept open
70908 # by configure, so config.status won't be able to write to it; its
70909 # output is simply discarded. So we exec the FD to /dev/null,
70910 # effectively closing config.log, so it can be properly (re)opened and
70911 # appended to by config.status. When coming back to configure, we
70912 # need to make the FD available again.
70913 if test "$no_create" != yes; then
70914 ac_cs_success=:
70915 ac_config_status_args=
70916 test "$silent" = yes &&
70917 ac_config_status_args="$ac_config_status_args --quiet"
70918 exec 5>/dev/null
70919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
70920 exec 5>>config.log
70921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
70922 # would make configure fail if this is the last instruction.
70923 $ac_cs_success || { (exit 1); exit 1; }